Mao Jie wrote:

I try both the version 1.5.1 and 1.4.5 on my computer with Windows XP and
as soon as i open any lyx file, lyx tells me "The document uses a missing Tex class "article". Lyx will not be able to produce output". I want to know why. Does it result from wrong installation?


The most likely reason is that you either do not have LaTeX installed or have it installed improperly. On Windows, the most common LaTeX distribution is MikTeX. If you don't have MikTeX (or some other distribution), you can do one of the following:

a) download and install MikTeX (http://www.miktex.org); start LyX; run Tools -> Reconfigure, and wait for it to complete; then close and restart LyX; or

b) uninstall LyX, download the complete installer (http://wiki.lyx.org/Windows/Windows -- you want the 80 MB "bundle") and install that.

Note that LyX needs a few other programs besides LaTeX, notably ImageMagick (for image processing) and Ghostscript. If you are missing those as well, take option (b) above; the bundle comes with everything you need.

On the other hand, if you think that you have a working copy of LaTeX installed, open a DOS window and run 'kpsewhich article.cls'. It should tell you the path to the article class. If it fails to do so, your LaTeX distribution is screwed up. If DOS says kpsewhich is an unknown command, you need to get your LaTeX bin directory onto the system command path.

/Paul

Reply via email to