1 |
Zhang Weiwu schrieb: |
2 |
> Dear all |
3 |
> |
4 |
> I just emerged lyx and it doesn't work. The issue is class files are |
5 |
> missing (one example is scrbook.cls). It should be installed together |
6 |
> with lyx but it didn't. |
7 |
> |
8 |
> I need to install a package containing this file. to which package this |
9 |
> file belongs to? I googled around without luck |
10 |
> |
11 |
> Thanks. The complete description of the issue is as follows: |
12 |
> |
13 |
> G. Milde's suggestion on solving my lyx problem: |
14 |
> |
15 |
>> On 6.05.08, Zhang Weiwu wrote: |
16 |
>> |
17 |
>> |
18 |
>>>> error message in opening tutorial with lyx. The opened tutorial is not |
19 |
>>>> printable. see below: |
20 |
>>>> |
21 |
>>> |
22 |
>>> |
23 |
>> ... |
24 |
>> |
25 |
>> |
26 |
>>>> Warning: Document class not available |
27 |
>>>> ---------------------------------------- |
28 |
>>>> The layout file requested by this document, |
29 |
>>>> scrbook.layout, |
30 |
>>>> is not usable. This is probably because a LaTeX |
31 |
>>>> class or style file required by it is not |
32 |
>>>> available. |
33 |
>>>> |
34 |
>>> |
35 |
>>> |
36 |
>> ... |
37 |
>> |
38 |
>> |
39 |
>> |
40 |
>>>> zhangweiwu@esmeralda:~$ locate scrbook.layout |
41 |
>>>> /usr/share/lyx/layouts/scrbook.layout |
42 |
>>>> |
43 |
>>> |
44 |
>>> |
45 |
>> scrbook.layout is the LyX layout file, for printed output it requires the |
46 |
>> *LaTeX class file* ``scrbook.cls``: |
47 |
>> |
48 |
>> milde@ilse:/tmp > locate scrbook.cls |
49 |
>> /usr/share/texmf-texlive/tex/latex/koma-script/scrbook.cls |
50 |
>> |
51 |
>> Looking at Help>LaTeXConfig, you can find out which LaTeX classes and |
52 |
>> packages are found by the latest Tools>Reconfigure run. Here I have: |
53 |
>> |
54 |
>> Found: scrartcl: yes, scrreprt: yes, scrbook: yes |
55 |
>> |
56 |
>> Fix: |
57 |
>> |
58 |
>> Find out which Gentoo package provides the file scrbook.cls and install |
59 |
>> it (or install all classes that are marked as required, recommended or |
60 |
>> suggested by LyX). |
61 |
>> |
62 |
> |
63 |
> |
64 |
www.portagefilelist.de could answer these kinds of questions. |
65 |
|
66 |
But the package you are looking for is |
67 |
dev-texlive/texlive-latexrecommended-2007. |