On 2011-06-24, Terrance Wickman wrote:

> I am using lyx 2.0. I have installed all packages and files from texlive  
> 2011 (2000 something of them). I am using the fedora stack of both of  
> them.  The latex styles and classes are in my  
> /usr/share/texlive/texmf-dist/ folder. I have texhash several times. I  
> have set the path in lyx to /usr/share/texlive/ Then reconfigured, and  
> rescanned the tex information several times.

Did you also check, whether they are found by LaTeX (e.g. running a
minimal latex document "by hand" or with kpseawich <the package>?


>   lyx shows the latex classes  
> and styles I need in the tex information.  It does not however show the  
> layouts that I have them for.

Does this mean the layout files shipped with lyx or additional ones
(downloaded from the wiki or home-made)?

Where are your layout files stored?

With most Unix-based systems, private layouts and modules should be in
~/.lyx/layouts (Help>About shows the LYXDIR).

> Such as chess still shows up as unavailable.  I don't need chess, I
> need other ones such as apae6. I have about 100 latex classes that I
> would like to use, but are unavailable in lyx.

LyX only supports a (compared to CTAN) small subset of popular LaTeX
classes and packages.

Rule of thumb: 

* if it is grey in the class selection drop-down box, the latex class is
  missing (or not found).

* if it does not turn up in the menus, the LyX layout (or module) is
  missing (or not found).

>  I have used the wiki to add apae6.layout. It works but others do not.
> This is cumbersome, and several latex classes to do not report the
> origin of their .cls file (ie article or book and such) and so when I
> manually add the .layout file to lyx, lyx cannot understand it. Can I
> automate the process of adding the latex classes to lyx and having
> .layout files created or at least having them made available?

Writing a script for generating LyX layouts (or layout templates)
might be a task worth considering. I don't know of an existing
solution, though.

Günter

Reply via email to