Lost document classes in Lyx

Tags:

**DISCLAIMER: The following procedure worked for my install of texlive and lyx. I can't guarantee that it is going to work for anything else. Also, I am not really experienced with messing around TeX install. Therefore, if you are following this procedure, you are doing it on your own risk, and don't hold me responsible if you mess up your computer system, files, bussines, life .... You have been warned!
**END DICLAIMER

In case some of your precious document classes (like simplecv, europecv,...) suddenly became *unavailable* in LyX during some upgrade, maybe you'll find this useful. This happened to me with LyX 1.5.3 version, but I guess the problem is related to changes in texlive package.

Make sure first that the problem with usage of the classes is because they are missing. Go to /usr/share/lyx/layouts and list the contents of the dir to find exact names of the unavailable classes. You'll find filenames of the form "name.sty". Then, execute "kpsewhich name.cls". If the tool lists a full path of the file in /usr/share/texmf-texlive/tex/latex/.../name.cls, tex is fine but your LyX is probably messed up. If it doesn't return anything, your texlive install is missing the required classes. In latter case:

1) Download the missing packages from http://www.ctan.org/tex-archive/help/Catalogue/bytopic.html
2) Unpack them
2a) if there are no name.cls files run "latex name.inc" in order to create them.
3) Copy the unpacked package directories (but, don't forget 2a) ) to /usr/share/texmf-texlive/tex/latex/.../
4) run texhash
Previous steps should have fixed your texlive.
5) Start LyX and choose from menu: Tools >> Reconfigure.
6) Restart Lyx, and you should be able to use your classes

This text was the result of applying instructions found in http://www.mail-archive.com/lyx-users@lists.lyx.org/msg61046.html to Debian testing system (Lenny)

5
Average: 5 (1 vote)
Syndicate content