Hi guys im a new member, i just posted an introduction topic in the new members sections. i've been writing a paper using Elsevier's latex template which is a derivative of the article class. i am using textmate 5.7 with MacTex-2008 on Leopard. im having a hard time including .eps figures in my document. i think textmate is using pdflatex to compile my tex directly to pdf but this doesnt allow me to include .eps files. i am using the "graphicx" and "epstopdf" packages in the preamble but whenever i include a figure.eps file i get the error " fig.pdf" not found and i can only solve this by creating the .pdf file using some other software. i cant keep this up cause i have to include a large number of figures that are provided by Gnuplot in eps format. i tried using "pstricks" package but it only ouputs 2 pages of my article!? i just gave up on it since i didnt want any more trouble. can you guys help me out? i think i could solve this by telling textmate to tex ->dvi ->pdf my document but i have no idea how to do this.
thanks
Graphics, Figures & Tables ⇒ problem including eps files
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
problem including eps files
You have to enable shell escape for your compiler. I'm not sure, but your LaTeX system should be based on Web2c. Thus you have to call the compiler as follows.
Adapt the settings of your LaTeX IDE accordingly. To make sure which switch you have to give, look at the help function. Open a terminal (shell, command prompt) and type in the following.
You should see a list of the possible options and find the above mentioned switch or something similar. If you are not sure, post this list and we will see.
Best regards
Thorsten
Code: Select all
pdflatex -shell-escape jobname.tex
Code: Select all
pdflatex -help
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10