Skip to content

Commit

Permalink
Added nicer looking headers and footers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Symaxion committed Dec 6, 2011
1 parent 3116ee5 commit 7c99114
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions uhheader/uhheader.sty
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,22 @@
\begin{center}\textbf{\textsf{\Large{\titleval}}}\end{center}

}

% Nice footers
\newlength{\pagenumberwidth}
\newlength{\hlinewidth}

\usepackage{fancyhdr}

\pagestyle{fancy}

\fancyhead{}
\cfoot{ %
\settowidth{\pagenumberwidth}{\phantom{~\thepage}}
\setlength{\hlinewidth}{\linewidth}
\addtolength{\hlinewidth}{-\pagenumberwidth}
\noindent\rule[.5ex]{\hlinewidth}{0.1mm}~\thepage
}

\renewcommand{\headrulewidth}{0pt}

0 comments on commit 7c99114

Please sign in to comment.