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 ?
General ⇒ latex no longer finds 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
latex no longer finds eps files.
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.
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¹
Code: Select all
dvips -R0 filename.dvi
[1] MiKTeX 2.5 Issues
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
Re: latex no longer finds eps files.
the dvips -R0 (the R and 0 flags) worked !! thank you.
ajd
ajd