[OS X TeX] how include .eps in TeXShop using default
Herbert Schulz
herbs at wideopenwest.com
Mon Oct 3 06:59:01 EDT 2011
On Oct 2, 2011, at 9:05 PM, Alan Munn wrote:
> 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
Howdy,
TeXShop uses pdflatex to typeset your file by default. The pdflatex program allows you to include jpg, png and pdf graphics by default but recent versions (I think this started in TeX Live (MacTeX) 2010 and continues in 2011) will also do a conversion of eps->pdf on the fly (it converts file.eps->file-eps-converted-to.pdf and includes that file). The important thing is to let the graphicx (I recommend the graphicx package, which is built on the graphics package but is easier to use) package figure out that you are using pdflatex by NOT including the [dvips] option in the \usepackage command.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list