I'm trying to write my LaTex document. Up til now it was compiling fine. Now, after I add in \tableofcontents command, all pages after the Table of Contents are now in capital letters. I'm not sure if there is a command I've put in incorrectly that's messing it up or something. I've tried looking but couldn't find anything as to the problem.

My code is as follows:

\documentclass[BSc, applied]{usydthesis}    % use "amsart" instead of "article" for AMSLaTeX format
\usepackage{geometry}                       % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                          % ... or a4paper or a5paper or ... 
%\geometry{landscape}                       % Activate for for rotated page geometry
\usepackage[parfill]{parskip}           % Activate to begin paragraphs with an empty line rather than an indent
\graphicspath{ {images/} }
                % Use pdf, png, jpg, or eps§ with pdflatex; use eps in DVI mode

                                % TeX will automatically convert eps --> pdf in pdflatex        


\title{Modelling Predatory Trading}
%\date{}                            % Activate to display a given date or no date
\renewcommand{\Today}{October 2015}








\chapter{Chapter 1}


The class file is as follows (I ran into problems trying to just change this to an article class file), or the link to the source file is http://www.maths.usyd.edu.au/u/SMS/essay.tex

% LaTeX2e thesis style for Maths at the University of Sydney.
% It sets up a title page, loads up the amsbook class file and
% then redefines a number of things which I don't like in amsbook.

% Andrew Mathas May, 2002

  [2002/05/10 University of Sydney thesis class file - Andrew Mathas]

% options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\SMSsection{Pure Mathematics}
\DeclareOption{pure}{\def\SMSsection{Pure Mathematics}}
\DeclareOption{applied}{\def\SMSsection{Applied Mathematics}}



% degree types
\def\@thesistype{An essay}
\def\@degree{something cool}
\DeclareOption{BA}{\def\@thesistype{An essay}
\DeclareOption{BSc}{\def\@thesistype{An essay}
\DeclareOption{MA}{\def\@thesistype{A thesis}
                    \def\@degree{Master of Arts}
\DeclareOption{MSc}{\def\@thesistype{A thesis}
                    \def\@degree{Master of Science}
\DeclareOption{PhD}{\def\@thesistype{A thesis}
                    \def\@degree{Doctor of Philosophy}





% packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% for the University crest

% amsmath

% times fonts look better


% we now change a few things in the standard amsbook setup

% sections are numbered within the chapters

% chapters don't need to start on the left hand page
  \@afterindenttrue \secdef\@chapter\@schapter}

% section numbers in appendices shouldn't have a dot in them
  \c@chapter\z@ \c@section\z@
  \renewcommand\thesection       {\thechapter\arabic{section}}

 %%put dotfill in toc entries and make chapter entries bold 
  \ifnum #1>\c@tocdepth % then omit
    \par \addpenalty\@secpenalty\addvspace{#2}%
    \begingroup \hyphenpenalty\@M
      \@tempdima\csname r@tocindent\number#1\endcsname\relax
    \parindent\z@ \leftskip#3\relax \advance\leftskip\@tempdima\relax
    \rightskip\@pnumwidth plus4em \parfillskip-\@pnumwidth
    {#5\leavevmode\hskip-\@tempdima #6}\nobreak\relax
    \dotfill\hbox to\@pnumwidth{\@tocpagenum{#5{#7}}}\par
  \def\l@chapter{\@tocline{0}{8pt plus1pt}{0pt}{}{\bfseries}}

% chapter at top of chapters should be \sc rather than in capitals
\def\@makechapterhead#1{\global\topskip 7.5pc\relax
      \leavevmode \hskip-\leftskip
      \rlap{\vbox to\z@{\vss
          \vskip 3pc}}\hskip\leftskip\fi
     #1\par \endgroup
  \skip@34\p@ \advance\skip@-\normalbaselineskip
  \vskip\skip@ }

% the standard amsbook headings are not very good %%%%
  \@ifnotempty{#2}{\ignorespaces#1 #2\unskip\@ifnotempty{#3}{. }}%


% give an easy way to change the font used on theorem labels

% the AMSmath theorems are indented by \parindent which looks silly
  \let\thm@indent\noindent% no indent
  \thm@headfont{\SMStheoremfont}% heading font bold
  \thm@headpunct{.}% add period after heading
  \thm@headsep 5\p@ plus\p@ minus\p@\relax
  #1% style overrides
  \@topsep \thm@preskip               % used by thm head
  \@topsepadd \thm@postskip           % used by \@endparenv
    \def\@tempa{\@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]}%

% the AMSmath proofs are indented \parindent which looks silly
  \normalfont \topsep6\p@\@plus6\p@\relax
  \item[\hskip\labelsep\SMStheoremfont #1\@addpunct{.}]\ignorespaces


% date on title page of thesis
\def\Today{\ifcase\month\or January\or February\or March\or
  April\or May\or June\or July\or August\or September\or
  October\or November\or December\fi\space\number\year}

% thesis title page
  \begingroup \topskip\z@skip
    \LARGE\bfseries \centering
        \@thesistype\ submitted in partial fulfillment of\\
        the requirements for the degree of\\
      University of Sydney}\\

% insert page break after tableofconents

% control spacing in the bibliograph and fix up the toc entry
  \c@chapter\z@ \c@section\z@\let\chaptername\relax
  \def\newblock{\hskip .11em plus .33em minus .07em}

% global macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% a good macros for doing sets: e.g. $\set{x|x>0}$.
                                   \let|\midvert #1}\,\rbrace}}

% change the default labels for enumerate

  • Welcome! Can you reproduce the issue with a standard class? If so, please change your example to use it. If not, please provide a link to the class file.
    – cfr
    Oct 25 '15 at 3:26
  • Thank you for posting a working example! At the same time, much of your code does not seem to be relevant to the question you're asking here. Please limit the example to only the code required for your issue to appear. You can have a look at this guide for how to prune your code for this purpose.
    – jarauh
    Oct 25 '15 at 3:27
  • @cfr I have added the class file and link to class file (the only difference between what I have copied to the question and the link is that in my file I removed the university crest file)
    – EmmaJ
    Oct 25 '15 at 3:40
  • @EmmaJ No need to post the class file here, that is fine as a link. But I guess most of the packages you include (graphicx, mathrsfs etc.) are not really needed. In this respect, you can produce a smaller example. Try to remove as many packages as possible such that the problem still appears.
    – jarauh
    Oct 25 '15 at 3:44
  • 1
    You are going to have problems with this class. Whoever wrote it is... misguided. Don't use the times option. If you want Times, use the current recommendations for fonts and not the obsolete package. The class already loads some of the packages you list. Stuff is going to break if you are not very, very careful.
    – cfr
    Oct 25 '15 at 4:09

The problem is, apparently, caused by the use of parskip. Somehow this is incompatible with the class's definition of \contentsname. The class ought not define \contentsname as it does, but it ought not do all kinds of things.

Two quick fixes (may break other stuff)



  • I did the latter and it fixed it up, thanks so much
    – EmmaJ
    Oct 25 '15 at 4:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.