Created
January 25, 2012 21:30
-
-
Save xoan/1678842 to your computer and use it in GitHub Desktop.
Header / Footer in LaTeX with fancyhdr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{fancyhdr} | |
\setlength{\headheight}{14pt} | |
\renewcommand{\headrulewidth}{0pt} | |
% Need to define \titlename and \authorname | |
%% Inner Header / Outer Footer | |
\lhead[]{\fancyplain{}{\footnotesize\titlename}} | |
\rhead[\footnotesize\nouppercase\authorname]{} | |
\lfoot[\thepage]{} | |
\cfoot{} | |
\rfoot[]{\thepage} | |
%% Outer Header / Outer Footer | |
%\lhead[\footnotesize\nouppercase\authorname]{} | |
%\rhead[]{\fancyplain{}{\footnotesize\titlename}} | |
%\lfoot[\thepage]{} | |
%\cfoot{} | |
%\rfoot[]{\thepage} | |
%% Only Header (except Chapter Page) | |
%\lhead[\thepage]{\fancyplain{}{\footnotesize\titlename}} | |
%\rhead[\footnotesize\nouppercase\authorname]{\fancyplain{}{\thepage}} | |
%\cfoot{\fancyplain{\thepage}{}} | |
%% Center Header and Footer | |
%\chead[\footnotesize\nouppercase\authorname]{\fancyplain{}{\footnotesize\titlename}} | |
%\cfoot{\thepage} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment