TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use the fancyhdr package for headers and footnotes for my LaTeX report, but when I compile TeX returns an error saying that fancyhdr.sty file can't be found.

Any suggestion on how to proceed please?

share|improve this question

migrated from stackoverflow.com Jan 8 '13 at 14:48

This question came from our site for professional and enthusiast programmers.

Also, note that it'll be really easier for people to help you if you provide your code, together with a direct copy of the error message. – Alexis Pigeon Jan 8 '13 at 9:44
thank you Alexis – user1957549 Jan 8 '13 at 10:42
to double check type kpsewhich fancyhdr.sty at the command line terminal to see its path. please update your Tex distro. For Texlive tlmgr update -all -self or for miktex install fancyhdr package – texenthusiast Jan 8 '13 at 14:59
Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Jan 8 '13 at 15:22

You can download fancyhdr here: http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/

To install it simply drop the sty file into either the location your packages are stored in or in the same folder as the document you're currently working on. Both should work.

If you tell us your OS and what Latex version you use, we might be able to also give you a way to install these more automatically.

share|improve this answer
i tried this but it is showing the same error over and over again. I'm running on Win 7... did someone really solve this? neuralwiki.org/index.php?title=Installing_fancyhdr.sty – user28287 Apr 1 '13 at 16:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.