[OS X TeX] OT: modern substitute for fancyheadings.sty
Bruno Voisin
bvoisin at mac.com
Sun Feb 25 15:27:38 CET 2007
Le 24 févr. 07 à 23:13, Herbert Schulz a écrit :
> The fancyhdr package supplanted the fancyheader package (with some
> comments about file names that could only have 8 + 3
> characters :-)). The major difference is that \headrulewidth and
> \footrulewidth are now commands rather than lengths so you need
> things like
>
> \renewcommand\headrulewidth{0.4pt}
>
> to set them. I think most simple setups will need little change.
Many thanks for this remark, it was useful. The original .cls file
contained:
\RequirePackage{fancyheadings}
\setlength{\headrulewidth}{0.4pt}
After replacing fancyheadings by fancyhdr, I got an error:
> ! LaTeX Error: Missing \begin{document}.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.57 \setlength{\headrulewidth}{0.4pt}
Replacing \setlength by \renewcommand, the error disappeared.
Bruno
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the macostex-archives
mailing list