Graphics, Figures & Tablesproblem including eps files

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bamdad
Posts: 2
Joined: Sun Sep 06, 2009 1:24 pm

problem including eps files

Post by bamdad »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

problem including eps files

Post by localghost »

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.

Code: Select all

pdflatex -shell-escape jobname.tex
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.

Code: Select all

pdflatex -help
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
Post Reply