summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/msu-thesis/README6
-rw-r--r--Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.pdfbin205462 -> 223918 bytes
-rw-r--r--Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.tex105
-rw-r--r--Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.pdfbin28809 -> 28855 bytes
-rw-r--r--Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.tex22
-rw-r--r--Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.pdfbin79413 -> 76856 bytes
-rw-r--r--Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex61
-rw-r--r--Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls286
8 files changed, 300 insertions, 180 deletions
diff --git a/Master/texmf-dist/doc/latex/msu-thesis/README b/Master/texmf-dist/doc/latex/msu-thesis/README
index ef84912baa6..7c78f1a8f86 100644
--- a/Master/texmf-dist/doc/latex/msu-thesis/README
+++ b/Master/texmf-dist/doc/latex/msu-thesis/README
@@ -1,10 +1,10 @@
-MSU Thesis Class Version 2.5c 2015/07/11
+MSU Thesis Class Version 2.6 2016/05/09
-Copyright 2011,2012,2013,2014, 2015 by Alan Munn <amunn@msu.edu>
+Copyright 2011,2012,2013,2014,2015,2016 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 for Electronic
-Submission of Master's Theses and Dissertations (2014).
+Submission of Master's Theses and Dissertations (2015).
The class is based on the memoir document class, and thefore inherits
all of the functionality of that class.
diff --git a/Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.pdf b/Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.pdf
index 95c614840ea..87b30b25eb4 100644
--- a/Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.pdf
+++ b/Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.tex b/Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.tex
index b102b46ac87..4d9de2b4ade 100644
--- a/Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.tex
+++ b/Master/texmf-dist/doc/latex/msu-thesis/msu-thesis.tex
@@ -1,11 +1,14 @@
% !TEX TS-program = pdflatexmk
\documentclass[11pt]{article}
+
+\def\msuversion{2.6}
+\def\msudate{2016/05/09}
\title{\textbf{Using the MSU Thesis Class}}
\author{\textbf{Alan Munn}\\Department of Linguistics and Languages\\\texttt{\href{mailto:amunn@msu.edu}{amunn@msu.edu}}}
-\date{Version 2.5c\\July 11, 2015}
+\date{Version \msuversion\\\msudate}
\usepackage[T1]{fontenc}
-\usepackage[lmargin=1.25in,rmargin=1.25in,tmargin=1in,bmargin=1in]{geometry}
+\usepackage[lmargin=1in,rmargin=1in,tmargin=1in,bmargin=1in]{geometry}
\usepackage{titling}
\usepackage[utf8]{inputenc}
\usepackage{array, booktabs, multicol, fancyhdr, xspace,tabularx}
@@ -66,13 +69,13 @@
\thispagestyle{empty}
\renewcommand{\abstractname}{\sffamily Abstract}
-\abstract{\noindent\begin{quote} This is a class file for MSU theses and dissertations. It is based on the \pkg{memoir} class, and therefore supports all of the functionality of that class. It should generate a document which meets all the basic formatting requirements laid out by the \emph{Formatting Guide For Submission of Master’s Theses and Doctoral Dissertations} (2014) produced by the Graduate School, including requirements for margins, titlepage, page numbering, section titles, sub- and superscript sizes etc.\end{quote}}
+\abstract{\noindent\begin{quote} This is a class file for MSU theses and dissertations. It is based on the \pkg{memoir} class, and therefore supports all of the functionality of that class. It should generate a document which meets all the basic formatting requirements laid out by the \emph{Formatting Guide For Submission of Master’s Theses and Doctoral Dissertations} (October 2015) produced by the Graduate School, including requirements for margins, titlepage, page numbering, section titles, sub- and superscript sizes etc.\end{quote}}
\section{Introduction}
-Formatting a dissertation according to a University's thesis requirements is not always a simple task in \LaTeX, especially since the requirements are generally aimed at MSWord users. Furthermore, most of the work of formatting a document is supposed to be done by the documentclass itself, and not by the individual user. Fortunately, Michigan State University's thesis requirements are actually sane, and fairly straightforward. The present class file is designed to further make the process easier for \LaTeX\ users, by doing all the heavy lifting for you, so that you can focus on the content and not the formatting.
+Formatting a dissertation according to a University's thesis requirements is not always a simple task in \LaTeX, especially since the requirements are generally aimed at MSWord users. Furthermore, most of the work of formatting a document is supposed to be done by the document class itself, and not by the individual user. Fortunately, Michigan State University's thesis requirements are actually sane, and fairly straightforward. The present class file is designed to further make the process easier for \LaTeX\ users, by doing all the heavy lifting for you, so that you can focus on the content and not the formatting.
\section{Background}
The MSU Thesis Class is based on the \pkg{memoir} document class. The \pkg{memoir} class is an extensive class that incorporates the functionality of many other packages into it. The class is extensively documented, and the documentation (\pkg{memman.pdf}) should be available with any \TeX\ distribution. I strongly recommend that you familiarize yourself with \pkg{memoir} as you use the present class.
\section{Package Options}
-In addition to any options passed to the \pkg{memoir} class (e.g. |oldfontcommands|; see Section \ref{sec:fonts}), the \pkg{msu-thesis} takes three options: one to specify the type of degree, (see Table~\ref{degrees}), one to enable landscape page numbering and one to make the Table of Contents prettier, but possibly non-compliant with the Formatting Guide. If no degree option is specified, a Ph.D. dissertation is assumed.
+In addition to any options passed to the \pkg{memoir} class (e.g. |oldfontcommands|; see Section \ref{sec:fonts}), the \pkg{msu-thesis} takes three options: one to specify the type of degree, (see Table~\ref{degrees}), one to enable landscape page numbering and one to make small adjustments to Table of Contents. If no degree option is specified, a Ph.D. dissertation is assumed.
\begin{table}
\centering
\begin{tabularx}{.8\textwidth}{>{\ttfamily}lX}
@@ -100,21 +103,16 @@ In addition to any options passed to the \pkg{memoir} class (e.g. |oldfontcomman
The Formatting Guide requires that any lansdscape pages be numbered in landscape mode (i.e. along the long edge of the page) rather than in portrait mode, and rotated in the final PDF. The |[lscape]| option enables this. The option loads both the \pkg{pdflscape} package and \pkg{tikz}, and is implemented as a class option so that you are not required to load those packages if they are not needed.
\subsection{The contents options}
In 2013 I received reports that the thesis office now requires all elements in the Table of Contents to have the same formatting as they are in the main document, which means that all section, subsection, and subsubsection headings need to be bold. Since this looks very ugly, I have created two options to turn it off, the |[plaintoc]| option (which makes all TOC entries plain) and |[mixedtoc]| option (which makes Chapters bold and other elements plain). I suspect that the thesis office checkers don't notice this all the time so if you want to have a prettier table of contents and are willing to have that format be corrected, you can use these options to turn off the MSWord inspired ugliness of an entirely bold Table of Contents. I've made |[plaintoc]| the default. If you are forced by the thesis office to have an entirely bold TOC, use the |[boldtoc]| option.
+
\section{User commands}
-In addition to all the user functionality defined by \pkg{memoir}, the \pkg{msu-thesis} class defines six new titling commands, and a command to signal that the document has multiple appendices.
+In addition to all the user functionality defined by \pkg{memoir}, the \pkg{msu-thesis} class defines five new titling commands.
\begin{quote}
\begin{description}
\item[\texttt{\bs fieldofstudy\{\}}] Takes one argument corresponding to your field of study.
\item[\texttt{\bs dedication\{\}}] Takes one argument (should be short), your dedication.
\item[\texttt{\bs makecopyrightpage}] Creates the copyright page.
\item[\texttt{\bs makededicationpage}] Creates the dedication page.
-% deprecated commands from < v1.7
-%\item[\texttt{\bs maketableofcontents}] Creates the table of contents
-%\item[\texttt{\bs begin\{msuabstract\}\ldots \bs end\{msuabstract\}}] Environment containing the text of the thesis abstract.
-%\item[\texttt{\bs makeabstract}] Generates the abstract.
-\item[\texttt{\bs appendix}] Tells the class that you have one appendix.
-\item[\texttt{\bs appendices}] Tells the class that you have more than one appendix.
-\item[\texttt{\bs makebibliographycover}] Creates the bibliography cover page.
+\item[\texttt{\bs makebibliographypage}] Creates the bibliography cover page.
\end{description}
\end{quote}
\section{Using the class}
@@ -159,14 +157,41 @@ The basic outline of a dissertation or thesis document is shown in Table~\ref{st
The class itself sets up the margins, page numbering, and formatting of all of the required pieces. It doesn't put everything in the right order, so you are responsible for that. The best way to do this is to use the included sample \LaTeX\ file as a basic template for your thesis.
\subsection{Line Spacing}
The \pkg{memoir} class provides commands for single and double spacing (|\SingleSpacing| and |\DoubleSpacing|) most of your thesis will be double spaced, but certain parts (such as the table of contents, lists of figures/tales, bibliography) may be single spaced. This duplicates the functionality of the \pkg{setspace} package, which therefore should not be used.
+
+Please note that although bibliography entries must be single spaced, there must be a space between each entry. This parameter is set by your bibliography package. If you are using |natbib| it is |\bibsep| and if you are using |biblatex| it is |\bibitemsep|.
\subsection{Font changing commands}\label{sec:fonts}
\sloppy The \pkg{memoir} class enforces the so-called ``new'' font changing commands (although they have now been in use for many years.) This means that it does not allow you to use the commands |\bf|, |\it|, |\rm|, etc. Unfortunately there are some old packages that still use these commands, and there is also some outdated information on the web that might have examples using these commands. You should generally not use these commands (see \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=2letterfontcmd}{Two Letter Font Commands}); if you do encounter problems, you can pass the option |oldfontcommands| to the class.
\subsection{Extra Packages}
The \pkg{memoir} class replicates the functionality of many independent packages, so if you are transferring \LaTeX\ source from other documents using the \pkg{article} class, you may encounter some warnings or errors. The \pkg{memoir} documentation has substantial information about the packages it emulates, and the packages for which it provides equivalent functionality. See Chap. 18 Sec. 24 of the \pkg{memoir} manual for details. Quoting from the manual:
-\begin{quote} \pkg{memoir} emulates the following packages: {\sffamily abstract, appendix, array, booktabs, ccaption, chngcntr, crop, dcolumn, delarray, enumerate, epigraph, ifmtarg, ifpdf, index, makeidx, moreverb, needspace, newfile, nextpage, pagenote, patchcmd, parskip, setspace, shortvrb, showidx, tabularx, titleref, tocbibind, tocloft, verbatim}, and {\sffamily verse}. It also provides functions equivalent to those in the following packages, although the class does not prevent you from using them: {\sffamily fancyhdr, framed, geometry, sidecap, subfigure}, and \sffamily{titlesec}.\\\hfill{\normalfont\emph{The Memoir Class} 8th Ed. 2010, p.345}
+\begin{quote} \pkg{memoir} emulates the following packages: {\sffamily abstract, appendix, array, booktabs, ccaption, chngcntr, crop, dcolumn, delarray, enumerate, epigraph, ifmtarg, ifpdf, index, makeidx, moreverb, needspace, newfile, nextpage, pagenote, patchcmd, parskip, setspace, shortvrb, showidx, tabularx, titleref, tocbibind, tocloft, verbatim}, and {\sffamily verse}. It also provides functions equivalent to those in the following packages, although the class does not prevent you from using them: {\sffamily fancyhdr, framed, geometry, sidecap, subfigure}, and \sffamily{titlesec}.\\\hfill{\normalfont\emph{The Memoir Class} 8th Ed. 2010, p.339}
+\end{quote}
+\subsection{Captions}
+\subsubsection{Caption delimiter}
+Because the thesis office doesn't understand anything about punctuation it requires the colon that would appear in a caption to also appear in the contents lists. Since they don't care about the colon itself, but just consistency I've removed colons from the captions entirely, since leaving it in makes the contents lists look really stupid. But in case you or your advisor want the colon in captions, you can add the colon back in by using the Memoir command |\captiondelim{:\space}| and the class will make sure the Lists of Tables and Figures match in formatting.
+\subsubsection{New lists}
+If you are using other kinds of floats such as listings, you should use the Memoir |\newlistof| command to make the relevant list. The class provides a macro |\msucaptiondelim| which can be used to make sure the formatting of the captions in the list-of-X match the setting you have for Figures and Tables. Here is an example of how you would add a listings list. The following code goes in your preamble:
+\begin{quote}
+\begin{lstlisting}
+\newlistof{listoflistings}{lol}{List of Listings}
+\newfloat[chapter]{listing}{lol}{Listing}
+\newlistentry{listing}{lol}{0}
+\renewcommand*{\cftlistingname}{Listing\space}
+\renewcommand*{\cftlistingaftersnum}{\msucaptiondelim}
+\end{lstlisting}
+\end{quote}
+
+Then in your front matter you include a |\listoflistings| in the same way you would add the |\listoffigures| or |\listoftables| (preceded by a |\clearpage|). In your actual document you would use. (Note that this code doesn't actually format a listing as code; you would further embed your favourite code listing environment inside this environment.)
+
+\begin{quote}
+\begin{lstlisting}
+\begin{listing}
+Your listing code here
+\end{listing}
+\end{lstlisting}
\end{quote}
+
\subsection{Landscape figures and tables}
-If you have large figures and tables that must be rotated, you should use the |[lscape]| option. This enables a pagestyle |lscape| and places the page numbers correctly on the long edge of the page. The option loads the \pkg{pdflscape} package which provides a |landscape| environment to place the landscape figure in. Before the landscape environment, you need to issue a |\clearpage| command and change the pagestyle to |lscape|, and afterwards, change it back to |plain|. Schematically, then, any landscape pages should be created in the following way.
+If you have large figures and tables that must be rotated, you should use the |[lscape]| class option. This enables a pagestyle |lscape| and places the page numbers correctly on the long edge of the page. The option loads the \pkg{pdflscape} package which provides a |landscape| environment to place the landscape figure in. Before the landscape environment, you need to issue a |\clearpage| command and change the pagestyle to |lscape|, and afterwards, change it back to |plain|. Schematically, then, any landscape pages should be created in the following way.
\begin{quote}
\begin{lstlisting}
@@ -180,6 +205,46 @@ If you have large figures and tables that must be rotated, you should use the |[
\end{quote}
The |landscape| environment makes all pages within it landscape, so if you have multiple landscape figures in a row, you can put all of them inside a single |landscape| environment. This option correctly rotates the landscape pages within the pdf document itself, which the thesis office seems to require.
+\subsection{Appendices}
+Appendices in a thesis are usually at the end of the document, but before the bibliography. MSU requires appendices to be preceded by a cover page which says either ``Appendix'' (if there is only one) or ``Appendices'' if there is more than one. Memoir deals with multiple appendices by using an |appendices| environment.
+\subsubsection{Single appendix}
+If you have a single appendix, your code should look like this:
+
+\begin{quote}
+\begin{lstlisting}
+\appendix
+\chapter{Your appendix title}
+Appendix text goes here
+\end{lstlisting}
+\end{quote}
+
+\subsubsection{Multiple appendices}
+If you have more than one appendix, your code should look like this:
+
+\begin{quote}
+\begin{lstlisting}
+\begin{appendices}
+\chapter{Your first appendix title}
+Appendix text goes here
+\chapter{Your second appendix title}
+Appendix text goes here
+\end{appendices}
+\end{lstlisting}
+\end{quote}
+
+\subsubsection{Appendices per chapter}
+If you need to add an appendix or appendices to a chapter, you should use the |subappendices| environment and use |\section| for each appendix. So your code should look like this:
+
+\begin{quote}
+\begin{lstlisting}
+\begin{subappendices}
+\section{Your first appendix title}
+Appendix text goes here
+\section{Your second appendix title}
+Appendix text goes here
+\end{subappendices}
+\end{lstlisting}
+\end{quote}
\subsection{Customizing the look of things}
@@ -194,12 +259,12 @@ I have created a basic looking style for Chapter headings based on the |thatcher
Despite there being no explicit formatting requirements for Chapter headings (other than that they start 1 in from the top of the page), the thesis office has been known to dislike many things, so if you do decide to change things, be prepared for rejection or a frustrating fight.
\subsection{Things to watch out for}
\begin{itemize}[label={\textbullet}]
-\item If you are having problems with the Thesis office about non-conforming formatting, please check first whether you have a local copy of the class instead of the latest version distributed via CTAN.
+\item If you are having problems with the Thesis office about non-conforming formatting, please check first whether you have a local copy of the class instead of the latest version distributed via CTAN. The log file will reflect the date of the current version number. Remember if you are using the most current and updated TeXLive or MikTeX you will automatically have the latest version already and you should not need to install a local version.
\item If your title is long and you want to put a newline (|\\|) into it to improve the spacing, you must precede the newline with |\protect|.
\item Make sure you pay attention to any ``Overfull hbox'' warnings when you are producing your final copy. You should make sure you eliminate all of them or else the thesis office is likely to reject your thesis. One common way to eliminate such warnings is to place the command |\sloppy| at the beginning of the paragraph that triggers the warning. You should only use this technique at the very end when you are completely done with everything. Alternatively, rewording the text may also fix things.
\item Remember to use the |\tableofcontents*| command so that your table of contents is not listed in the table of contents.
-\item Remember to use the command |\appendices| instead of |\appendix| if you have more than one appendix.
-\item Remember to add the |\makebibliographycover| command before your bibliography.
+\item Remember to use the |appendices| environment instead of |\appendix| if you have more than one appendix.
+\item Remember to add the |\makebibliographypage| command before your bibliography.
\end{itemize}
\section{Bugs and redistribution}
@@ -208,9 +273,9 @@ The latest copy of \pkg{msu-thesis} will always be available on \href{http://tu
\subsection{Archiving your thesis for the future}
Since the current version of the \pkg{msu-thesis} class satisfies the Graduate School requirements at any one time, as these requirements change, you may find that if you need to recompile your thesis after you have graduated that the formatting changes. To avoid this, I would recommend saving an archived version of the \pkg{msu-thesis.cls} file in the same folder as your thesis file. You only need to do this once you have completely finished your thesis however; there's no need to do it during the writing process.
\subsection{Version history}
-Previous versions of \pkg{msu-thesis} (versions 1.0--1.4b) were created for non-electronic submission and should not be used. Versions 1.5--1.6 (the first electronic submission versions) contained a |\makeabstract| command and a separate |msuabstract| environment. These have been removed as of version 1.7. Users who are upgrading from earlier versions to version 1.7 do not need to change these commands however but their use will trigger a warning.) Version 2.0 implemented landscape pages; version 2.1 added support for \pkg{hyperref}. Versions 2.2--2.5 mainly accommodated to the ever changing whims of the MSU Graduate School.
+Previous versions of \pkg{msu-thesis} (versions 1.0--1.4b) were created for non-electronic submission and should not be used. Versions 1.5--1.6 (the first electronic submission versions) contained a |\makeabstract| command and a separate |msuabstract| environment. These have been removed as of version 1.7. Users who are upgrading from earlier versions to version 1.7 do not need to change these commands however but their use will trigger a warning.) Version 2.0 implemented landscape pages; version 2.1 added support for \pkg{hyperref}. Versions 2.2--2.5 mainly accommodated to the ever changing whims of the MSU Graduate School. Version 2.6 fixed some appendix bugs introduced by the previous whim accommodation.
\section{Acknowledgements}
-Thanks to Lars Madsen, Ulrike Fischer and Peter Wilson for help with setting up parts of the memoir code for versions 1.0-1.4 (now eliminated due to changed requirements). Thanks to Wolfgang Sternefeld for supplying the \pkg{linguex} spacing fix code, Leo Liu for the landscape page numbering code, which greatly simplified my original version, and Florent Chervet for the hyperref code. Thanks also to the following students who have reported problems over the years: Matt Husband, Irina Agafonova, Dmitriy Bryndin, Greg Christian, Changkuk Jung, Yisu Zhou, Neil ver Planck, Michael Wojcik and Kyle Crayne.
+Thanks to Lars Madsen, Ulrike Fischer and Peter Wilson for help with setting up parts of the memoir code for versions 1.0-1.4 (now eliminated due to changed requirements). Thanks to Wolfgang Sternefeld for supplying the \pkg{linguex} spacing fix code, Leo Liu for the landscape page numbering code, which greatly simplified my original version, and Florent Chervet for the hyperref code. Thanks also to the following students who have reported problems over the years: Matt Husband, Irina Agafonova, Dmitriy Bryndin, Greg Christian, Changkuk Jung, Yisu Zhou, Neil ver Planck, Michael Wojcik, Kyle Crayne, Adam Soliman and Adam Liter.
\appendix
\renewcommand{\thesection}{Appendix \Alph{section}}
diff --git a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.pdf b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.pdf
index a83cd3722be..0240cc97fd4 100644
--- a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.pdf
+++ b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.tex b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.tex
index e9bbaf44011..7f020f9745d 100644
--- a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.tex
+++ b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-template.tex
@@ -45,7 +45,7 @@
\title{The syntax and semantics of phonology}
\author{Joe Linguist}
\fieldofstudy{Linguistics} % This should be in sentence case
-\date{2014}
+\date{2016}
% If you want a dedication page, specify the text of the dedication here and uncomment the next command.
%
@@ -90,6 +90,7 @@ Your acknowledgements here.
\listoffigures % comment this out if you have no figures
%
% If you have a list of abbreviations/symbols it would go here preceded by a \clearpage
+% See the class documentation and the Memoir manual for how to create other lists
%
\mainmatter
%
@@ -112,24 +113,31 @@ Your acknowledgements here.
%
% If you have appendices, they would go here.
% Comment these lines out if you don't
-% If you have more than one appendix, uncomment the next line and comment out the \appendix line
+% If you have more than one appendix, you need to use
+% \begin{appendices}
+% \chapter{First appendix}
+% \chapter{Second appendix}
+% \end{appendices}
%
-%\appendices
\appendix
-\chapter{Your first appendix}
+\chapter{Your appendix}
%
\backmatter
% The next lines add the dots back into the References/Bibliography heading
-% of the TOC. Only uncomment this if you need to put the dots back in having
-% removed them for Chapter headings.
+% of the TOC. Only uncomment this if you need to put the dots back in having removed them for Chapter headings.
%
%\addtocontents{toc}{%
% \protect\renewcommand{\protect\cftchapterdotsep} {\cftdotsep}}
%
-\makebibliographycover % make the bibliography cover page
+\makebibliographypage % make the bibliography cover page
% Bibliography can be single spaced
%
\SingleSpacing
+%
% Your bibliography command here (e.g. \bibliography{your-bib-file}) if using natbib
+%
+% Remember that although the bibliography is single spaced, there needs to
+% be a blank line between entries. This is set by your bibliography package
+% If you are using natbib it is \bibsep; if using biblatex it's \bibitemsep
\end{document}
diff --git a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.pdf b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.pdf
index b3e42329d52..194f8b008af 100644
--- a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.pdf
+++ b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex
index 5f871fdde4d..254e51e977b 100644
--- a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex
+++ b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex
@@ -1,7 +1,8 @@
+% !TEX TS-program = pdflatexmk
% !BIB TS-program = bibtex
\listfiles
-\documentclass[lscape,plaintoc]{msu-thesis}
+\documentclass[lscape]{msu-thesis}
% lscape option is needed for this sample file to show correct placement
% of page numbers on landscape pages. If you don't have any landscape pages
% in your document, you don't need to load this option.
@@ -13,30 +14,35 @@
\author{Joe Linguist}
\fieldofstudy{Linguistics}
\dedication{This thesis is dedicated to someone.}
-\date{2014}
-
+\date{2016}
+\usepackage{listings}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage{gb4e}
-%\usepackage{cgloss}
\usepackage{natbib}
-\usepackage{hyperref} % not needed but here for testing
-%\setlength{\beforechapskip}{-5pt}
-
+\usepackage[bookmarksopenlevel=2,bookmarks=true]{hyperref} % not needed but here for testing
-
\counterwithin{exx}{chapter}
\bibliographystyle{unified}
\singlegloss
+
% Uncomment the next line for single spaced examples with gb4e
%\patchcommand{\exe}{\SingleSpacing}{}
+% This code is an example of how to set up a new list of
+\newlistof{listoflistings}{lol}{List of Listings}
+\newfloat[chapter]{listing}{lol}{Listing}
+\newlistentry{listing}{lol}{0}
+\renewcommand*{\cftlistingname}{Listing\space}
+\renewcommand*{\cftlistingaftersnum}{\msucaptiondelim}
+%\captiondelim{:\space}
+
\begin{document}
\frontmatter
\maketitlepage
\begin{abstract}
-\lipsum
+\lipsum[1-6]
\end{abstract}
\clearpage
\makecopyrightpage
@@ -52,6 +58,8 @@
\listoftables
\clearpage
\listoffigures
+\clearpage
+\listoflistings
\mainmatter
% The next command changes chapters in the TOC to have no dotted leader
%\addtocontents{toc}{\protect\renewcommand{\protect\cftchapterdotsep}{\cftnodots}}
@@ -152,9 +160,21 @@ Men & Women & Monsters\\
\end{tabular}
\caption{Another sample table.}
\end{table}
+\begin{listing}
+\begin{lstlisting}
+This is a listing
+\end{lstlisting}
+\caption{A listing caption}
+\end{listing}
+\begin{listing}
+\begin{lstlisting}
+This is another listing
+\end{lstlisting}
+\caption{Another listing caption}
+\end{listing}
\lipsum[8]
-% Now sample page in landscape (need to use [lscape] option for this)
-% First clear the page. Then make the page style {lscape}
+ Now sample page in landscape (need to use [lscape] option for this)
+ First clear the page. Then make the page style {lscape}
\clearpage\pagestyle{lscape}
% Enclose landscape pages in the {landscape} environment. Every page within
% this environment will be landscape. There is no need to enclose each individual
@@ -190,20 +210,23 @@ A & B & C & D & E & F & G \\
\caption{Some random data that takes up too much room.}
\end{table}
\end{landscape}
-% at the end of the {landscape} environment, make the page style {plain}
+%% at the end of the {landscape} environment, make the page style {plain}
\pagestyle{plain}
%
-\appendices % use this if you have more than one appendix
-%\appendix % use this if you have only one appendix
-
+%\begin{appendices} ... \end{appendices}
+% use this if you have more than one appendix
+\clearpage
+\appendix % use this if you have only one appendix
+%\begin{appendices}
\chapter{An appendix}
\section{An appendix section}
\lipsum[9-15]
-\chapter{An second appendix}
-\section{An appendix section}
-\lipsum[16-17]
+%\chapter{An second appendix}
+%\section{An appendix section}
+%\lipsum[16-17]
+%\end{appendices}
\backmatter
% The next command forces the Bibliography to have a dotted leader
% (May not be required)
@@ -211,7 +234,7 @@ A & B & C & D & E & F & G \\
\protect\renewcommand{\protect\cftchapterdotsep}{\cftdotsep}}
\SingleSpacing
% This command creates the cover page for the bibliography
-\makebibliographycover
+\makebibliographypage
\bibliography{MSU-thesis-testfile}
\end{document}
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 adf87ee590e..08c43df2019 100644
--- a/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls
+++ b/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls
@@ -1,9 +1,9 @@
% MSU Thesis Class
%
-% Copyright 2009,2010,2011,2012,2013 by Alan Munn <amunn@msu.edu>
+% Copyright 2009,2010,2011,2012,2013, 2014, 2015, 2016 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 (2012)
+% Michigan State University Graduate School Guidelines
%
%
% This class may be distributed and/or modified under the
@@ -111,32 +111,38 @@
% Version 2.5b 2015/04/20 Changed spacing between top of page and titles by .06” to appease the
% the Grad School who measure to the tops of letters instead of to baselines.
% Version 2.5c 2015/07/11 Made loading etex conditional due to changes in LaTeX kernel for 2015.
-% Removed gb4e compatability code (code remains in the distributed files)
-%
+% Removed gb4e compatibility code (code remains in the distributed files)
+% Version 2.6 2016/05/09 Completely revised the stupid appendix/appendices and bibliography cover page % code using memoir internals instead of hacks.
+% This should fix numbering issues in the TOC w.r.t the cover pages and
+% also fix bookmarks in the PDF when hyperref is loaded.
+% Made default caption delimiter a space so that captions in LOT/LOF look better
+% Removed old commented out code and older backwards compatibility code.
+%
% Use at your own risk!
% Report bugs/problems/questions to <amunn@msu.edu>
%
-\def\msu@version{2.5c}
-\def\msu@date{2015/07/11}
+\def\msu@version{2.6}
+\def\msu@date{2016/05/09}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{msu-thesis}[\msu@date\space Michigan State University Thesis Class version \msu@version]
\newif\ifmsu@lscape\msu@lscapefalse
\newif\ifmsu@stupidtoc\msu@stupidtocfalse
\newif\ifmsu@mixedtoc\msu@mixedtocfalse
\newif\ifmsu@plaintoc\msu@plaintoctrue % make this the default to see what the reaction is
+\newif\ifmsu@colonintoc\msu@colonintocfalse
\newif\ifmsu@hyperloaded\msu@hyperloadedfalse
-\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}}
-%\DeclareOption{MAT}{\gdef\@degree{Master of Arts for Teachers}\gdef\@diss{THESIS}}
-\DeclareOption{MBA}{\gdef\@degree{Master of Business Administration}\gdef\@diss{THESIS}}
-\DeclareOption{MFA}{\gdef\@degree{Master of Fine Arts}\gdef\@diss{THESIS}}
-\DeclareOption{MIPS}{\gdef\@degree{Master of International Planning Studies}\gdef\@diss{THESIS}}
-\DeclareOption{MHRL}{\gdef\@degree{Master of Human Resources and Labor Relations}\gdef\@diss{THESIS}}\DeclareOption{MMus}{\gdef\@degree{Master of Music}\gdef\@diss{THESIS}}
-%\DeclareOption{MSN}{\gdef\@degree{Master of Science in Nursing}\gdef\@diss{THESIS}}
-\DeclareOption{MPP}{\gdef\@degree{Master of Public Policy}\gdef\@diss{THESIS}}
-\DeclareOption{MSW}{\gdef\@degree{Master of Social Work}\gdef\@diss{THESIS}}
-\DeclareOption{MURP}{\gdef\@degree{Master in Urban and Regional Planning}\gdef\@diss{THESIS}}
+\DeclareOption{PhD}{\gdef\msu@degree{Doctor of Philosophy}\gdef\msu@diss{DISSERTATION}}
+\DeclareOption{MA}{\gdef\msu@degree{Master of Arts}\gdef\msu@diss{THESIS}}
+\DeclareOption{MS}{\gdef\msu@degree{Master of Science}\gdef\msu@diss{THESIS}}
+%\DeclareOption{MAT}{\gdef\msu@degree{Master of Arts for Teachers}\gdef\msu@diss{THESIS}}
+\DeclareOption{MBA}{\gdef\msu@degree{Master of Business Administration}\gdef\msu@diss{THESIS}}
+\DeclareOption{MFA}{\gdef\msu@degree{Master of Fine Arts}\gdef\msu@diss{THESIS}}
+\DeclareOption{MIPS}{\gdef\msu@degree{Master of International Planning Studies}\gdef\msu@diss{THESIS}}
+\DeclareOption{MHRL}{\gdef\msu@degree{Master of Human Resources and Labor Relations}\gdef\msu@diss{THESIS}}\DeclareOption{MMus}{\gdef\msu@degree{Master of Music}\gdef\msu@diss{THESIS}}
+%\DeclareOption{MSN}{\gdef\msu@degree{Master of Science in Nursing}\gdef\msu@diss{THESIS}}
+\DeclareOption{MPP}{\gdef\msu@degree{Master of Public Policy}\gdef\msu@diss{THESIS}}
+\DeclareOption{MSW}{\gdef\msu@degree{Master of Social Work}\gdef\msu@diss{THESIS}}
+\DeclareOption{MURP}{\gdef\msu@degree{Master in Urban and Regional Planning}\gdef\msu@diss{THESIS}}
\DeclareOption{lscape}{%
\msu@lscapetrue
\AtEndDocument{\ClassWarningNoLine{msu-thesis}{You have chosen the [lscape] option. You may need to run latex twice to get landscape page numbering to display correctly}}}
@@ -144,11 +150,12 @@
\DeclareOption{plaintoc}{\msu@plaintoctrue\msu@stupidtocfalse\msu@mixedtocfalse}
\DeclareOption{mixedtoc}{\msu@mixedtoctrue\msu@stupidtocfalse\msu@plaintocfalse}
\ExecuteOptions{PhD}
-\DeclareOption*{%
-\PassOptionsToClass{\CurrentOption}{memoir}%
+\DeclareOption*{
+\PassOptionsToClass{\CurrentOption}{memoir}
}
\ProcessOptions
\LoadClass[12pt,oneside,letterpaper]{memoir}[2008/05/27]
+% Check for older versions of the latex kernel
\ifx\e@alloc\@undefined
\RequirePackage{etex}
\fi
@@ -173,56 +180,29 @@
\setlrmargins{1in}{*}{*}
\setulmargins{1in}{*}{*}
\setheadfoot{\baselineskip}{.5in}
-\AtBeginDocument{%
-\topskip=0pt % setting this because the Grad School doesn’t know how to measure
-\checkandfixthelayout
-% set up subscript sizes so that 10 pt is the smallest
-% (MSU Requirement)
-\DeclareMathSizes{12}{12}{10}{10}
-\DeclareMathSizes{10.95}{10.95}{10}{10}
-\DeclareMathSizes{10}{10}{10}{10}
-}%
-
-% This stuff is modifications of gb4e for linguistics
-%\@ifpackageloaded{gb4e}{\input{gb4e-compat.tex}}{\relax}
-% Removed as of version 2.5c. This fix has been part of gb4e for a long time
-
-
% 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}
-
-\newif\ifappendices\appendicesfalse
-\newcommand*{\@appendixcover}{\ifappendices{APPENDICES}\else{APPENDIX}\fi}
-\newcommand*{\fieldofstudy}[1]{\gdef\@fieldofstudy{#1}} % removed \MakeUppercase 6/5/12
-\newcommand{\dedication}[1]{\gdef\@dedication{#1}}
-\newcommand*{\degree}[1]{\gdef\@degree{\MakeUppercase{#1}}}
-
-% 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
+\newcommand*{\fieldofstudy}[1]{\gdef\msu@fieldofstudy{#1}} % removed \MakeUppercase 6/5/12
+\newcommand{\dedication}[1]{\gdef\msu@dedication{#1}}
+\newcommand*{\msu@titleintro}{A~} % this is the beginning to the title page phrase
\newcommand*{\msu@fieldseparator}{\textendash} % this is between the degree name and field of study
-
-
% make title 2in from top of page
% This value is crazy because the grad school doesn’t know how to measure
\setlength{\droptitle}{.425in}
% set up the title page
-% Because the title is sent to \MakeUppercase we need to \protect line
+% Because the title is set to \MakeUppercase we need to \protect line
% breaks within the title. This has now been documented in the user docs.
\pretitle{\begin{center}\MakeUppercase}
\posttitle{\\[\baselineskip]\end{center}}
\preauthor{\begin{center}By\\[\baselineskip]}
\postauthor{\end{center}}
-\predate{\vfill\begin{center}\@titleintro\@diss\\[\baselineskip]Submitted\\to Michigan State University\\in partial fulfillment of the requirements\\for the degree of\\[\baselineskip]\@fieldofstudy~\msu@fieldseparator~\@degree\\[\baselineskip]}
+\predate{\vfill\begin{center}\msu@titleintro\msu@diss\\[\baselineskip]Submitted\\to Michigan State University\\in partial fulfillment of the requirements\\for the degree of\\[\baselineskip]\msu@fieldofstudy~\msu@fieldseparator~\msu@degree\\[\baselineskip]}
% set up the chapter titles
\chapterstyle{thatcher}
@@ -235,6 +215,12 @@
\renewcommand*{\afterchapternum}{}
\renewcommand*{\printchaptername}{%
\centerline{\chapnumfont{\MakeUppercase\@chapapp\ \thechapter}}}
+\renewcommand{\partnamefont}{\centering\bfseries}
+\renewcommand{\partnumfont}{\bfseries}
+\renewcommand{\parttitlefont}{\SingleSpacing\bfseries}
+\renewcommand{\printpartname}{\partnamefont{\MakeUppercase{\partname}}}
+\renewcommand{\printparttitle}[1]{\parttitlefont \MakeUppercase#1}
+
% set up the section styles
\setsecheadstyle{\normalfont\SingleSpacing\large\bfseries}
@@ -242,12 +228,15 @@
\setsubsubsecheadstyle{\normalfont\SingleSpacing\bfseries}
% set up TOC
+
\maxtocdepth{subsubsection}
\setsecnumdepth{subsubsection}
\renewcommand*{\printtoctitle}[1]{\centering\bfseries\msu@contentsname}
\renewcommand*{\cftchaptername}{Chapter\space}
\renewcommand*{\cftappendixname}{Appendix\space}
\renewcommand*{\cftchapterdotsep}{\cftdotsep}
+\renewcommand*{\cftfigureaftersnum}{\@contdelim} % This uses the same delimiter as in the captions
+\renewcommand*{\cfttableaftersnum}{\@contdelim} % per thesis office punctuation idiocy
\renewcommand*{\cftfigurename}{Figure\space}
\renewcommand*{\cfttablename}{Table\space}
@@ -259,14 +248,36 @@
\ifmsu@plaintoc
\def\msu@tocfont{\normalfont}
\def\msu@chapfont{\normalfont}
-
\fi
\ifmsu@mixedtoc
\def\msu@tocfont{\normalfont}
\def\msu@chapfont{\bfseries}
-
\fi
+%
+% This code from http://tex.stackexchange.com/q/232121/
+% Makes appendices formatted as sections not chapters in the TOC
+% This is due to MSU idiocy, and also will make the appendix name
+% upper case (because of MSU case matching requirements in TOC/chap)
+% So the appendices are chapters in the document but formatted as
+% sections in the TOC. Code needs to be changed back for the bibliography
+\cftinsertcode{APP}{
+ \setlength\cftchapterindent{\cftsectionindent}
+ \setlength\cftbeforechapterskip{0pt}
+ \renewcommand\cftchapterfont{\msu@tocfont}
+ \renewcommand\cftchapterpagefont{\msu@tocfont}
+ \renewcommand*{\cftappendixname}{APPENDIX\space}
+}
+% This code resets the changes made in the APP code back to normal
+% so that the bibliography will appear correctly in the TOC
+\cftinsertcode{BIB}{
+\setlength{\cftchapterindent}{0em}
+\setlength{\cftbeforechapterskip}{1.0em \@plus\p@}
+ \renewcommand\cftchapterfont{\msu@chapfont}
+ \renewcommand\cftchapterpagefont{\msu@chapfont}
+}
+
+% Set up all the font styles for the TOC
\renewcommand*{\cftchapterfont}{\msu@chapfont}
\renewcommand*{\cftchapterpagefont}{\msu@chapfont}
\renewcommand*{\cftsectionfont}{\msu@tocfont}
@@ -282,10 +293,9 @@
\renewcommand*{\l@appendix}[2]{%
\renewcommand{\cftchapterpagefont}{\msu@tocfont}
\setlength{\cftchapternumwidth}{2em}
- \l@chapapp{\msu@tocfont{#1}}{#2}{\cftappendixname}} % Format appendix names
+ \l@chapapp{\msu@tocfont\MakeUppercase{#1}}{#2}{\cftappendixname}} % Format appendix names
\setlength{\cftchapternumwidth}{3em}
\setrmarg{3.5em} % better wrapping of long titles
-%\setlength{\cftbeforechapterskip}{1.0em \@plus\p@}
% MSU requires double spacing between entries in the list of tables, figures etc.
% so we add the commands to change the 'list of'
@@ -299,10 +309,6 @@
\renewcommand*{\insertchapterspace}{}
\pagestyle{plain}
}
-% The following left in for backwards compatibility with v. 1.7
-% but not mentioned in the documentation
-
-\newcommand{\maketableofcontents}{\tableofcontents*}
% set up footnotes
\footmarkstyle{\normalsize\textsuperscript{#1}} % reset size so that mark is right size
@@ -310,116 +316,133 @@
\setlength{\footmarksep}{-1.8em}
\setlength{\footparindent}{1em}
\renewcommand{\foottextfont}{\normalsize} % footnotes will be 12pt
-\feetbelowfloat
-
+\feetbelowfloat % footnotes will appear below bottom floats
\renewenvironment{abstract}{%
\chapter*{\abstractname}
\thispagestyle{empty}
\plainbreak{-1.5}
\begin{center}
- \MakeUppercase{\thetitle}\plainbreak{1}By\plainbreak{1}\theauthor
+ \MakeUppercase{\thetitle}\plainbreak{1}By\plainbreak{1}\theauthor
\end{center}
\DoubleSpacing
}{\par}
-% \makeabstract command included for backwards compatibility
-\newcommand{\makeabstract}{\ClassWarning{msu-thesis}{MSU-Thesis: The \protect\makeabstract\space command is no longer needed.}}
% set up captions
\captionstyle[\centering]{\raggedright}
+% Make the caption delimiter a space instead of colon space so that the
+% contents lists don't look so stupid. Can be changed if necessary.
+\captiondelim{\space}
\pagestyle{plain}
% make the titlepage
\newcommand{\maketitlepage}{%
-\pagestyle{empty}\thispagestyle{empty}
-\begin{titlingpage}
-\maketitle
-\end{titlingpage}
-\addtocounter{page}{1}}
+ \pagestyle{empty}
+ \thispagestyle{empty}
+ \begin{titlingpage}
+ \maketitle
+ \end{titlingpage}
+ \addtocounter{page}{1}}
% make the copyright page
\newcommand*{\makecopyrightpage}{%
-\pagestyle{plain}\clearpage\thispagestyle{empty}
-\vspace*{7in}
-{\raggedleft Copyright by\\\MakeUppercase{\theauthor}\\\thedate\\} % Author now uppercase 6/5/12
-\clearpage}
+ \pagestyle{plain}
+ \clearpage
+ \thispagestyle{empty}
+ \vspace*{7in}
+ {\raggedleft Copyright by\\\MakeUppercase{\theauthor}\\\thedate\\} % Author now uppercase 6/5/12
+ \clearpage}
% make the dedication page
\newcommand*{\makededicationpage}{%
-\clearpage\pagestyle{plain}
-\chapter*{\ }
-\vspace{.35\textheight}\begin{center}
-\@dedication
-\end{center}}
+ \clearpage
+ \pagestyle{plain}
+ \chapter*{\ }
+ \vspace{.35\textheight}\begin{center}
+ \msu@dedication
+ \end{center}}
\renewcommand{\mainmatter}{%
\DoubleSpacing\pagestyle{plain}\@ifstar{\@smemmain}{\@memmain}}
+\renewcommand{\beforepartskip}{\vspace*{.35\textheight}}
-
-% make the appendices cover page
-% Two new commands added \appendix and \appendices
-% no longer need to set switch manually
-% added 8/7/14
-
-\newcommand*{\@makeappendixcover}{%
-\addcontentsline{toc}{chapter}{\@appendixcover}
-\ifappendices
- \settocdepth{chapter}
- \addtocontents{toc}{%
- \setlength{\cftchapterindent}{1.5em}
- \setlength{\cftbeforechapterskip}{0.0em \@plus\p@}
-}
-\else
- \settocdepth{part}
-\fi
-\clearpage
-\chapter*{\ }
-\vspace{.35\textheight}\begin{center}
-\bfseries\@appendixcover
-\end{center}
-\ifmsu@hyperloaded
- \renewcommand{\theHchapter}{A\arabic{chapter}}
-\fi
-}
+% This code patches the memoir appendix code to automatically add
+% appendix cover pages with the correct label, and getting the stupid
+% TOC format that the Grad School requires correct.
+% Also, since the Grad School doesn't allow a single appendix to have a letter name
+% we remove it for the title, but not for the section headings.
+%
\let\orig@appendix\appendix
\let\orig@appendices\appendices
-\let\orig@endappendices\endappendices
-\renewcommand*{\appendix}{\appendicesfalse\@makeappendixcover\orig@appendix}
-\renewcommand*{\appendices}{\appendicestrue\@makeappendixcover\orig@appendix}
-\renewcommand*{\endappendices}{}
+\renewcommand*{\appendix}{
+ \renewcommand\appendixpagename{Appendix}
+ \renewcommand\appendixtocname{Appendix}
+ \appendixpage
+ \settocdepth{part}
+ \orig@appendix
+ \renewcommand\thechapter{}
+ \renewcommand\thesection{A.\arabic{section}}}
+\renewcommand*{\appendices}{
+ \appendixpage
+ \cftinserthook{toc}{APP}
+ \settocdepth{chapter}
+ \orig@appendices}
% make the bibliography page
+% new version modeled after memoir code for appendix page
+\def\msu@bibpage{%
+ \cftinserthook{toc}{BIB}
+ \settocdepth{chapter}
+ \@setuppart
+ \msu@preaddbibpagetotochook
+ \msu@addbibheadtotoc
+ \msu@postaddbibpagetotochook
+ \partmark{\bibpagename}%
+ \msu@bibpageinfo{\bibpagename}%
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \printparttitle{\bibpagename}\par}%
+ \@endpart}
+\newcommand\msu@preaddbibpagetotochook{}
+\newcommand\msu@postaddbibpagetotochook{}
+\newcommand{\msu@bibpageinfo}[1]{}
+
+\def\msu@addbibheadtotoc{%
+ \phantomsection\addcontentsline{toc}{chapter}{\bibtocname}}
+% Since the bibliography page is the TOC entry we remove the bib in the TOC
+% when it's introduced
+\nobibintoc
% Modified 8/7/14 to add the bibliography cover page to the TOC and not the actual bibliography page
% This should also work for biblatex even though memoir doesn't check for it
% but we'll worry about that when someone asks...
-\newcommand*{\makebibliographycover}{%
-\ifmsu@hyperloaded
- \phantomsection\label{msu@bib}\fi
-\settocdepth{chapter}
-\addtocontents{toc}{
- \setlength{\cftchapterindent}{0em}
- \setlength{\cftbeforechapterskip}{1.0em \@plus\p@}
- }
-\addcontentsline{toc}{chapter}{BIBLIOGRAPHY} % put the title page in the TOC
-\nobibintoc % remove the actual bib first page from the TOC
-\clearpage
-\chapter*{\ } % this is a hack but it works
-\vspace{.35\textheight}\begin{center}
-\bfseries\MakeUppercase{\bibname}
-\end{center}
-}
+\let\bibtocname\bibname
+\let\bibpagename\bibname
+\newcommand*{\makebibliographypage}{\msu@bibpage}
+\let\makebibliographycover\makebibliographypage
-% Do some stuff at begin document: check for hyperref
+% Do some stuff at begin document:
+\AtBeginDocument{%
+\let\msucaptiondelim\@contdelim
+\topskip=0pt % setting this because the Grad School doesn’t know how to measure
+\checkandfixthelayout
+%
+% set up subscript sizes so that 10 pt is the smallest
+% (MSU Requirement)
+\DeclareMathSizes{12}{12}{10}{10}
+\DeclareMathSizes{10.95}{10.95}{10}{10}
+\DeclareMathSizes{10}{10}{10}{10}
+%
+% check for hyperref
% The hyperref code allows hyperref to be used. It is not guaranteed to
-% work and has been lightly tested
-% If the thesis office permits them, then I may try to support this more.
+% work and has been lightly tested.
% Thanks to Florent Chervet for the code.
-\AtBeginDocument{%
+% Added hypersetup to remove borders around links 5/9/16
\@ifpackageloaded{hyperref}%
-{\msu@hyperloadedtrue
+{\hypersetup{pdfborder= 0 0 0}\msu@hyperloadedtrue
\def\MakeLinkUppercase \hyper@linkstart #1#2#3\hyper@linkend
{\hyper@linkstart {#1}{#2}{\MakeUppercase{#3}}\hyper@linkend }
\pdfstringdefDisableCommands{\let\MakeUppercase \@firstofone }
@@ -428,5 +451,6 @@
\renewcommand*{\l@appendix}[2]{%
\l@chapapp{\msu@tocfont#1}{#2}{\cftappendixname}}} % Format appendix names (changed 8/7/14)
% if no hyperref
-{\relax}}
+{\relax}
+}
\endinput \ No newline at end of file