oBook‎ > ‎WinFig‎ > ‎

A better example

posted May 15, 2014, 3:32 PM by Javad Taghia   [ updated May 15, 2014, 3:35 PM ]
Here is a better example for a document; we are going to use a figure created by WinFIG in the document. There are some important points:
1. We need to do scaling in the WinFig itself. There is no graphics when we use xxx.pstex_t as our input file. 
2. We need to set the path at Export window of our WinFig file to the folder we put and use or figures. The default value is going to be in the original path.
This can be seen by checking xxx.pstex_t in a editor. The path for xxx.ps file is shown there. It must be correct as the path we use in our LaTex document.
3. Fit to the size is a good option in the Export window but make sure the size is properly set by Magnification option.

Here is a simple example, we use the same figure and repeat it in a table. We assume the figures are in a folder named figs.

 \documentclass[10,a4paper]{article}
\usepackage[utf8]{inputenc}

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{kpfonts}
\usepackage{epsfig}
\usepackage{color} 
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}

\author{xxx xxx}
\title{xxx xxx}

\begin{document}
\maketitle



\begin{figure}[h]\centering
\begin{tabular}{cc}
\input{figs/StartPage.pstex_t}\\
\input{figs/StartPage.pstex_t}\\
\end{tabular}
\caption{xxx} \label{fig:tractor_trailer}
\end{figure}

\end{document}
Comments