[Tex/LaTex] Why don’t the images show up

graphicslyxpdfxetex

I am using LyX to create my documents. I then export them to plain LaTeX and use XeLaTeX to create a PDF output. My images show up in the LyX document but not in the PDF output.

LyX generates this code to insert an image:

\includegraphics{\string"some file\string".png}

I get errors like these:

[1] <"some file".eps>
Overfull \hbox (209.98003pt too wide) in paragraph at lines 58--62

and

** WARNING ** No filename specified for PSfile special.
** WARNING ** Interpreting special command PSfile (ps:) failed.
** WARNING ** >> at page="3" position="(158.675, 489.198)" (in PDF)
** WARNING ** >> xxx "PSfile=""some file".eps" llx=-0 lly=-0 urx=528 ury..."
** WARNING ** >> Reading special command stopped around >>""some file".eps" llx=-0 lly=-0 urx=528 ury=178 rw...<<

Best Answer

Don't use spaces in the file name. xetex has to call in the background ghostscript to convert the eps file and obviously the quotes needed to hide the spaces leads to problems in this step. ""some file".eps" is simply not a sane file name.

Related Question