next up previous contents
Next: Math Up: Common LaTeX Operations Previous: Figures   Contents

Graphics

Most documents are composed of not only text, but also graphics. YOu insert graphics into a LaTeX file with the insert graphic command. However, you can not insert a JPG or PDF file into a LaTeX document, only EPS files. To insert other file formats like JPG, you have a few choices. One way is to convert your graphic file to EPS and then insert it into the document.

To convert the file you can use a Mac OS X Aqua-based programs, such as Graphics Converter, or install ImageMagick from Fink and use the following command:

% convert [jpeg-file] [eps-file]

You insert a graphics file into a document by first using the graphicx package and then using the insert graphics command..

\usepackage{graphicx}
..
\begin{document}
...
\includegraphics{mjh.eps}
...

To insert a JPG file directly, use the PDFLaTeX program to process your LaTeX document.

\usepackage{graphicx}
..
\begin{document}
...
\includegraphics{mjh.jpg}
...

This explanation is quite basic and there are far more issues to working with graphics in LaTeX. In addition to inserting graphics, LaTeX supports commands that enable you to draw picture elements such as boxes, trees, and curves in your document. Consult the Resource sections for more information.


next up previous contents
Next: Math Up: Common LaTeX Operations Previous: Figures   Contents
Kevin O'Malley 2004-03-05