Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting required by graduate school as of August 2020 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 50 additions & 46 deletions thesis.cls
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% %%%%%%%%%%%%%%%%%%%%%%%%%
%
% Baylor University Master's Thesis LaTeX Template
%
%
% Last Updated in June 2014
%
% %%%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -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
% =============================================================
Expand Down Expand Up @@ -59,32 +59,32 @@
\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
\RequirePackage{setspace}

% -----------------------------------------------
% 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
Expand All @@ -93,7 +93,7 @@
% -----------------------------------------------
\setlength{\abovecaptionskip}{2em}
\setlength{\belowcaptionskip}{-0.01em}

% Fix the ToC style for appendices
\RequirePackage[titletoc]{appendix}

Expand All @@ -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}
Expand Down Expand Up @@ -161,7 +161,7 @@
\setlength{\labelwidth}{1.5em}



% Macro that converts the given number to a corresponding number name
\newcommand{\arabicText}[1]
{
Expand Down Expand Up @@ -194,7 +194,7 @@
{
% the footnotes should start with 1 in each chapter
\setcounter{footnoteA}{0}

\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{**************************}
Expand All @@ -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}\\
Expand All @@ -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}
Expand All @@ -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}{
Expand Down Expand Up @@ -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 \\
Expand All @@ -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
Expand All @@ -350,18 +356,18 @@
\if@makeReaderFive \thesisSignature{\thesisReaderFive}{80mm} \fi
\\
}

\vspace{0.25in}
\vfill

{
\addtolength{\leftskip}{2.6in}
Accepted by the Graduate School \\
\vspace{-0.075in}
\thesisConfDate
\thesisSignature{\thesisDean, Dean}{80mm} \\
}

\end{center}
\clearpage
}
Expand Down Expand Up @@ -396,8 +402,7 @@
\begin{center}
ABSTRACT
\ \\
\thesisTitle
\ \\
\begin{singlespace}\thesisTitle\end{singlespace}
\thesisAuthorName, \thesisSeeking
\ \\
\thesisMentorTitle: \thesisMentor
Expand All @@ -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}}
Expand Down Expand Up @@ -481,15 +486,15 @@
% Dedication page (optional)
\newcommand{\thesisDedicationpage}
{
\if@makeDedication
\if@makeDedication
\thispagestyle{plain}
\addtocontents{toc}{\protect\vspace{-0.25in}}
\phantomsection % Anchor the bookmark to this position
\addcontentsline{toc}{part}{\normalsize\normalfont\dedicationname}
%\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
}
Expand All @@ -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
Expand All @@ -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}
}
Expand All @@ -562,14 +566,14 @@
\renewcommand*{\document}
{
\interceptedDocument

% Front matter
\if@makeShortThesis
\thesisAbstractpage
\else
\thesisPrologue
\fi

% Document body follows
\doublespacing
\pagenumbering{arabic}
Expand Down Expand Up @@ -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
Expand Down