I previously posted this on stackoverflow.com where it was suggested that I post it here. So apologies in advance for cross-posting.
I am using LaTeX in ubuntu 10.04 to build a TeX file that uses
\includegraphics. I am not specifying the file extension to allow latex to auto decide. I have both
.eps files for each image I am including.
My problem is that if I build with
pdflatex everything works. However if I build with
latex I get errors of the form:
! LaTeX Error: Cannot determine size of graphic in images/DetailedArch.pdf (no BoundingBox).
I assumed that running
latex would automatically choose the EPS version of the file. If I specify the
.eps extension in the
\includegraphics command everything works fine. I have tried various options such as using
\ifpdf but have failed to find a solution.
One point that I notice is that in Ubuntu 10.04
latex is a link to
pdftex -- not sure if this is part of the issue.