I am defining a layout where I need to have a few LaTeX definitions made. In LaTeX, these would be:

\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I am using.

In the LyX layout file, I tried the following:

InsetLayout "ReportNumber"
        LyxType                 custom
        LatexType               command
        LatexName               ICSEnum
        Category                FrontMatter
        LabelString             "Publication Number"
        Align                   left
        Font
          Shape                 Slanted
          Color                 green
        EndFont
        LabelFont
          Color                 green
          Size                  Small
        EndFont
End

This does correctly define the LaTeX command I need, but it is placed in the document body, not in the frontmatter (before \begin{document}) where I need it placed.

Any ideas on what I am doing wrong?

James

Reply via email to