Rich Shepard wrote:
> \pagestyle{myheadings}\markboth{Dr. V.N. Rai\\Page {\pagenumber}\\February
> 11, 2008}
>
>    The addressee and data are explicit because I don't yet know how to
> specify those with variables.

\usekomavar (see below)

>    The error when trying to compile with pdflatex is:
>
> "Paragraph ended before \markboth was complete"

\markboth takes two arguments (left and right heading).

>    I get the same error if I split the LaTeX into two lines, with the
> second line beginning with the \markboth{}.
>
>    What have I missed, please?

(preferably in preamble:)

\pagestyle{myheadings}
\markboth{\usekomavar{toname}\\Page \thepage\\\usekomavar{date}}{}

or (to use both sides)

\pagestyle{myheadings}
\markboth{\usekomavar{toname}}{Page \thepage\\\usekomavar{date}}

However, I'd use scrpage2 instead. Set Document->Settings->Page Format->Page 
Style to "default" and put the following in preamble

\usepackage{scrpage2}
\pagestyle{scrheadings}
\ohead{\usekomavar{toname}\\Page \thepage\\\usekomavar{date}}

or:

\usepackage{scrpage2}
\pagestyle{scrheadings}
\ohead{\usekomavar{toname}}
\ihead{Page \thepage\\\usekomavar{date}}

Jürgen

Reply via email to