summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/msuthesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-12-17 23:02:10 +0000
committerKarl Berry <karl@freefriends.org>2010-12-17 23:02:10 +0000
commitdbf35b048ee6685fbdf772fa0186fef710cbc068 (patch)
tree880b98e682d021e8edc20934a850c82d5bfc5fe7 /Master/texmf-dist/tex/latex/msuthesis
parent834448bb75bb0ec4788336fb9895a9a1fcc34607 (diff)
msuthesis 1.7 (18dec10)
git-svn-id: svn://tug.org/texlive/trunk@20779 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/msuthesis')
-rw-r--r--Master/texmf-dist/tex/latex/msuthesis/msu-thesis.cls52
1 files changed, 36 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/msuthesis/msu-thesis.cls b/Master/texmf-dist/tex/latex/msuthesis/msu-thesis.cls
index 2751eeeb783..88fa7a04b04 100644
--- a/Master/texmf-dist/tex/latex/msuthesis/msu-thesis.cls
+++ b/Master/texmf-dist/tex/latex/msuthesis/msu-thesis.cls
@@ -3,7 +3,7 @@
% Copyright 2009,2010 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 (2009-2011)
+% Michigan State University Graduate School Guidelines (2010)
%
%
% This class may be distributed and/or modified under the
@@ -52,15 +52,22 @@
% Version 1.4b 2010/12/11 Fixed problems with Appendix formatting in the TOC
% Version 1.5 2010/12/12 Removed code to format the second abstract since this
% is no longer part of the document with electronic
-% submission. Removed \advisor command.
+% submission. Removed \advisor command and [final] option.
% Version 1.5b 2010/12/13 Fixed margins to new specifications; fixed page numbering
% issue when dedication was missing.
+% Version 1.6 2010/12/16 Bug fixes that introduced another bug. Never released.
+% Version 1.7 2010/12/16 Fixed page numbering problems with TOC; Fixed abstract
+% spacing problem; fixed LOF, LOT etc. spacing problem;
+% by adding command \maketableofcontents; removed
+% environment msuabstract and \makeabstract (no longer
+% needed) (still available for backwards compatibility).
+% Moved samples folder to the doc folder.
%
% Use at your own risk!
% Report bugs/problems/questions to <amunn@msu.edu>
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{msu-thesis}[2010/12/12 Michigan State University Thesis Class version 1.5]
+\ProvidesClass{msu-thesis}[2010/12/16 Michigan State University Thesis Class version 1.7]
\DeclareOption{PhD}{\gdef\@degree{DOCTOR OF PHILOSOPHY}\gdef\@diss{DISSERTATION}}
\DeclareOption{MA}{\gdef\@degree{MASTER OF ARTS}\gdef\@diss{THESIS}}
\DeclareOption{MS}{\gdef\@degree{MASTER OF SCIENCE}\gdef\@diss{THESIS}}
@@ -83,7 +90,8 @@
\RequirePackage{afterpage}[1995/10/27]
\RequirePackage{varioref}[2006/05/13]
\RequirePackage{etex}
-
+\RequirePackage{etoolbox}
+\tracingpatches
% set up page for MSU Thesis guidelines
\settypeblocksize{9in}{6.5in}{*}
\setlrmargins{1in}{*}{*}
@@ -123,8 +131,11 @@
\newcommand*{\degree}[1]{\gdef\@degree{\MakeUppercase{#1}}}
\newcommand*{\appendixcover}[1]{\gdef\@appendixcover{\MakeUppercase{#1}}}
-% make msuabstract environment into a command for reuse (not really needed now)
-\long\def\msuabstract#1\end{\gdef\@msuabstract{#1}\end}
+% msuabstract environment (not needed now) but included for backwards
+% compatibility
+%
+\newenvironment{msuabstract}{\ClassWarning{msu-thesis}{MSU Thesis: The msuabstract environment is deprecated. Please use the abstract environment}\begin{abstract}}{\end{abstract}}
+
\newcommand*{\@titleintro}{A } % this is the beginning to the title page phrase
@@ -164,7 +175,17 @@
\renewcommand*{\l@appendix}[2]{%
\l@chapapp{\MakeUppercase{#1}}{#2}{\cftappendixname}} % Format appendix names
\setlength{\cftchapternumwidth}{3em}
-
+%\setlength{\cftbeforechapterskip}{1.0em \@plus\p@}
+
+% MSU requires double spacing between entries in the list of tables, figures etc.
+% this command defines an \maketableofcontents command to change the list of
+% spacing after the ToC is formatted. Also ensures \tableofcontents* which
+% may save user errors
+\newcommand{\maketableofcontents}%
+{\tableofcontents*
+\setlength{\cftbeforechapterskip}{0.0em \@plus\p@}
+\setlength{\cftparskip}{1em}
+\renewcommand*{\insertchapterspace}{}}
% set up footnotes
\footmarkstyle{\normalsize\textsuperscript{#1}} % reset size so that mark is right size
@@ -176,20 +197,18 @@
\renewenvironment{abstract}{%
- \chapter*{\abstractname}
+ \chapter*{\abstractname}
+ \thispagestyle{empty}
\plainbreak{-1.5}
\begin{center}
\thetitle\plainbreak{1}by\plainbreak{1}\theauthor
\end{center}
\DoubleSpacing
- \thispagestyle{empty}}{}
+ }{\par}
+% \makeabstract command included for backwards compatibility
+\newcommand{\makeabstract}{\ClassWarning{msu-thesis}{MSU-Thesis: The \protect\makeabstract\space command is no longer needed.}}
-\newcommand{\makeabstract}{%
-\pagestyle{empty}\begin{abstract}
- \@msuabstract
-\end{abstract}
-}
% set up captions
\captionstyle[\centering]{\raggedright}
@@ -197,6 +216,7 @@
% make the titlepage
\newcommand{\maketitlepage}{%
+\pagestyle{empty}
\begin{titlingpage}
\maketitle
\end{titlingpage}
@@ -204,7 +224,7 @@
% make the copyright page
\newcommand*{\makecopyrightpage}{%
-\clearpage\thispagestyle{empty}
+\pagestyle{plain}\clearpage\thispagestyle{empty}
\vspace*{7in}
{\raggedleft Copyright by\\\theauthor\\\thedate\\}
\clearpage}
@@ -218,7 +238,7 @@
\end{center}}
\renewcommand{\mainmatter}{%
- \pagestyle{plain}\@ifstar{\@smemmain}{\@memmain}}
+ \DoubleSpacing\pagestyle{plain}\@ifstar{\@smemmain}{\@memmain}}
% make the appendices cover page