On Tue, May 29, 2001 at 02:44:48PM +0100, Reuben Thomas wrote:
> I am currently writing a paper using entcs.cls (Elsevier's Electronic Notes
> in Theoretical Computer Science style).
>
> It has a slightly unusual requirement: the \author, \address & so on
> commands must go in a special environment:
>
> \begin{frontmatter}
> \author{Me}
> \title{Foo}
> \address{Bar}
> \end{frontmatter}
>
> Can anyone help? Of course, I can just put the begin/end environment in as
> ERT for now...
Currently, the solution is rather ugly:
Style title
LatexType Command
LatexName settitle
InTitle 1
Preamble
\newcommand{\settitle}[1]{\def\theTitle{#1}}
EndPreamble
End
Style author
LatexType Command
LatexName setauthor
InTitle 1
Preamble
\newcommand{\setauthor}[1]{\def\theAuthor{#1}}
EndPreamble
End
Style address
LatexType Command
LatexName setaddress
InTitle 1
Preamble
\newcommand{\setaddress}[1]{\def\theAddress{#1}}
EndPreamble
End
Preamble
\newcommand{\maketitle}{
\begin{frontmatter}
\title{\theTitle}
\author{\theAuthor}
\address{\theAddress}
\end{frontmatter}
}
EndPreamble