Oops... I cannot reproduce it on the other machine, so I need to examine this problem more carefully before I report back.
Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Jul 18, 2012 at 1:06 AM, Yihui Xie <x...@yihui.name> wrote: > Hi, > > I'm not sure anyone else can reproduce this weird behavior under LyX > 2.0.4 (Ubuntu): the tex code for jpeg figures seems to be wrong. > Suppose the jpeg file is foo.jpg; in the tex code exported from LyX it > will become this: > > \includegraphics{\string"0_path_to_foo\string".jpg, jpeg} > > pdflatex will write the text "jpeg jpeg" before the figure in the PDF > output. It turns out that LyX copied foo.jpg to the temp dir as > "0_path_to_foo.jpg, jpeg". I do not understand why this happens. PNG > figures are fine. > > Regards, > Yihui > -- > Yihui Xie <xieyi...@gmail.com> > Phone: 515-294-2465 Web: http://yihui.name > Department of Statistics, Iowa State University > 2215 Snedecor Hall, Ames, IA