Generallatex no longer finds eps files.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
aardvark
Posts: 3
Joined: Wed Dec 03, 2008 6:07 pm

latex no longer finds eps files.

Post by aardvark »

I have some documents which were prepared in latex approx. 3-5 years ago. These documents used epsfigures and the figures were presented using \epsfig command. The command was used specifically like:

\epsfig{file=../Measurements/figures/foo.eps,width=3mm}

inside the \figure environment. This has worked for many years without a problem.

I can still view the figures using xdvi; however, when dvips or dvipdf is used the programs claim that they cannot find the eps figures. I am sure it is due to having the figures placed in a separate directory. Unfortunately, these are long documents and it will be a big problem to just start moving the eps files into the same directory as the document. It will also be painful to have to edit the latex code for each of these documents since there are many figures.

Is there a general fix, or switch with dvips or dvipdf which will allow the program to properly convert the figures so that each figure in each chapter for each document does not need to be re-edited ?

Recommended reading 2024:

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

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

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

latex no longer finds eps files.

Post by localghost »

Since your images are placed in several absolute paths, a security switch for dvips could solve the problem. In newer versions of dvips this option is set by default. More information is given on the MikTeX web page [1]. To get these images displayed, you have to call dvips in a special way.

Code: Select all

dvips -R0 filename.dvi
Note that the option contains the digit null, not the character "O". For the future you should think about using the graphicx package to include external graphics files.

[1] MiKTeX 2.5 Issues


Best regards
Thorsten¹
aardvark
Posts: 3
Joined: Wed Dec 03, 2008 6:07 pm

Re: latex no longer finds eps files.

Post by aardvark »

the dvips -R0 (the R and 0 flags) worked !! thank you.

ajd
Post Reply