summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls')
-rw-r--r--Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls128
1 files changed, 60 insertions, 68 deletions
diff --git a/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls b/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
index ae4bbeb6775..04ec2bdb1b6 100644
--- a/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
+++ b/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
@@ -27,19 +27,19 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{turabian-thesis}[2015/11/14 Turabian Theses and Dissertations]
+\ProvidesClass{turabian-thesis}[2016/02/27 Turabian Theses and Dissertations]
% Default point size
\def\@@ptsize{12pt}
-% Options for document class, some passed to book class
+% Options for document class
\DeclareOption{raggedright}{%
\PassOptionsToPackage{\CurrentOption}{turabian-formatting}}
-\DeclareOption{emptymargins}{%
+\DeclareOption{noadjustbib}{%
\PassOptionsToPackage{\CurrentOption}{turabian-formatting}}
\DeclareOption{endnotes}{%
@@ -59,112 +59,104 @@
\DeclareOption{12pt}{\def\@@ptsize{12pt}}
+
+% Deprecated option
+\DeclareOption{emptymargins}{%
+ \ClassWarningNoLine{turabian-researchpaper}{The '\CurrentOption' option has been deprecated.}
+ \PassOptionsToPackage{\CurrentOption}{turabian-formatting}}
+
+
+% Pass other options to book document class
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
+% Build upon book document class
\LoadClass[titlepage,oneside,onecolumn,\@@ptsize]{book}
-\RequirePackage{geometry}
-
+% Load turabian-formatting package
\RequirePackage{turabian-formatting}
-% Margin adjustment by increasing the binding off-set
+% Create binding offset of 0.5in
+\setlength\oddsidemargin{0.5in}
+\setlength\evensidemargin{\z@}
+\addtolength\textwidth{-\oddsidemargin}
-\geometry{bindingoffset=0.5in}
+% Title page commands for use with \maketitle (deprecated, not functional)
-% Renew \maketitle command Thesis/Dissertation title page.
+\newcommand{\faculty}[1]{\gdef\tf@faculty{#1}}
+\faculty{\@empty}
+
+\newcommand{\mydegree}[1]{\gdef\tf@mydegree{#1}}
+\mydegree{\@empty}
-\institution{[Institution]}
-\newcommand{\faculty}[1]{\def\@faculty{#1}}
-\faculty{[Faculty]}
+% Renew \maketitle command for Thesis/Dissertation title page
-\newcommand{\mydegree}[1]{\def\@mydegree{#1}}
-\mydegree{[Degree]}
+\submissioninfo{%
+ A Dissertation Submitted to\par
+ [Faculty]\par
+ in Candidacy for the Degree of\par
+ [Degree]}
-\newcommand{\department}[1]{\def\@department{#1}}
\department{[Department]}
-\newcommand{\location}[1]{\def\@location{#1}}
+\institution{[Institution]}
+
\location{[City], [State/Province]}
\renewcommand{\maketitle}{%
\begin{titlepage}%
- \let\footnotesize\small
+ \singlespacing
+ \tf@setfnpunct{}
+ \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
\let\footnoterule\relax
- \renewcommand{\thanks}[1]{\def\@thanks{##1}}
- \thanks{}
\normalfont\normalsize
\begin{center}
\vspace*{-1.2\baselineskip}
- \parskip=0.833\baselineskip
- \@institution\par
+ \parskip=1\baselineskip
+ \tf@institution\par
\vspace*{\stretch{1}}
- \ifthenelse{\equal{\@subtitle}{}}%
- {%
- {\bfseries\@title}\par%
- }%
- {%
- {\bfseries\@title :}\par
- {\bfseries\@subtitle}\par%
- }
+ {\bfseries\@title}\par
+ {\bfseries\tf@subtitle}\par%
\vspace*{\stretch{1}}
- A Dissertation Submitted to\par
- \@faculty\par
- in Candidacy for the Degree of\par
- \@mydegree\par
+ \tf@submissioninfo\par
\vspace*{1\baselineskip}
- \@department\par
+ \tf@department\par
\vspace*{\stretch{1}}
by\par
{\bfseries\@author}\par
\vspace*{\stretch{1}}
- \@location\par
+ \tf@location\par
\@date
\parskip=0pt
\end{center}%
\end{titlepage}%
-
- % Copyright page
\setcounter{page}{2}
- \singlespacing
- \vspace*{\stretch{1}}
- \noindent Copyright \copyright\ \the\year\ by \@author \\*\noindent All rights reserved
- \clearpage
-
- \setcounter{footnote}{0}
-
- \global\let\thanks\relax
- \global\let\maketitle\relax
-
- \global\let\@thanks\@empty
- \global\let\@author\@empty
- \global\let\@course\@empty
- \global\let\@institution\@empty
- \global\let\@date\@empty
- \global\let\@title\@empty
- \global\let\@subtitle\@empty
- \global\let\@location\@empty
- \global\let\@mydegree\@empty
- \global\let\@department\@empty
+ \tf@emptymaketitle
\global\let\@faculty\@empty
-
- \global\let\title\relax
- \global\let\subtitle\relax
- \global\let\author\relax
- \global\let\date\relax
- \global\let\course\relax
- \global\let\institution\relax
- \global\let\location\relax
- \global\let\mydegree\relax
- \global\let\department\relax
+ \global\let\@mydegree\@empty
\global\let\faculty\relax
- \global\let\and\relax
-}
+ \global\let\mydegree\relax
+ \cleardoublepage}
+
+
+% Renew \contentsname based on language package
+
+\AtEndPreamble{
+ \@ifpackageloaded{polyglosia}%
+ {%
+ \addto\captionsenglish{%
+ \renewcommand{\contentsname}{Table of Contents}}%
+ }{}
+ \@ifpackageloaded{babel}%
+ {%
+ \addto\captionsenglish{%
+ \renewcommand{\contentsname}{Table of Contents}}%
+ }{}}