diff --git a/thesis.cls b/thesis.cls old mode 100644 new mode 100755 index b071867..d82608d --- a/thesis.cls +++ b/thesis.cls @@ -1,7 +1,7 @@ % %%%%%%%%%%%%%%%%%%%%%%%%% % % Baylor University Master's Thesis LaTeX Template -% +% % Last Updated in June 2014 % % %%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,12 +17,12 @@ % ================== Changelog ================================ % Added \comment{} - simplifies multiline comments % Fixed spaces after floats: images & tables -% -- NOTE: +% -- NOTE: % This only works when floats are at to of page. There is no guarantee that inline images and tables -% Will actually work. If anybody needs this, will need to be fixed +% Will actually work. If anybody needs this, will need to be fixed % final version changelog: % Dedication: Moved to 3 inches from the top, removed title ("DEDICATION") from the top of the page -% Double spacing AFTER level 3 (\subsection) when text follows. +% Double spacing AFTER level 3 (\subsection) when text follows. % Add period after level 5 (followed by 2 spaces) % Added APPENDICES separator page % ============================================================= @@ -59,14 +59,14 @@ \setlength{\parindent}{0.5in} % used in triplespace \setlength{\labelsep}{0.5em} \setlength{\labelwidth}{1.5em} - + \onecolumn \raggedbottom \doublespacing - + \setcounter{tocdepth}{2} \setcounter{secnumdepth}{3} - + } % We need both double and single spacing @@ -74,17 +74,17 @@ % ----------------------------------------------- % TABLE FORMATING STUFF -% This is confusing because the caption is at the top. +% This is confusing because the caption is at the top. %%%%%%% THERE HAS TO BE A BETTER WAY JIM % aboveskip = distance between caption and float % belowskip = distace between caption and text % Set the caption label separator and spacing for all floats \RequirePackage{caption} \captionsetup{labelsep=period,font=singlespacing} -\captionsetup[table]{belowskip=-0.1em, aboveskip=1em, justification=centering} +\captionsetup[table]{belowskip=-0.1em, aboveskip=1em, justification=centering} %\captionsetup[figure]{belowskip=2em, aboveskip=2em} -% because we set this which determines the distance between the table +% because we set this which determines the distance between the table % and the preeceeding / proceeding text, we HAVE to set the belowskip in the thing above to 0 % this is also applicable for the images and pictures. Fortunately the configuration % for both are the same. If they're not, then we're in big barney @@ -93,7 +93,7 @@ % ----------------------------------------------- \setlength{\abovecaptionskip}{2em} \setlength{\belowcaptionskip}{-0.01em} - + % Fix the ToC style for appendices \RequirePackage[titletoc]{appendix} @@ -112,7 +112,7 @@ \brokenpenalty=10000 % Eliminates page breaks at hyphens \clubpenalty=10000 % Eliminates orphan lines \widowpenalty=10000 % Eliminates widowed lines - + % Set the names of prologue pages \newcommand*{\ToCname}{TABLE OF CONTENTS} @@ -161,7 +161,7 @@ \setlength{\labelwidth}{1.5em} - + % Macro that converts the given number to a corresponding number name \newcommand{\arabicText}[1] { @@ -194,7 +194,7 @@ { % the footnotes should start with 1 in each chapter \setcounter{footnoteA}{0} - + \ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% \typeout{**************************} @@ -211,7 +211,7 @@ \centering \vspace*{0.43in} \MakeUppercase{\@chapapp{}}% - \hspace{-0.25em} % for the chapter text to look pretty. + \hspace{-0.25em} % for the chapter text to look pretty. \arabicText{\thechapter} \vspace{-1ex} \singlespacing{#2}\\ @@ -227,11 +227,11 @@ \@startsection{section}{1}{0pt}{1em}{0.001ex}%skip: 2 space before, 1 space after. adjusted to 0.001 so that it's virually none {\centering\normalfont\slshape\normalsize} } -% IF there is content text immediately after level 3, +% IF there is content text immediately after level 3, % THEN distance between Level 3 and Content text = doublespace. -% IF there is level 4 header immediately after level 3, -% THEN distance between Level 3 and Level 4 = triplespace. - +% IF there is level 4 header immediately after level 3, +% THEN distance between Level 3 and Level 4 = triplespace. + \renewcommand{\subsection}[1] { \@startsection{subsection}{2}{0pt}{0.001ex}{0.001ex} @@ -245,24 +245,30 @@ {\normalfont\slshape\normalsize}{#1\hspace{-3ex}}{.} %adds a period/fullstop/dot after the title } -%% standardize itemize and enumerate spacing +%% standardize enumerate spacing \let\oldenumerate\enumerate \renewcommand{\enumerate}{ \oldenumerate \setlength{\itemsep}{1em} \setlength{\parskip}{-1em} - \setlength{\parsep}{0pt} + \setlength{\parsep}{0pt} } -%% standardize itemize and enumerate spacing + +%% standardize itemize spacing \let\olditemize\itemize \renewcommand{\itemize}{ \olditemize - \setlength{\parsep}{-\baselineskip} + \setlength{\parsep}{-\baselineskip} \setlength{\itemsep}{1em} \setlength{\parskip}{-1em} - } +%% quote formatting : single-space, indent, and extend to right margin +\renewenvironment{quote} + {\list{}{\rightmargin=0in} + \item\singlespace} + {\endlist} + % removes extra space after the list (itemize). So it will be double space instead of triple \let\@oldlistI\@listI \renewcommand{\@listI}{ @@ -318,10 +324,10 @@ { \thispagestyle{masters_title_page} \doublespacing - + \begin{center} \vspace*{0.1in} - \thesisTitle \\ + \begin{singlespace}\thesisTitle\end{singlespace} by \\ \thesisAuthorName, \thesisHolding \\ A Thesis \\ @@ -330,12 +336,12 @@ \\ \vspace{0.1in} \singlespacing - Submitted to the Graduate Faculty of\\ + Submitted to the Graduate Faculty of\\ Baylor University in Partial Fulfillment of the \\ Requirements for the Degree \\ of \\ \thesisDegree - + \vspace{0.25in} \vfill \doublespacing @@ -350,10 +356,10 @@ \if@makeReaderFive \thesisSignature{\thesisReaderFive}{80mm} \fi \\ } - + \vspace{0.25in} \vfill - + { \addtolength{\leftskip}{2.6in} Accepted by the Graduate School \\ @@ -361,7 +367,7 @@ \thesisConfDate \thesisSignature{\thesisDean, Dean}{80mm} \\ } - + \end{center} \clearpage } @@ -396,8 +402,7 @@ \begin{center} ABSTRACT \ \\ - \thesisTitle - \ \\ + \begin{singlespace}\thesisTitle\end{singlespace} \thesisAuthorName, \thesisSeeking \ \\ \thesisMentorTitle: \thesisMentor @@ -413,8 +418,8 @@ % uses the tocloft package %\renewcommand\cftchapleader{\cftdotfill{\cftchapdotsep}} \renewcommand\cftchapdotsep{\cftsecdotsep} % first define the chap dots to be equal to the section dots -\renewcommand\cftchapleader{\normalfont\cftdotfill{\cftchapdotsep}} % then remove the bolds. -\renewcommand\cftchappagefont{\normalfont} % this defaults to bold, overwrite that. +\renewcommand\cftchapleader{\normalfont\cftdotfill{\cftchapdotsep}} % then remove the bolds. +\renewcommand\cftchappagefont{\normalfont} % this defaults to bold, overwrite that. \renewcommand\cftpartpagefont{\normalfont} \renewcommand\cftpartafterpnum{\vspace{1em}} \renewcommand\cftchapafterpnum{\vspace{1em}} @@ -481,7 +486,7 @@ % Dedication page (optional) \newcommand{\thesisDedicationpage} { - \if@makeDedication + \if@makeDedication \thispagestyle{plain} \addtocontents{toc}{\protect\vspace{-0.25in}} \phantomsection % Anchor the bookmark to this position @@ -489,7 +494,7 @@ %\begin{center}\vspace*{0.25in}\normalfont\normalsize{}\end{center} % SHOWS the dedication title on the page \begin{center}\vspace*{0.25in}\normalfont\normalsize{}\end{center} % DOES NOT show the dedication title on the actual page \vspace{0.75in} % badhack to make sure dedication starts at 3inches from the top - \begin{center}\th@dedicationStash\end{center} + \begin{center}\begin{singlespace}\th@dedicationStash\end{singlespace}\end{center} \clearpage \fi } @@ -514,15 +519,15 @@ { % Where to start counting pages (Baylor's first pages are unpaginated, but counted!) \pagenumbering{roman} - + % Unpaginated preliminary pages \thesisAbstractpage \thesisTitlePage \thesisCopyrightPage - + % Where to start paginating (thus making ToC page "iv" or so) \pagestyle{plain} - + % Paginated preliminary pages \thesisToCpage \thesisLoFpage @@ -545,9 +550,8 @@ \list{[\arabic{enumi}]} { \settowidth\labelwidth{[#1]}\leftmargin\labelwidth - \advance\leftmargin\labelsep - \advance\leftmargin\bibindent - \itemindent -\bibindent + \advance\leftmargin2\labelsep + \itemindent -\bibindent % Hanging indent \listparindent \itemindent \usecounter{enumi} } @@ -562,14 +566,14 @@ \renewcommand*{\document} { \interceptedDocument - + % Front matter \if@makeShortThesis \thesisAbstractpage \else \thesisPrologue \fi - + % Document body follows \doublespacing \pagenumbering{arabic} @@ -609,7 +613,7 @@ \def\belowspace{} \def\amanda{} -% Alvin's Note: Stacking is obsolete. Handled by the subsections respective headers +% Alvin's Note: Stacking is obsolete. Handled by the subsections respective headers \newcommand*{\stack}{} % Rysavy: footnotes must have the same indent as paragraph