Home > Uncategorized > pdflatex gives error when compiled with .eps figures

pdflatex gives error when compiled with .eps figures

The command pdflatex can take only figures with .pdf extension, and unfortunately I mostly output my figures in .eps, which means that I have to convert all figures to .pdf. If there are only a handful of figures, manually converting the figures one by one is acceptable using the command (in the terminal)

epstopdf figure_file.eps

However, when there are hundreds of figures, we may not want to do that. Instead, one might want to simply write a batch file to convert all the figures automatically. Instructions for writing a batch file can be found in this web page:

http://commandwindows.com/batch.htm

I have my very easy code available to try here. For an advanced user, you can list all the file names inside a directory and use for-loop to convert the file one by one. There are some people suggest using ImageMagick, but I found that is not so convenient :-P.

Advertisements
  1. tsvhh
    April 26, 2011 at 3:05 pm

    Use XeLaTeX then.

  1. May 8, 2011 at 12:53 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: