[OS X TeX] pdflatex figure with the same name as the document?

Jung-Tsung Shen jushen at gmail.com
Thu May 13 22:43:45 CEST 2010


I was pdflatexing a document named "One_Way.tex" just now. In the
document, I have a figure named "one_way.jpg". The compilation failed
numerous times (log attached below) and I thought the figure file was
corrupted so also I re-made tons of times a new figure file but still
in vain.

Finally, I changed the name of the figure file to something else and
it worked immediately. Is there a rule that the figure file can't be
of the same name as the document?

JT

*****************************

[1{/usr/local/texlive/2009/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]Error:
PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

!pdfTeX error: /usr/texbin/pdflatex (file ./one_way.pdf): xpdf: reading PDF ima
ge failed
 ==> Fatal error occurred, no output PDF file produced!



More information about the macostex-archives mailing list