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

1 Answer 1


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
    Commented Jun 8, 2012 at 8:17
  • 1
    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
    Commented Nov 22, 2020 at 17:30

You must log in to answer this question.

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