LyXLyX: No information for exporting the format PDF (pdflatex)

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
hooman
Posts: 41
Joined: Tue Jul 06, 2010 3:03 pm

LyX: No information for exporting the format PDF (pdflatex)

Post by hooman »

Hi,
I have Texwork and MiKtex installed on my laptop as well as Lyx but I'm not able to compile my Lyx documents using the PdfLatex tool.
When I open my Lyx documents I get a message that says: 'The the layout file layout.file by this document is not usable. This is probably because a LaTex class or style file require by it is not available.'
And when I ignore that, open the file and use the pdflatex tool I get a messsage that says: 'No information for exporting the format PDF (pdflatex).'
Please help if you know what is going on.
By the way I'm able to produce pfd files using texworks on my laptop.
Thanks you very much in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: PDFLaTeX

Post by meho_r »

Probably LyX hasn't recognized the path to LaTeX related stuff. Try this in LyX:

1. Tools > Reconfigure. Restart LyX after reconfiguration is done.
2. Tools > TeX Information. Check "Show Path" checkbox and see if the path is correct (you may try with "Rescan" if the path isn't recognized).

If all fails, you should check your MikTeX path (path to binaries like pdflatex), and enter that path in Tools > Preferences > Paths > PATH Prefix. If you aren't able to tell the path, take a look at TeXWorks preferences, it should be there, in "Typesetting" tab, the first one in the list. Of course, after you set the path manually, you should repeat steps 1. and 2. mentioned above too.
hooman
Posts: 41
Joined: Tue Jul 06, 2010 3:03 pm

Re: PDFLaTeX

Post by hooman »

Thanks for your reply.

When I go try Tools > Reconfigure I get this warning:
The system reconfiguration has failed. Default texclass is used but Lyx may not be able to work properly. Please reconfigure again if needed.
And when I go to tools > TeX information I get this error:
Lyx: Could not update this information.
The script <the directiroy I have lyx in>/scripts/Texfiles.py'failed.

Any ideas?
Many Thanks!
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

LyX: No information for exporting the format PDF (pdflatex)

Post by meho_r »

I'm not able to test that, since I'm not using Windows/MikTex, but you should check your python installation (I think it should come bundled with LyX) and your LyX installation. Only thing I can tell you is to try to reinstall LyX and see if anything changes.

Since this seems to be a technical problem, you may get more relevant answer on LyX's Mailing List. Also, check Gmane archive for "Texfiles.py", there were some issues regarding python in the past, maybe you'll find something useful.
hooman
Posts: 41
Joined: Tue Jul 06, 2010 3:03 pm

Re: PDFLaTeX

Post by hooman »

Thanks you very much. I'll try the things you said.
Post Reply