**Including Graphics in Figures**

November 2, 2006

Mark Senn
**How can I include graphics in figures?**

Use one of the procedures below:

- for latex
- make an .eps file containing the graphics
- use
`\includegraphics`
to include the .eps file

- for pdflatex (will add later)

Here is a complete example using
*Mathematica*:

- Create a
*Mathematica*
source file named plot.m containing
g = Plot[Sin[x], {x, 0, 2Pi}];
Export["plot.eps", g];

- Type
math < plot.m

to make the plot.eps file.
- Create a LaTeX source file named plot.tex containing
\documentclass[ece]{puthesis}
\begin{document}
\begin{figure}
\centering
\includegraphics{plot.eps}
\caption{This is the caption.}
\end{figure}
\end{document}

- Run latex, etc. in the normal way.

####
Revised: November 2, 2006

Created: November 2, 2006