Including Graphics in Figures
November 2, 2006
Mark Senn

How can I include graphics in figures?

Use one of the procedures below:

Here is a complete example using Mathematica:

  1. Create a Mathematica source file named plot.m containing
            g = Plot[Sin[x], {x, 0, 2Pi}];
            Export["plot.eps", g];
    
  2. Type
            math < plot.m
    
    to make the plot.eps file.
  3. 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}
    
  4. Run latex, etc. in the normal way.

Revised: November 2, 2006
Created: November 2, 2006