Luís Batalha wrote:
Hi there,

I have installed LyX 1.5.2 on Windows XP (running LyX-1.5.2-1-Installer.exe)
and was not able to make DVI, PS, PDF right from the start. When I try to
export one of the templates or tutorial, or whatever to one of these formats
I get these messages:
"LyX: Document class not available
The layout file requested by this document, article.layout, is not usable.
This is probably because a LaTeX class or style file required by it is not
available. See the customization documentation for more information. LyX
will not be able to produce output."
I click OK and the document shows up in input mod (LyX), but when I try to
export it to one of the three formats I get this:
"No information for exporting the format DVI"
"No information for exporting the format PDF"
"No information for exporting the format Postscript"

When I open the "document settings" tab I see that all the document classes
are "unavailable".
I have MikTeX 2.5 and installed and uninstalled LyX a couple of times
without success. What might be the problem and how can I deal with it?

I am new to LyX and this is probably just trivia.


Most likely LyX cannot find MikTeX. Is the MikTeX bin directory on your system command path? If you open a DOS prompt and run 'kpsewhich article.cls', does it report back the path to article class file?

If MikTeX is not on the system path, try adding it to the system path and then reconfigure (Tools menu) and restart LyX. If MikTeX is on the path and kpsewhich finds article.cls, try opening a DOS prompt in the parent directory of your user directory (Help -> About LyX will tell you the user directory -- it's typically C:\Documents and Settings\<you>\Application Data\lyx15\, so you want the prompt in ...\Application Data). From there, run

<path to LyX>\python\python.exe <path to LyX>\Resources\configure.py

and keep an eye on the output. Early on, it will indicate it is looking for LaTeX, and you should get a 'yes' for latex.exe. If you do not, it's still not seeing MikTeX, or MikTeX is somehow broken.

/Paul

Reply via email to