Diagrams with xfig: Difference between revisions

From String Theory Wiki
Jump to navigation Jump to search
No edit summary
 
(LaTeX tips)
 
Line 23: Line 23:


[http://www.xfig.org/userman/ xfig user manual]
[http://www.xfig.org/userman/ xfig user manual]
[http://www.math.uiuc.edu/~hildebr/tex/basics.html LaTeX Tips] has more information on including figures

Latest revision as of 15:36, 28 May 2007

xfig allows you to intuitively draw maths diagrams and output them as encapsulated Postscript (EPS) files for inclusion in LaTeX documents.

In xfig keep an eye on the top right of the window because it tells you what the buttons on the mouse do for the particular mode you're in.

including diagrams in your LaTeX document

Once you have exported your diagram as an EPS file you now want to include it in a LaTeX document. You must use the graphicx package by including at the top of the LaTeX file

 \usepackage{graphicx}

Include the figure torus.eps at the point of your choosing with

\begin{figure}[t]
\begin{center}
\includegraphics[height=7cm,width=16cm]{torus}
\caption{ The torus } \label{fig:torus}
\end{center}
\end{figure}

To resize the figure use \resizebox{!}{4.5in}{\includegraphics{torus.eps}} and to rotate it use \rotatebox{270}{\includegraphics{torus.eps}}.

links

xfig website

xfig user manual

LaTeX Tips has more information on including figures