[OS X TeX] fancyhdr and marks

Piet van Oostrum piet at cs.uu.nl
Wed Oct 19 00:25:05 CEST 2005


>>>>> Frank STENGEL <fstengel at mac.com> (FS) wrote:

>FS> I have been trying to build a personal document class and I have come  up
>FS> something weird with fancyhdr. I use version 3.1

>FS> If I declare

>FS> \pagestyle{fancy}
>FS> \renewcommand{\sectionmark}[1]{Section #1}% just for the sake of an
>FS> example

>FS> I get what I asked for. Plus I can change page styles any number of  times
>FS> if I want without any problems. If, instead, I define  \sectionmark before
>FS> the first \pagestyle then the definition for  \sectionmark reverts to the
>FS> original one (\markboth{\MakeUppercase { etc.) after the execution of
>FS> \pagestyle{...}. Can anyone confirm?  Is that intentional (i.e a design
>FS> feature) or a buglet?

It is intentional. fancyhdr initializes a couple of things, and
\sectionmark and \chaptermark are amongst them.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list