LyXUnavailable document class

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
lyxer
Posts: 47
Joined: Mon May 10, 2010 5:17 pm

Unavailable document class

Post by lyxer »

Hello,

Everything was working fine with Lyx 2.2 on Windows 10 until I did an update for windows (I think).
Now, Lyx is not working properly. I eventually had to uninstall Lyx and Miktex and reinstall them again.
But the problem persists: First, when I compile any file I get a message saying "The directory path to the
document cannot contain spaces". I've never had this error before but then when I went to Documents -> setting
I found that all classes (Articles, books, ... etc.) are unavailable. I tried many things to solve the problem including some of the tips in:
http://latex-community.org/forum/viewto ... ass#p85337
and
http://latex-community.org/forum/viewto ... ass#p84796

with no use. I tried adding paths to Miktex and every time I reconfigure Lyx and restart.

Not sure what to do.

Lyxer

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Unavailable document class

Post by Stefan Kottwitz »

Perhaps worth a try if it fails with MiKTeX: install a full (!) TeX Live, then reconfigure LyX.
I'm working with TeX Live for many years and I'm very satisfied with it.

Stefan
LaTeX.org admin
lyxer
Posts: 47
Joined: Mon May 10, 2010 5:17 pm

Unavailable document class

Post by lyxer »

Thanks Stefan for the tip.

After two days of trying to install Texlive I finally managed to install it.
Now It's working fine and I can see many of the missing document classes.
It's weird though since under tools -> preferences, the path suggests that Lyx
is using Miktek and not Texlive [C:\Program Files\MiKTeX 2.9\miktex].
I'm not sure which one it is using!

In the future, if I needed to add a document class that is not available (dimmed),
what would be the best way to add it?

Thanks again,

lyxer
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Unavailable document class

Post by Stefan Kottwitz »

Maybe you need to run "Reconfigure" in LyX.

For the future, I recommend to make a full TeX installation, so you would have all document classes and all packages available, without any headache later because of additionally required installations. Besides that, it should be installing a document class (or bundle) in a "LaTeX way" (TeX Live manager, or manually and running mktexlsr / texhash), then reconfigure LyX.

Stefan
LaTeX.org admin
lyxer
Posts: 47
Joined: Mon May 10, 2010 5:17 pm

Unavailable document class

Post by lyxer »

Thanks I will.
Post Reply