How to add a horizontal line above the footer using fancyhdr, just like the line present below the header?


Redefine \footrulewidth:

\renewcommand{\footrulewidth}{0.4pt}% default is 0pt

To learn more about fancyhdr, you could either look into its documentation or at the respective chapter in the Wikibook LaTeX.

  • I added a couple of resources from a similar answer I was going to give on another question, hope that's okay.
    – doncherry
    Jun 8 '12 at 8:17
  • This works, but not on the first page when using the article document class. How to also add a line above the page number "1"?
    – Karlo
    Nov 22 '20 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.