Document ClassesUpper case in titles (and footnotes) with thesis class

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
davidec
Posts: 16
Joined: Thu Oct 22, 2009 6:18 pm

Upper case in titles (and footnotes) with thesis class

Post by davidec »

Hello, I am using (a variant of) the thesis document class. This class sets all chapter titles in upper case. The problem I am having is that, whenever I add a footnote to the title of a chapter, all the text in that footnote is in upper case as well. While I am fine with the title text being in upper case, I'd rather have the footnote text in normal case. Here's a MWE:

Code: Select all

\documentclass[11 pt]{thesis}
\usepackage{lipsum}

\begin{document}

\chapter[My first chapter]{My first chapter\footnote{This is joint work with Immanuel Kant}}

\lipsum[1-2]

\end{document}
As you can see, the text "This is joint work with Immanuel Kant" appears as "THIS IS JOINT WORK WITH IMMANUEL KANT". I have tried to look into the cls file to see how I can modify that, but I couldn't find out. The corresponding part in thesis.cls is -- I suppose -- the following:

Code: Select all

\def\@makechapterhead#1{%
  \vspace*{\beforechaptervspace}{%
  \ifx\@chapapp\@empty
     \if@center\centering
       \ifnum \c@secnumdepth >\m@ne
         {\c@font\thechapter.\ }
       \fi
       {\c@font
       \if@upper
          \uppercase{#1}
       \else
          #1
       \fi
       \par \nobreak}
     \else\raggedright
         \ifnum \c@secnumdepth >\m@ne
           \setbox\@tempboxa\hbox{\c@font\thechapter.\ %
           \c@font
           \if@upper
             \uppercase{#1}
           \else
              #1%
           \fi}
         \ifdim \wd\@tempboxa >\hsize
           \@hangfrom{%
             \c@font\thechapter.\ }{\c@font
           \if@upper
              \uppercase{#1}
           \else
              #1%
           \fi
           \par\nobreak}
         \else
           \hbox to\hsize{\box\@tempboxa\hfil}
         \fi
       \fi
     \fi
  \else
    \if@center
       \centering
     \else
       \raggedright
     \fi
     \ifnum \c@secnumdepth >\m@ne
       \if@mainmatter
          {\s@font \@chapapp{} \thechapter}
          \par \vskip 15\p@
       \fi
     \fi
     {\c@font
     \if@upper
        \uppercase{#1}
     \else
       #1%
     \fi
     \par \nobreak}
  \fi
  \vspace{\afterchaptervspace}
  \if@thema
    \ifx\@shortauthor\@empty
    \else
      \@mkboth{\@shortauthor}{#1}
    \fi
    \ifx\@chapterauthor\@empty
    \else
       \@makechapterauthor
    \fi
  \fi}
}
Of course, the alternative would be not using the option "upper", but as I wrote above, I like its appearance and am fine with the fact that the chapter titles themselves appear in upper case.

Or, even better, is there a way to solve this without intervening in the class file?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Upper case in titles (and footnotes) with thesis class

Post by frabjous »

Easiest thing would probably just to split up the \footnotemark and \footnotetext commands:

Code: Select all

\documentclass[11pt]{thesis}
\usepackage{lipsum}

\begin{document}

\chapter[My first chapter]{My first chapter\footnotemark}\footnotetext{This is a join work with Immanuel Kant.}

\lipsum[1-2]

\end{document}
Someone may have a more global solution, but I presume there are only so many chapters in your thesis where this is an issue. Kant is doing well for a dead philosopher, eh?
davidec
Posts: 16
Joined: Thu Oct 22, 2009 6:18 pm

Re: Upper case in titles (and footnotes) with thesis class

Post by davidec »

Thank you, frabjous! This is probably the easiest way to go, you're right. Thanks again!
Post Reply