[OS X TeX] how include .eps in TeXShop using default

Alan Munn amunn at gmx.com
Mon Oct 3 04:05:00 CEST 2011


On Oct 2, 2011, at 9:30 PM, Murray Eisenberg wrote:

> How in TeXShop (2.43) do I go about getting an included .eps or .pdf file in the pdf output when I typeset a LaTeX source file?
> 
> I have
> 
>  \usepackage[dvips]{graphics}
> 
> in the preamble. And for getting the graphics, I try to use:
> 
> 
> \begin{center}
> \scalebox{0.5}{\includegraphics{mygraph.eps}}
> \end{center}
> 
> Then no graphics whatsoever appears in the pdf file obtained by typesetting in TeXShop.
> 
> If, instead, I create my graphic directly as a .pdf (by export from Mathematica) and then use correspondingly \includegraphics{mygraph.pdf}, then in the output from typesetting in TeXShop the graphic appears but grossly enlarged and overwriting text. (The bounding box information may have gotten lost.)
> 
> (Sorry for this seemingly naive question. I'm a recent convert to MacTeX from the Windows world, and this sort of thing was very easy to do with an obvious workflow .tex -> .dvi -> .ps -> .pdf there.)


There a couple of ways to do this:

If you look in the TeXShop Help, you will find an entry for Alternate Typesetting Mode which tells you that you can use the TeX and DVI menu item in the Typeset menu to switch from pdflatex to latex+dvips. (Or a quick look at the typeset menu itself might have rung some bells.)

You should also be using graphicx instead of the graphics package.  There is no need to supply the driver [dvips] option.

Alternatively, you can stick with pdflatex and load the auto-pst-pdf package, which will automatically convert your eps files to pdfs and include them directly.  (Again, remove the driver specification from the graphicx package.)

Alan

-- 
Alan Munn
amunn at gmx.com







More information about the macostex-archives mailing list