Dear list,

I get compile errors when I insert a figure into lyx. The problem
disappears when I export to latex and run pdflatex directly. By
comparing the exported latex file in /tmp/lyx_..., I find that

-------------------------------- exported latex code
----------------------------
\includegraphics[%
  width=6in,
  
height=5in]{/tmp/lyx_tmpdir13060IGMYBk/lyx_tmpbuf0/0_home_bpeng_simuPOP_doc_viewPop.png}

-------------------------------- log file
-----------------------------------------------

LaTeX Warning: Reference `viewpop' on page 18 undefined on input line 1051.


LaTeX Warning: File `/tmp/lyx_tmpdir13060IGMYBk/lyx_tmpbuf0/0_home_bpeng_simuPO
P_doc_viewPop.png' not found on input line 1056.

! Missing \endcsname inserted.
<to be read again>
                   \unhbox
l.1056 ...f0/0_home_bpeng_simuPOP_doc_viewPop.png}

---------------------------- end of error message ---------------------

Note that the file
/tmp/lyx_tmpdir13060IGMYBk/lyx_tmpbuf0/0_home_bpeng_simuPOP_doc_viewPop.png
does exist.

If I rename the figure to viewPop.png under
/tmp/lyx_tmpdir13060IGMYBk/lyx_tmpbuf0  and change the latex file
accordingly, the file compiles OK.

Is it the generated filename that is causing the problem? My guess is
that the filename is too long.

Bo

Reply via email to