Carlos Knauer wrote:
Hi.
How do I creat a PDF file from LyX ?


First, look at the File | Export menu. You should see some or all of the options PDF, PDF (dvipdfm), or PDF (pdflatex). If you do, you can use any of them to export the document as a PDF file. (There are relative merits to each, but that's for someone more knowledgeable to explain.) If you don't see those options, you'll need to edit your preferences.

First go to Edit | Preferences | File formats and look for three entries: PDF, PDF (dvipdfm), PDF (pdflatex). If any are missing, click New, add the missing one (using PDF, PDF (pdflatex) or PDF (dvipdfm) for the GUI name; pdf, pdf2 or pdf3 respectively for the Format; pdf for the Extension in all three cases; and the name of your favorite viewer, for example acrord32 for Acrobat Reader, for the Viewer). Click Modify after each one to save the changes.

Now you need to go into Edit | Preferences | Converters and add some entries. (I think these entries should be there by default, in which case not having them may be indicative of the setup script not finding some key ingredient, such as the pdflatex.exe program, on your system.)

For "plain" conversion to PDF (via dvips), you need two entries:
From=DVI, To=Postscript, Converter=dvips -o $$o $$i, Extra flag left empty
  From=Postscript, To=PDF, Converter=ps2pdf13 $$i, Extra flag left empty

Using dvipdfm:
  From=DVI, To=PDF (dvipdfm), Converter=dvipdfm $$i, Extra flag left empty

Using pdflatex:
  From=LaTeX, To=PDF (pdflatex), Converter=pdflatex $$i, Extra flag=latex

In each case, if the entry is missing, click the New button, enter what's shown above, then click Modify. When you're all done, click Save to save your new settings.

At this point, the View menu should have options for each of the PDF formats you set up, as should the File | Export menu. So you can view the file (and print or save from the viewer), or export directly to a file.

Again, this depends on your having pdflatex.exe or dvipdfm.exe installed where LyX can find them. The "plain version" (using dvips and ps2pdf13) requires that you have GhostScript installed.

-- Paul

Reply via email to