Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Whenever I try to view a PDF of a document in LyX, I get this error:

No information for exporting the format PDF (pdflatex)

I get similar errors for DVI and postscript.

If I go through File->Export, the only options are other LyX formats and Docbook. There isn't even an option to export to LaTeX.

How do I configure LyX to export to these formats? Is there at least a way for me to convert to LaTeX so I can use pdflatex to create a PDF?

EDIT: Strangely, this problem fixed itself. I can't think of anything I changed to make it happen. Perhaps a software update fixed this.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

I haven't found a way to stop these errors but I have found some workarounds that give a nicely formatted output:

eLyXer eLyXer is a program available in the software repositories as elyxer that converts a document in LyX format to a nicely formatted HTML document. This can be viewed by a web browser and converted to a PDF/PS via print to file.

View Source + pdflatex To view the LaTeX source, select View->View Source. This displays a split-screen. To get the complete LaTeX document make sure the 'Complete Source' box is ticked. This text can then be copied and pasted into a text editor. The command line tool, pdflatex can be used to convert the LaTeX document to a PDF. The PDF file can be converted to other formats via the pdf2* and pdfto* sets of commands.

docbook-utils The package docbook-utils can convert a file in docbook format to several other formats including PDF, PS and HTML.

share|improve this answer
add comment

When things go awry like this, best is to:

sudo apt-get purge lyx

Then:

mv ~/.lyx ~/.lyx.bak

This will make sure that you start with a fresh config.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.