[Tex/LaTex] Text above and below header rule, hanging header text

fancyhdrheader-footer

I'm trying to make a header on every page with text above and below the header rule, so that it looks something like this:

                                  header text above line
--------------------------------------------------------
                                  header text below line

[body of page]

Is this possible with fancyhdr? Or is there another way to do this?

I realize this may not be aesthetically pleasing, but I'm trying to emulate another document (not made with LaTeX).

Best Answer

Try this, with fancyhdr:

\pagestyle{fancy}
\fancyhead[LE,LO]{~\\\hrulefill\\~}
\fancyhead[CE,CO]{~\\\hrulefill\\~}
\fancyhead[RE,RO]{text above\\\hrulefill\\text below}

If desired, switch left and right. You will need to play with the headheight and the line skips in the header, and related dimensions.

Related Question