TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to LyX, and using LyX 2.0 for Windows. When I select a template from "File"->"New from template" it shows a alert with title

"document class not available"

containing the text like

selected document class


require an unavailable external file and asks for


Where can I get the scrbook.cls and how to install it?

share|improve this question

migrated from stackoverflow.com Jan 2 '12 at 2:03

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Werner Jan 2 '12 at 2:25
Are you sure you have a TeX distribution installed? LyX itself requires either MiKTeX or TeXLive to be installed as well as LyX itself. (The installer should have installed MikTeX, I think.) – Alan Munn Jan 2 '12 at 2:33

LyX requires a TeX distribution to operate. A TeX distribution is the collection of programs, fonts and packages/classes that are required to produce documents with TeX. For Windows, the LyX installer should have installed MikTeX if it found no distribution installed. If that didn't happen then you may need to install MikTeX separately. You can get MikTeX here: http://miktex.org/.

You can verify whether you have a working distribution by typing in latex in the START menu. You should see something like the following: (this screenshot is from a German system, but other than that, the display should be similar).


(If you type MiKTeX you should also see something related MikTeX itself).

Alternatively you can opening in a command window (windows key+R CMD) and typing:

latex -v

If these methods fail to turn up anything, then you need to install MikTeX yourself.

share|improve this answer

Besides TeX/LaTeX, you need to install the KOMA-Script bundle, scrbook belongs to it, as all classes and packages with a name starting with scr.

  • If you use MiKTeX, start the MiKTeX package manager (mpm) and install the package koma-script, the link points to the package description on the MiKTeX homepage.

  • If you use TeX Live, start the TeX Live Manager (tlmgr) and install the package koma-script. It can also be done on the command prompt: tlmgr install koma-script.

share|improve this answer
Aren't these both standardly part of both TeX Live and MikTeX? – Alan Munn Jan 2 '12 at 16:21
@AlanMunn KOMA-Script is not part of basic MiKTeX, also TeX Live offers different installation schemes. – Stefan Kottwitz Jan 2 '12 at 16:25

Try the following:

  • Open Lyx
  • Click on Tools Menu/Reconfigure
  • Lyx will be unresponsive until reconfigure completes
  • restart Lyx
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.