I am writing my thesis and I am using document class thesis
. I want the page numbering appearing at bottom of the pages and centered.
\documentclass[12pt,a4paper, oneside, bold]{thesis}
\usepackage[left=3cm,right=2cm,top=3cm,bottom=2cm]{geometry}
\begin{document}
My text....
\end{document}
I tried writing something like that:
\documentclass[12pt,a4paper, oneside, bold]{thesis}
\usepackage[left=3cm,right=2cm,top=3cm,bottom=2cm]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\cfoot{\thepage}
\begin{document}
My text
\end{document}
But nothing is working. Any suggestions please.
Best Answer
The package
fancyhdr
allows you the modification of the header. However the packagefancyhdr
doesn't overwrite the default styles instead it defines a new one namedfancy
. So you have to use\pagestyle{fancy}
: