On 07/13/2012 01:07 PM, Allen Wilkinson wrote:
Richard,

I have Address and KeyWords working okay now tweaking your sample.

But abstract is still trouble.

my nagauth.layout now....
NoStyle Abstract
Style Abstract
    LaTeXType   command
    LaTeXName   abstract
    Category    FrontMatter
    InTitle     1
End

nagauth.cls....
\newbox\absbox
\def\abstract{\lrbox\absbox\minipage{\textwidth}%
  \small\normalfont%
  \centerline{{SUMMARY}}\par\vspace{8pt}%
  }
\def\endabstract{\copyrightline\endminipage\endlrbox}

How do I create layout language for this .cls case and have it come before \maketitle via .layout file?

This is actually an environment, though it looks like a command, so you need to make it LaTeXType envrionment. (This is a very good example of what Peter was saying about the problem of trying to read these things.)

The "InTitle 1" tag tells LyX that this comes before \maketitle. LyX issues \maketitle when it sees something that doesn't have "InTitle 1". E.g., a section heading, or whatever.

Richard

Reply via email to