Thank you for all the contribution, Summarized:
The latex export command line option works fine for regular latex, latex myfile.tex generates a valid dvi file. If you want to use pdflatex you should either: 1) edit the resulting .tex file and replace \usepackage{graphicx} with \usepackage[dvips]{graphicx} 2) run, before you run pdflatex, something like for FILE in `find . -name '*\.gif'`; do convert $FILE `echo $FILE | sed 's/\(.*\.\)gif/\1png/'`; done 3) Do not use gif's but png's instead Maarten > -----Original Message----- > From: Georg Baum [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 19, 2005 8:56 AM > To: lyx-users@lists.lyx.org > Subject: Re: Lyx command line question > > > Geoffrey Lloyd wrote: > > > Yes it should but you must note that Export->Pdflatex is > different to > > Export->latex followed by running pdflatex on the file. > > > > In the second case the only Export that Lyx is performing > is Lyx->tex. > > This will not convert any graphics file formats. > > This is true for 1.3.x, but 1.4 converts included graphics > files if needed, and references the converted file in the > .tex file. So the procedure > > lyx --export latex mylyxfile.lyx > pdflatex mylyxfile.tex > > should produce identical results to export->pdflatex from > GUI, with one > exception: > lyx --export latex can not know if the produced .tex file > will be run through pdflatex or latex. It assumes latex, and > this is the problem here: The gif file is converted to eps, > and the .tex file contains '\includegraphics{foo}'. latex > would find foo.eps (which was created), but pdflatex would > find foo.pdf, foo.png or foo.jpg. > > > So I recommend you use png or jpg files in the original dicument. > > This is indeed a workaround until we have a 'pdflatex' export format. > > > Georg > >