How to generate a graphics file in eps format for easy inclusion in LaTeX documents

Other Information

ProTeXt

The simplest way to get LaTeX on your computer is with the proTeXt set-up from the TeX Users' Group.  It includes MikTeX, Ghostscript, Ghostview, and TeXnicCenter.  If you prefer to install each of these components separately, read on.  Otherwise, go to this site:

http://www.tug.org/protext
\begin{figure}
    \centering
        \includegraphics{quadratic.eps}
    \caption{Here is a graph of a quadratic equation.}
    \label{fig:Quadratic}
\end{figure}

Here is an entire LaTeX source file showing how to get the figure to appear in a file. I used Matlab to generate the graph in the first place; the Matlab program is called Quadratic.m.  The LaTeX source file illustrates how to include the listing file using the listings package, too. The output produced by LaTeX when it processes this file is shown here as a pdf-format file and, as specified in the source file, the Matlab listing appears..