4

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?

3
  • 1
    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. Jan 8, 2013 at 9:44
  • 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 Jan 8, 2013 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, 2013 at 15:22

1 Answer 1

4

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.

1
  • yum install texlive solved this for me on fedora. I had only installed latexmk which was insufficient. Feb 28, 2020 at 2:02