Marc D. wrote:

On 27 Jan 06, at 10:17, Herbert Voss wrote:

Marc D. wrote:

Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.

what does Edit->Preferences->Output->Converters say for
the entry LaTeX->PDF?

Herbert




I have a LaTeX -> PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex

There's an inconsistency here. I downloaded all the files from your directory. The converters are defined in lyxrc, where the key lines (I think) are:

\Format pdf       pdf  "PDF (ps2pdf)" P
\Format pdf2      pdf  "PDF (pdflatex)"       F
\Format pdf3      pdf  "PDF (dvipdfm)"        m
\converter latex pdf2 "pdflatex $$i" "latex"
\converter dvi pdf3 "dvipdfm $$i" ""
\converter ps pdf "ps2pdf13 $$i" ""

The first three lines declare three different extensions (pdf, pdf2, pdf3) to by used by LyX to indicate pdf files created three different ways (latex->dvi->ps->pdf, latex->pdf, latex->dvi->pdf respectively). The other three lines give the terminal conversion in each case.

In your preferences file, I found the following:

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

Note that the labels for the pdf and pdf2 extensions are actually the reverse of what the converters do (i.e., pdf is via ps, not via pdflatex). So if you're selecting View->PDF (ps to pdf), I think you're actually running pdflatex, and if you're selecting View->PDF (pdflatex), I think you're actually running latex, dvips and ps2pdf13.

Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


I ran your document with LyX 1.3.7, Win XP, MiKTeX. No matter how I view it, it comes out correct. I also exported to latex and ran latex (twice, dvips, and ps2pdf13 in that order, and got a correct PDF file. I notice from your path that you're using teTeX. Maybe a component needs upgrading?

/Paul

Reply via email to