I'm wondering how to achieve this header style using two rules with a thick one on the bottom, and the page number in a shadowed square ?.

The version in the image below is the right page version. page header

1 Answer 1


This is a rather crude (but sufficient) way of constructing the shadowed boxes. \headrulewidth specified the wider/thicker rule while \hrulefill sets a thinner/regular rule.

enter image description here



\setlength{\headheight}{20pt}% Adjust based on content
\fancyhf{}% Clear header/footer
\renewcommand{\headrulewidth}{2pt}% Thick header rule
\renewcommand{\footrulewidth}{0pt}% No footer rule (default)
\fancyhead[LO]{Some header text \hrulefill\hspace*{4em}}%
\fancyhead[RE]{\hspace*{4em}\hrulefill Some header text}%




You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .