[OS X TeX] eps figure into document

Ross Moore ross at ics.mq.edu.au
Mon Nov 3 17:10:06 EST 2008


Hello Caitlyn, David and others.


On 04/11/2008, at 8:38 AM, David Derbes wrote:

> I don't know if you're using TeXShop, but if you are, the drill is  
> a little non-intuitive.
>
> First, you open the EPS with TeXShop, and this calls ImageMagick or  
> GhostScript or something which turns the EPS into a PDF.
> (The experts will tell you and me, too.)
>
> When you choose the EPS file with File->Open, you will see  
> eventually the EPS image rendered as a PDF. Close the image file.
>
> Then, in the LaTeX file, you say, as you did,
>
> \includegraphics{filename}
>
> Do NOT include the .PDF extension.
>
> And that should do it, at least if you are generating a PDF file  
> with LaTeX.

Not quite.
Change the LaTeX source to become:

>>>
>>> %!TEX TS-program = pdflatex
>>> \documentclass[12pt]{article}
>>> \usepackage{graphicx}
>>> \begin{document}
>>> Some text \includegraphics{graphA} and some more.
>>> \end{document}


This avoids the need to use  dvips  and  Ghostscript.


At some point do something about installing Ghostscript;
it's certainly worth having, and will allow you to work
directly with .eps  files and with LaTeX packages that
depend upon it being available.


Hope this helps,

	Ross

>
> Anyway, that's what I've been doing for years.
>
> David Derbes
> U of Chicago Laboratory Schools
>
> On Nov 3, 2008, at 2:04 PM, Caitlyn Phillips wrote:
>
>> I can not get my file to compile with an eps figure in it. Just a  
>> simple source code of what I'm using:
>>
>> %!TEX TS-program = latex
>> \documentclass[12pt]{article}
>> \usepackage[dvips]{graphicx}
>> \begin{document}
>> Some text \includegraphics{graphA} and some more.
>> \end{document}
>>
>> and then the error message that I keep getting is:
>>
>> ### Saving intermediary ps file /tmp/altpdflatex.12057-1225742897/ 
>> Please work.ps as Please work.ps
>> ### ps2pdf13 /tmp/altpdflatex.12057-1225742897/Please work.ps /tmp/ 
>> altpdflatex.12057-1225742897/Please work.pdf
>> /usr/texbin/simpdftex: line 495: ps2pdf13: command not found
>> ### FAILED to generate /tmp/altpdflatex.12057-1225742897/Please  
>> work.pdf ()
>>
>> Thanks!
>> Caitlyn

------------------------------------------------------------------------
Ross Moore                                       ross at maths.mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------






More information about the MacOSX-TeX mailing list