Saturday, November 10, 2012

Header/Footer in Latex with Fancyhdr « LaTeX Matters

Again, I apologize for not updating as much and not being able to get to comments :(.  Really busy with school and behind, but I am trying to make an effort to update a bit now!

Header/Footer in Latex with Fancyhdr « LaTeX Matters

Good blog post on a bit about the LaTeX package fancyhdr which controls and gives options for headers and footers.

Some other links:

http://en.wikibooks.org/wiki/LaTeX/Page_Layout

http://latexforhumans.wordpress.com/2009/01/09/fancyhdr/

http://timmurphy.org/2010/08/07/headers-and-footers-in-latex-using-fancyhdr/

As an example, I wanted to place a line at the bottom of the page (or footer) right above the page number for every page, except the title page of course.

Here is some of the "code."


\usepackage{fancyhdr}  % controls headers and footers
\pagestyle{fancy}
% \fancypagestyle{plain}
\fancyhf{} % clear all header and footer fields
% \fancyhead{} % clear all header fields
% \fancyfoot{} % clear all footer fields
\fancyfoot[C]{--\thepage--}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0.4pt}



Here is the result.



No comments:

Post a Comment