[comp.text.tex] Where are my headers?

jh@ccave.UUCP (Juergen Hermann) (07/11/90)

Is there a way to get a header line on the very first page of a \LaTeX
document? Currently I use the "\setcounter..." line (see below) which
creates an empty page 0 and page 1 {\em with} the header, but that's ugly
at best.

The document in question:

\documentstyle[German,DINA4]{article}
\pagestyle{myheadings}
\raggedbottom
\setlanguage{\english}
\markright{BTOA(1)\hfill local\hfill}

\begin{document}
\setcounter{page}{0}\thispagestyle{empty}\mbox{ }\newpage
\subsubsection*{NAME}
...

\end{document}

--
   //  Juergen Hermann		UUCP: jh%ccave@smurf.sub.org
 \X/   75 Karlsruhe 1, FRG	Fido: 2:241/2.1212@FidoNet

piet@cs.ruu.nl (Piet van Oostrum) (07/12/90)

In article <jh.0831@ccave.UUCP>, jh@ccave (Juergen Hermann) writes:
 |Is there a way to get a header line on the very first page of a \LaTeX
 |document? Currently I use the "\setcounter..." line (see below) which
 |creates an empty page 0 and page 1 {\em with} the header, but that's ugly
 |at best.
 |
The problem is caused by the fact that LaTeX issues a \mark{}{} command at
the beginning of the document. This mark command cannot be undone, so if
your heading uses the mark, you are lost.

If you use a heading style that allows you to specify the fields without
marks, which should only be done if the header does not depend on the page
contents, then it can be done e.g. with a \thispagestyle command. Such a
heading style is a.o. fancyheadings.sty
-- 
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31-30-531806   Uucp:   uunet!mcsun!ruuinf!piet
Telefax:   +31-30-513791   Internet:  piet@cs.ruu.nl   (*`Pete')