Discussion:
Color head rules in fancyhdr
(too old to reply)
Krystian Matusiewicz
2007-07-17 07:14:27 UTC
Permalink
Hello,

I'm using fancyhdr to redefine standard page headers.
I'd like to change the color of the header line (in pagestyle fancy)
from black to something else, say navy blue.
Unfortunately, googling and fancyhdr documentation didn't
provide any hints and I'm not that good at TeX to do it myself.
Any ideas or pointers would be greatly appreciated.

Thanks,
--
Krystian M.
Ulrike Fischer
2007-07-17 07:21:45 UTC
Permalink
Post by Krystian Matusiewicz
Hello,
I'm using fancyhdr to redefine standard page headers.
I'd like to change the color of the header line (in pagestyle fancy)
from black to something else, say navy blue.
Unfortunately, googling and fancyhdr documentation didn't
provide any hints and I'm not that good at TeX to do it myself.
Any ideas or pointers would be greatly appreciated.
Thanks,
\documentclass{book}
\usepackage{fancyhdr,xcolor}
\makeatletter
\def\headrule{{\color{red}\***@fancyplain\let\headrulewidth\plainheadrulewidth\fi
\hrule\@height\headrulewidth\@width\headwidth
\vskip-\headrulewidth}}
\makeatother

\pagestyle{fancy}

\begin{document}
\section{one}
text
text
\end{document}
--
Ulrike Fischer
Krystian Matusiewicz
2007-07-18 01:01:10 UTC
Permalink
Post by Ulrike Fischer
Post by Krystian Matusiewicz
Hello,
I'm using fancyhdr to redefine standard page headers.
I'd like to change the color of the header line (in pagestyle fancy)
from black to something else, say navy blue.
Unfortunately, googling and fancyhdr documentation didn't
provide any hints and I'm not that good at TeX to do it myself.
Any ideas or pointers would be greatly appreciated.
Thanks,
\documentclass{book}
\usepackage{fancyhdr,xcolor}
\makeatletter
\vskip-\headrulewidth}}
\makeatother
\pagestyle{fancy}
\begin{document}
\section{one}
text
text
\end{document}
It works like a charm! Thank you very much!
--
Krystian M.
Loading...