diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls b/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls index eed974cf8bc..3ad6599cd72 100644 --- a/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls +++ b/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls @@ -1,6 +1,6 @@ % MSU Thesis Class % -% Copyright 2009,2010 by Alan Munn <amunn@msu.edu> +% Copyright 2009,2010,2011,2012 by Alan Munn <amunn@msu.edu> % % This is a class file for producing dissertations and theses according to the % Michigan State University Graduate School Guidelines (2010) @@ -26,7 +26,7 @@ % MSU-thesis-template.tex % A test file and test bibliography: % MSU-thesis-testfile.tex, MSU-thesis-testfile.bib -% It also contains a copy of the LSA Unified Style Sheet for lingusitics: +% It also contains a copy of the LSA Unified Style Sheet for linguistics: % unified.bst % % Version 1.0 2010/04/17 Initial release @@ -78,11 +78,14 @@ % TOC entries % Version 2.1 2011/09/04 Added code to make the class compatible with hyperref % This is experimental, and mainly useful for drafts. +% Version 2.1b 2012/05/18 Fixed bug with redefinition of \contentsname +% when babel is loaded. +% Version 2.1c 2012/05/18 Generalized babel bugfix to work with polyglossia % Use at your own risk! % Report bugs/problems/questions to <amunn@msu.edu> % \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{msu-thesis}[2011/08/24 Michigan State University Thesis Class version 2.1] +\ProvidesClass{msu-thesis}[2012/05/18 Michigan State University Thesis Class version 2.1b] \newif\ifmsu@lscape\msu@lscapefalse \DeclareOption{PhD}{\gdef\@degree{DOCTOR OF PHILOSOPHY}\gdef\@diss{DISSERTATION}} \DeclareOption{MA}{\gdef\@degree{MASTER OF ARTS}\gdef\@diss{THESIS}} @@ -142,9 +145,11 @@ \@ifpackageloaded{gb4e}{\input{gb4e-compat.tex}}{\relax} -% set up standard titles (Most not needed; just contents) - -\renewcommand*\contentsname{TABLE OF CONTENTS} +% set up contents title +% we use a private macro here to avoid problems with babel and +% polyglossia if they are loaded since they redefine the contents title +% +\newcommand*\MSU@contentsname{TABLE OF CONTENTS} %\renewcommand{\title}[1]{\gdef\@title{\MakeUppercase{#1}}} \addtoiargdef{\title}{% @@ -199,7 +204,7 @@ % set up TOC \maxtocdepth{subsubsection} \setsecnumdepth{subsubsection} -\renewcommand*{\printtoctitle}[1]{\centering\bfseries\contentsname} +\renewcommand*{\printtoctitle}[1]{\centering\bfseries\MSU@contentsname} \renewcommand*{\cftchaptername}{Chapter\space} \renewcommand*{\cftappendixname}{Appendix\space} \renewcommand*{\cftchapterdotsep}{\cftdotsep} @@ -298,11 +303,13 @@ \bfseries\MakeUppercase{\bibname} \end{center}} -% the following code allows hyperref to be used. It is not guaranteed to +% Do some stuff at begin document: check for hyperref +% The hyperref code allows hyperref to be used. It is not guaranteed to % work, and the thesis office presumably doesn't allow hyperlinks. % If the thesis office permits them, then I may try to support this more. % Thanks to Florent Chervet for the code. -\AtBeginDocument{\@ifpackageloaded{hyperref}% +\AtBeginDocument{% +\@ifpackageloaded{hyperref}% {\def\MakeLinkUppercase \hyper@linkstart #1#2#3\hyper@linkend {\hyper@linkstart {#1}{#2}{\MakeUppercase{#3}}\hyper@linkend } \pdfstringdefDisableCommands{\let\MakeUppercase \@firstofone } |