[Tex/LaTex] \lhead already defined error

fancyhdrheader-footerthesis

I am writing my thesis by using isuthesis package.
I want page numbers to come at the middle of bottom of the page. For that I thought of using fancyhdr package.

\documentclass[answers,a4paper]{isuthesis}
\usepackage{fancyhdr}
\begin{document}
hello world
\end{document}

I get the build error:

! LaTeX Error: Command \lhead already defined.
Or name \end… illegal, see p.192 of the manual.

Please help in solving this error.

Best Answer

As stated in the comments, the class already defines commands like \lhead or cfoot, you can just use them.

By default, the pagenumber is set in the center of the head, you first need to clear this field or the page number will appear two times on the page.

\documentclass{isuthesis}
\usepackage{blindtext}
\chead{}
\cfoot{\thepage}
\begin{document}
\blinddocument
\end{document}