Paul A. Rubin wrote:
Jef Patat wrote:
Hi,
I try to modify amsbook.layout but whatever I do the layout always
ends up
listed unavailable in the document class list. Even if I just copy
the file
amsbook.layout and just rename the filename and let Lyx reconfigure.
what am I missing here?
LyX assumes that xxx.layout uses xxx.cls, so if you rename a copy of
amsbook.layout, you also need to rename a copy of amsbook.cls the same
way, run texhash or equivalent to update the LaTeX file name database,
then reconfigure and restart LyX.
Unless you put the document class name in square brackets, e.g.:
# \DeclareLaTeXClass[paper]{article (objrep)}
rh