Marshall Feldman <[email protected]> writes:
> I'm writing my first LyX layout and running into trouble. When I use
> the following command in the layout file, the document class appears
> in the Document Settings drop-down list:
>
>    #  \DeclareLaTeXClass[letter,graphix]{letter (mine)}

Assuming that the layout is named myletter.layout and you have a class
myletter.cls, the following should be enough:

    #  \DeclareLaTeXClass{letter (mine)}

Adding the optional "letter" argument tells that your document actually
starts with \documentclass{letter}. Adding "graphix" means that you want
"graphix.cls" to be available, which seems very strange to me. Assuming
you want to specify that graphicx.sty (the graphicx package) to be
available, the right command would be

    #  \DeclareLaTeXClass[letter,graphicx.sty]{letter (mine)}

Actually, the extra checks are not needed at all if the class is for
your own use. They have been proposed for the classes that we ship with
LyX and that may rely on `weird' packages.

In general one never tests for graphicx.sty or clac.sty, since they are
part of the `required' packages of LaTeX, i.e. supposed to be always
available.

Hope this helps.

JMarc

Reply via email to