Sébastien Garrigues wrote: > Hi, > > I have some trouble to install new layouts. My lyx is on debian linux. > I put the layout in my home directory : home/.lyx/layouts/ > after reconfiguring lyx, and restarting it no new class of document > appear !! > So I guess that I miss an important thing to do ... somebody can help me > ??
The layout is only recognized if the corresponding latex class file can be found. Is the class file installed? Did you do a "texconfig rehash" afterwards? This command must be run as root if you installed the class file in the system texmf tree and as normal user if you installed it under ~/texmf. Another show stopper might be the DeclareTextclass command in the layout file. It must be either \DeclareLaTeXClass[stdclass]{myvariant} (if you use class "stdclass"), or \DeclareLaTeXClass{myclass} and the file must be named myclass.layout (if you use the class "myclass"). Georg