Saturday, June 5, 2010

Latex fancyhdr does not print the header/footer

Make sure that :
\usepackage{fancyhdr}
is present after the last usepackage tag. The following the begin{document} tag use the following code:
\pagestyle{fancy} %\thispagestyle{fancy}
\fancyhead{\textbf{--- This is a draft ---}}
%\fancyhead[CO,CE]{---Draft---}
The most important part is to remember that this code should be placed after the begin{document} tag, else the header will not print. The code mentioned above can be customized to make sure the header is printed as per custom requirements.

0 comments:

Post a Comment