[OS X TeX] Using eps files
José A. Facenda Aguirre
facenda at us.es
Tue Mar 9 10:16:44 CET 2010
Hi,
thanks for the answer.
I have installed MacTeX 2009 in a macbook pro and an imac i5.
I have the problem in the notebook; imac has no problem. The document
contains these lines: (is latex template fron texshop)
\documentclass[11pt]{amsart}
\usepackage{graphicx}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1
.tif .png}
\begin{document}
\includegraphics[]{figure}
\end{document}
I have the file figure.eps
The macbook pro gives the mentioned error but the imac works well. What's
the problem in the notebook?
Any help would be appreciated
José A. Facenda
----- Original Message -----
From: "Herbert Schulz" <herbs at wideopenwest.com>
To: "TeX on Mac OS X Mailing List" <macosx-tex at email.esm.psu.edu>
Sent: Tuesday, March 09, 2010 12:16 AM
Subject: Re: [OS X TeX] Using eps files
On Mar 8, 2010, at 4:28 PM, <facenda at us.es> wrote:
> Hi all,
> I have a problem with eps files. I have a file, figure.eps
> I think that texshop 2.33 converts this file to pdf when I compile the
> document with the order \includegraphics[]{figure}.
> But I get the error
>
> ! Package pdftex.def Error: File `figure-eps-converted-to.pdf' not found
> See the pdftes.def package documentation for explanation
>
> Any help would be appreciated
> Thanks in advance,
> José A. Facenda
Howdy,
Assuming that you are i)trying to use pdflatex to compile your tex file,
ii)are using the epstopdf package along with the graphicx package via
\usepackage{graphicx}
\usepackage{epstopdf}
in your preamble (a sample file would have been useful), iii)are using
MacTeX(TeX Live)-2009 there are a few possible solutions:
1)Continue to use pdflatex as assumed above but make sure that
TeXShop->Preferences->Engine->pdfTeX->Tex & Latex have the --shell-escape
option set. This allows the epstopdf package to run the conversion of the
foo.eps->foo-eps-converted-to.pdf.
2)Convert foo.eps->foo.pdf by simply dropping the eps file onto TeXShop.
Then the \includegraphics{foo} will automatically pick up the converted
foo.pdf. You won't need to use the epstopdf package if you go this route.
3)If you have many eps figures and no pdf, png, jpg figures you can simply
compile with latex+dvips+ps2pdf by putting the line
% !TEX TS-program = latex
to tell TeXShop to use that engine rather than the pdflatex engine.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list