# problem with \def\uppercase{} in thesis document

I am writing my thesis and facing the following problem.

When I remove \def\uppercase{} (see in the following file after \begin{document}. The title of my all chapters, Title "Table of contents", Title "Reference" in the thesis are converted to CAPITAL (e.g., REFERENCES instead of References, INTRODUCTION instead of Introduction).

[ed: This question is a follow-up to listing package error, where removing \def\uppercase{} was the proposed solution.]

How can I fix this issue?

\documentclass[twoside,12pt]{Classes/aesm_edspia}

\begin{document}
\def\uppercase{}

\renewcommand\figurename{\small\textbf{Figure}}
\makethese
\onehalfspacing

\frontmatter
\pagestyle{fancy}
\fancyhf{}

\fancyfoot[RO]{\thepage}
\fancyfoot[LE]{\thepage}
\renewcommand{\footrulewidth}{0pt}

\pagestyle{fancy}
\fancyhf{}

\fancyfoot[RO]{\thepage}
\fancyfoot[LE]{\thepage}
\renewcommand{\footrulewidth}{0pt}

\renewcommand\listfigurename{List of Figures}
\renewcommand\listtablename{List of Tables}
\renewcommand\bibname{Bibliography}
\renewcommand\indexname{Index}
\renewcommand\figurename{Figure}
\renewcommand\tablename{Table}
\renewcommand\partname{Part}
\renewcommand\chaptername{Chapter}
\renewcommand\appendixname{Appendix}

\input{Abstract/Abstract}
\clearpage{\pagestyle{empty}\cleardoublepage}
\include{Abstract/LongAbstract}
\clearpage{\pagestyle{empty}\cleardoublepage}
\include{Abstract/remerciement}

\clearpage{\pagestyle{empty}\cleardoublepage}
\tableofcontents
\clearpage{\pagestyle{empty}\cleardoublepage}

\pagestyle{fancy}
\fancyhf{}
\fancyfoot[RO]{\thepage}
\fancyfoot[LE]{\thepage}
\renewcommand{\footrulewidth}{0pt}

\listoffigures
\listoftables
\clearpage{\pagestyle{empty}\cleardoublepage}

\mainmatter
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[RO]{\thepage}
\fancyfoot[LE]{\thepage}
\renewcommand{\footrulewidth}{0pt}

\include{Introduction/introduction}
...

\onehalfspacing

\end{document}

• What would you like it to look like? That is, what is the problem with leaving \def\uppercase{} intact? – Steven B. Segletes Oct 30 '13 at 14:20
• Thanks @StevenB.Segletes for your reply. I had a listing package problem previously. The solution was suggested by our community to remove \def\uppercase{}'. Please see previously asked question for detail [link] (http://tex.stackexchange.com/questions/141293/listing-package-error) . But, when I removed \def\uppercase{}', I faced the above mentioned CAPITAL problem. – Pankesh Patel Oct 30 '13 at 14:31
• In my ignorance I comment: Shouldn't all definitions be on the preamble of the file? – Dox Oct 30 '13 at 15:15
• \def\uppercase{} is a big mistake and should not appear in any document. – egreg Oct 30 '13 at 15:38
• @egreg, I may agree with you that \def\uppercase{} should not be appear in the thesis. But, the removal of this line cause the above metioned capital problem. – Pankesh Patel Oct 30 '13 at 16:04

\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\chaptername~\thechapter. #1 }}{}}

\renewcommand{\chaptermark}[1]{\markboth{{\chaptername~\thechapter. #1 }}{}}