I am trying to compile a document using pdflatex but I lose all figures (they look blank). The document was created by using the TeX + DVI typeset, and now I'm trying to change this to Pdftex. Is there a simple way to get around this issue? Can I just add something to the document so that Pdftex converts the eps figures I have on the fly?

I tried converting the figures myself using epstopdf, but there are some figures where there is some superimposed text and this approach doesn't work, for example:

\caption{Equilibrium in a continuous systems}

In the code above, uncommenting the includegraphics statement and commenting the next line shifts all manually added equations to the right.

  • 1
    Add usepackage{epstopdf} and compile with pdflatex -shell-escape file – karlkoeller Jan 14 '15 at 16:32
  • That didn't work – aaragon Jan 14 '15 at 16:33
  • 1
    Have you tried that already? What errors do you get? – karlkoeller Jan 14 '15 at 16:34
  • I put on the preamble \usepackage{epstopdf} and the document compiles, but I don't see the figures being converted. All the eps figures look blank. – aaragon Jan 14 '15 at 16:35
  • Did you put it after \usepackage{graphicx} and have enabled --shell-escape option? – karlkoeller Jan 14 '15 at 16:38

\includegraphics should be put inside \put as \psfig. Otherwise the following \put commands are moved to the right by the width of the \includegraphics statement. Also the translation of the \put command for \psfig would be lost.


  • That solved the problem that the figure is moving to the right, but still I can't seem to convert automatically those eps figures to pdf on the fly. – aaragon Jan 14 '15 at 17:13
  • @aaragon With a modern TeX distribution the conversion should work on the fly. Otherwise the shell-escape/write18 feature needs to be enabled and package epstopdf to be loaded (if it is not done automatically by graphics.cfg). – Heiko Oberdiek Jan 14 '15 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.