Search code examples
pdflatexepsdvi-tex

Included LaTeX figures do not show in dvi but do in pdf


I am trying to get LaTeX to include figures, but the eps files will not show up in the DVI. I tried various packages to no avail. The figures will show up fine if I compile to PDF, but not in the DVI file...

I am using MikTex and LEd under Windows.


Solution

  • This is probably due to the limitations of your DVI viewer. The DVI file itself does not contain the EPS files: merely a link to those files. When the DVI is converted to postscript (and from there to PDF, or directly to PDF), the EPS files are incorporated. Some dvi viewers support included the EPS files, others don't.

    Personally, I have always tended to simply look at the PDF end result, so I can't remember which viewers do support display of EPS images.

    Edit:

    With a quick google search, I found this link, implying the YAP viewer (the standard one in miktex) supports EPS as long as it knows where ghostscript is on your PC, so if you're using YAP, it may be as simple as pointing it at the ghostscript DLL.