[Tugindia] \fancyhead
CV Radhakrishnan
cvr at river-valley.org
Wed Feb 21 05:49:29 CET 2007
On Tuesday 20 February 2007, Arun Kejariwal wrote:
> Hi,
> Typically \fancyhead is defined in the preamble of a
> document. But, this puts the same header on all the pages. Is
> there some way to have, say,
>
> \fancyhead[LE,RO]{XYZ} for the first 10 pages
>
> and then use a \clearpage and then have
>
> \fancyhead[LE,RO]{ABC} for the following 10 pages.
Why not we try this way:
\makeatletter
\def\headtext#1{\gdef\@headtext{#1}}
\fancyhead[LE,RO]{\@headtext}
\makeatother
\headtext{XYZ}
after ten pages
\clearpage
\headtext{ABC}
Guess, this will work, haven't tested though.
Best
--
Radhakrishnan
More information about the tugindia
mailing list