From 7c99114f0dd1cea3c8848cf960c847ea0071a047 Mon Sep 17 00:00:00 2001 From: Frank Erens Date: Tue, 6 Dec 2011 14:46:39 +0100 Subject: [PATCH] Added nicer looking headers and footers. --- uhheader/uhheader.sty | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/uhheader/uhheader.sty b/uhheader/uhheader.sty index 4a0f2a9..f2e44ec 100644 --- a/uhheader/uhheader.sty +++ b/uhheader/uhheader.sty @@ -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} +