The programs pdftex and pdflatex can use graphic files produced in pdf, jpg, png, or mps format. The native graphics format of Mac OS X is pdf (portable document format) and such files print well at any size. It is likely that most future Mac graphics programs will output pdf.
To use graphics, include the line below in the preamble section of your source file:
When you wish to insert a graphic file, say "f1.pdf ", use the command
By changing the indicated width in this command, the graphic can be resized during typesetting. Experiment to find the desired size.
If you used TeX in the past, your illustrations may be in eps format. These files must be converted to pdf format before being typeset with pdftex and pdflatex. This can be done automatically during typesetting by following the instructions below, but if you have only a few such files, you can convert them by opening them in TeXShop. The illustration will appear in a graphic window and TeXShop will simultaneously write the corresponding pdf file to disk in the folder containing the eps file, leaving the eps form unchanged.
If your document contains a large number of eps files, it is easiest to automatically convert them to pdf form during typesetting. This conversion will leave the eps files in place and write corresponding pdf files in the same locations. Once the files have been converted, future typesetting commands will use the pdf versions rather than the eps versions. To make conversion occur, three steps are necessary:
When you wish to include a graphic file, say "f1.eps ", use the command
Notice that the extension ".eps" is omitted. This command will cause TeX to input the graphic file "f1.pdf" if this file exists, but otherwise convert the file "f1.eps" to "f1.eps" before inputting.
The authors of pdflatex and the authors of the graphics package graphicx have made it easy to include graphic files in a LaTeX document typeset with pdflatex, even if the document will later be typeset by standard latex and converted to a dvi file for distribution to other people. This might happen if you share source files with a colleague who uses ordinary LaTeX and requires eps illustrations rather than pdf illustrations. When you want to include an illustration, say "f1.pdf ", use the command below, omitting the ".pdf" or ".eps" extension:
This command will cause tex to input the graphic file "f1.pdf" when the text is typeset with pdflatex, but input the file "f1.eps" when the text is typeset with latex.
You can also use tiff illustrations if you installed the "convert" utility from ImageMagick; this utility is automatically installed by MacTeX. In that case, make sure your header contains the lines:
These lines will automatically convert tiff files to png format during typesetting. One peculiarity is that the extension of the file must be ".tif" rather than ".tiff".
If you have a few old files with eps illustrations, or if you use the pstricks postscript package in TeX, you can typeset with "TeX and DVI" instead of pdflatex. See the TeXShop Help section "Alternate Typesetting Mode" for details. In this mode, conversion of eps files to pdf format is not necessary. However, it is not a good idea to use this mode for new projects involving a large number of eps files, because the eps illustrations must be implicitly converted to pdf form every time the file is typeset, slowing typesetting down enormously when the eps illustrations are complicated. That is because convertion from postscript to pdf takes place at the very end of typesetting in "TeX and DVI" mode, after the illustrations have been embedded in the complete final document.