summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls')
-rw-r--r--Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls112
1 files changed, 63 insertions, 49 deletions
diff --git a/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls b/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
index d5f105f12a8..4a8a28d4f44 100644
--- a/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
+++ b/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
@@ -56,7 +56,7 @@
\NeedsTeXFormat{LaTeX2e}
% This command gives the name of the class.
-\ProvidesClass{thesis-gwu}[2018/05/21 v1.3.0 GWU Thesis template]
+\ProvidesClass{thesis-gwu}[2018/07/09 v1.5.1 GWU Thesis template]
%% ---- OPTIONS PROCESSING ---------------------------------------------
% Define three switches for the the thesis format types.
@@ -64,6 +64,8 @@
% The default values are false.
\newif\if@gwu@thesis
\newif\if@gwu@debug % option for debuggin
+
+\newif\if@gwu@tableofcontents
\newif\if@gwu@listoffigures
\newif\if@gwu@listoftables
\newif\if@gwu@listofmaps
@@ -91,12 +93,14 @@
\newif\if@gwu@msdegree
+\newif\if@gwu@titlepage
+
% Set the default value of some of the options to true.
\@gwu@thesistrue
-\@gwu@listoffigurestrue
-\@gwu@listoftablestrue
-\@gwu@copyrighttrue
-\@gwu@committeepagetrue
+% \@gwu@listoffigurestrue
+% \@gwu@listoftablestrue
+% \@gwu@copyrighttrue
+% \@gwu@committeepagefalse
\@gwu@msdegreetrue
% This declares a variable for using an index.
@@ -220,20 +224,20 @@
%% ---- HYPERREF ----------------------------------------------------------
% This loads a package that allows extra colors for links.
-\RequirePackage[usenames,dvipsnames]{color}
+\RequirePackage[]{color}
% Custom color for references.
-\definecolor{DarkGreen}{rgb}{0,0.6,0}
+% \definecolor{DarkGreen}{rgb}{0,0.6,0}
% This will make labels and references hyperlinks.
-\if@gwu@backref
+\if@gwu@backref%
% Use references in the bibliography.
- \RequirePackage[pagebackref=true]{hyperref}
-\else
+ \RequirePackage[pagebackref=true]{hyperref}%
+\else%
% Do not use back references.
- \RequirePackage{hyperref}
+ \RequirePackage{hyperref}%
\fi
- \hypersetup{
+ \hypersetup{%
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
@@ -243,15 +247,15 @@
colorlinks=false, % false: boxed links; true: colored links
bookmarksdepth=3,
bookmarksopen=true,
- }
+ }%
% Cleveref referencing - must happen after hyperref
-\AtEndOfClass{\RequirePackage[noabbrev,capitalize]{cleveref}}
+\AtEndOfClass{\RequirePackage[noabbrev,capitalize]{cleveref}}%
% Glossaries package - must come after hypperef
% This package is used for the list of abbreviations
-\RequirePackage[printonlyused]{acronym}
-\RequirePackage[abbreviations,symbols,shortcuts=none,automake]{glossaries-extra}
+\RequirePackage[printonlyused]{acronym}%
+\RequirePackage[abbreviations,symbols,shortcuts=none,automake]{glossaries-extra}%
%% ---- FORMATTING -----------------------------------------------------
% Set the page style to fancy.
\pagestyle{fancy}
@@ -355,7 +359,7 @@
\newcommand{\@defensedate}{Insert defense date!}
% Commands to set the titlepage fields
-\renewcommand{\title}[1]{\renewcommand{\@title}{#1}}
+\renewcommand{\title}[1]{\renewcommand{\@title}{#1}\@gwu@titlepagetrue}
\renewcommand{\author}[1]{\renewcommand{\@author}{#1}}
\newcommand{\bsdepartment}[1]{\renewcommand{\@bsdepartment}{#1}}
@@ -371,7 +375,7 @@
\newcommand{\degree}[1]{\renewcommand{\@degree}{#1}}
\newcommand{\department}[1]{\renewcommand{\@department}{#1}}
-\newcommand{\committee}[1]{\renewcommand{\@committee}{#1}}
+\newcommand{\committee}[1]{\renewcommand{\@committee}{#1}\@gwu@committeepagetrue}
\newcommand{\chair}[1]{\renewcommand{\@chair}{#1}}
\newcommand{\chairtitle}[1]{\renewcommand{\@chairtitle}{#1}}
\newcommand{\cochair}[1]{\renewcommand{\@cochair}{#1}}
@@ -694,6 +698,8 @@
%% ---- COMMANDS TO HIDE/SHOW FRONT PAGES ------------------------------
% Commands to show front pages
+\newcommand{\showtitlepage}{\@gwu@titlepagetrue}
+
\newcommand{\showcopyright}{\@gwu@copyrighttrue}
\newcommand{\showdedication}{\@gwu@dedicationtrue}
\newcommand{\showacknowledgments}{\@gwu@acknowledgmentstrue}
@@ -705,6 +711,8 @@
\newcommand{\showcommitteepage}{\@gwu@committeepagetrue}
% Commands to hide front pages
+\newcommand{\hidetitlepage}{\@gwu@titlepagefalse}
+
\newcommand{\hidecopyright}{\@gwu@copyrightfalse}
\newcommand{\hidededication}{\@gwu@dedicationfalse}
\newcommand{\hideacknowledgments}{\@gwu@acknowledgmentsfalse}
@@ -909,35 +917,39 @@
%% ---- COMMANDS FOR LIST OF FIGURES, ETC. -----------------------------
% Commands to show each of the lists
-\newcommand{\showlistoffigures}{\@gwu@listoffigurestrue}
-\newcommand{\showlistoftables}{\@gwu@listoftablestrue}
-\newcommand{\showlistofmaps}{\@gwu@listofmapstrue}
-\newcommand{\showlistofillustrations}{\@gwu@listillustrationstrue}
-\newcommand{\showlistofprograms}{\@gwu@listofprogramstrue}
-\newcommand{\showlistofabbreviations}{\@gwu@listofabbrevstrue}
+\newcommand{\showtableofcontents}{\@gwu@tableofcontentstrue}
+
+\newcommand{\showlistoffigures}{\@gwu@listoffigurestrue\@gwu@tableofcontentstrue}
+\newcommand{\showlistoftables}{\@gwu@listoftablestrue\@gwu@tableofcontentstrue}
+\newcommand{\showlistofmaps}{\@gwu@listofmapstrue\@gwu@tableofcontentstrue}
+\newcommand{\showlistofillustrations}{\@gwu@listillustrationstrue\@gwu@tableofcontentstrue}
+\newcommand{\showlistofprograms}{\@gwu@listofprogramstrue\@gwu@tableofcontentstrue}
+\newcommand{\showlistofabbreviations}{\@gwu@listofabbrevstrue\@gwu@tableofcontentstrue}
-\newcommand{\showlistofacronyms}{\@gwu@listofacronymstrue\@gwu@listofglossariesabbrevsfalse}
-\newcommand{\showlistofsymbols}{\@gwu@listofsymbolstrue\@gwu@listofglossariessymbolsfalse}
+\newcommand{\showlistofacronyms}{\@gwu@listofacronymstrue\@gwu@listofglossariesabbrevsfalse\@gwu@tableofcontentstrue}
+\newcommand{\showlistofsymbols}{\@gwu@listofsymbolstrue\@gwu@listofglossariessymbolsfalse\@gwu@tableofcontentstrue}
-\newcommand{\showglossarieslistofabbreviations}{\@gwu@listofglossariesabbrevstrue\@gwu@listofacronymsfalse}
-\newcommand{\showglossarieslistofsymbols}{\@gwu@listofglossariessymbolstrue\@gwu@listofsymbolsfalse}
-\newcommand{\showglossarieslistofacronyms}{\@gwu@listofglossariesacronymstrue\@gwu@listofacronymsfalse}
-\newcommand{\showglossariesglossaryofterms}{\@gwu@glossaryoftermstrue}
+\newcommand{\showglossarieslistofabbreviations}{\@gwu@listofglossariesabbrevstrue\@gwu@listofacronymsfalse\@gwu@tableofcontentstrue}
+\newcommand{\showglossarieslistofsymbols}{\@gwu@listofglossariessymbolstrue\@gwu@listofsymbolsfalse\@gwu@tableofcontentstrue}
+\newcommand{\showglossarieslistofacronyms}{\@gwu@listofglossariesacronymstrue\@gwu@listofacronymsfalse\@gwu@tableofcontentstrue}
+\newcommand{\showglossariesglossaryofterms}{\@gwu@glossaryoftermstrue\@gwu@tableofcontentstrue}
% Commands to hide each of the lists
-\newcommand{\hidelistoffigures}{\@gwu@listoffiguresfalse}
-\newcommand{\hidelistoftables}{\@gwu@listoftablesfalse}
-\newcommand{\hidelistofmaps}{\@gwu@listofmapsfalse}
-\newcommand{\hidelistofillustrations}{\@gwu@listillustrationsfalse}
-\newcommand{\hidelistofprograms}{\@gwu@listofprogramsfalse}
-\newcommand{\hidelistofabbreviations}{\@gwu@listofabbrevsfalse}
-\newcommand{\hidelistofacronyms}{\@gwu@listofacronymsfalse}
-\newcommand{\hidelistofsymbols}{\@gwu@listofsymbolsfalse}
-
-\newcommand{\hideglossarieslistofabbreviations}{\@gwu@listofglossariesabbrevsfalse}
-\newcommand{\hideglossarieslistofacronyms}{\@gwu@listofglossariesacronymsfalse}
-\newcommand{\hideglossarieslistofsymbols}{\@gwu@listofglossariessymbolsfalse}
-\newcommand{\hideglossariesglossaryofterms}{\@gwu@glossaryoftermsfalse}
+\newcommand{\hidetableofcontents}{\@gwu@tableofcontentsfalse}
+
+\newcommand{\hidelistoffigures}{\@gwu@listoffiguresfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hidelistoftables}{\@gwu@listoftablesfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hidelistofmaps}{\@gwu@listofmapsfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hidelistofillustrations}{\@gwu@listillustrationsfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hidelistofprograms}{\@gwu@listofprogramsfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hidelistofabbreviations}{\@gwu@listofabbrevsfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hidelistofacronyms}{\@gwu@listofacronymsfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hidelistofsymbols}{\@gwu@listofsymbolsfalse\@gwu@tableofcontentsfalse}
+
+\newcommand{\hideglossarieslistofabbreviations}{\@gwu@listofglossariesabbrevsfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hideglossarieslistofacronyms}{\@gwu@listofglossariesacronymsfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hideglossarieslistofsymbols}{\@gwu@listofglossariessymbolsfalse\@gwu@tableofcontentsfalse}
+\newcommand{\hideglossariesglossaryofterms}{\@gwu@glossaryoftermsfalse\@gwu@tableofcontentsfalse}
%% ---- TABLE OF CONTENTS ----------------------------------------------
% This sets the formatting for chapter entries in the table of contents.
@@ -1457,11 +1469,12 @@
%% ---- INITIALIZATION -------------------------------------------------
% Commands to be placed after \begin{document}
-\AtBeginDocument{ %
+\AtBeginDocument{%
+ \providecommand\tikzifexternalizing[2]{#2}%
% Insert a title page.
- \titlepage %
+\tikzifexternalizing{}{\if@gwu@titlepage\titlepage\fi%
% Change the PDF title.
- \hypersetup{
+ \hypersetup{%
pdftitle=\inserttitle,
pdfauthor=\insertauthor,
pdfcreator=\insertauthor,
@@ -1475,7 +1488,7 @@
% Use lower-case roman numerals.
\renewcommand{\thepage}{\roman{page}} %
% Insert the copyright page if there is one.
- \if@gwu@copyright\copyrightpage\fi
+ \if@gwu@copyright\copyrightpage\fi%
% Insert a dedication if there is one.
\if@gwu@dedication\dedicationpage\fi %
% Insert the acknowledgments if there are any.
@@ -1486,7 +1499,7 @@
% Insert the abstract.
\if@gwu@abstract\abstractpage\fi %
% Insert the table of contents.
- \tableofcontents %
+ \if@gwu@tableofcontents\tableofcontents\fi %
% Insert the list of figures.
\if@gwu@listoffigures\listoffigures\fi %
% Insert the list of tables.
@@ -1507,7 +1520,7 @@
\if@gwu@listofglossariessymbols\listofglossarysymbols\fi
% Insert the nomenclature.
\if@gwu@nomenclature\insertnomenclature\fi %
- \if@gwu@glossaryofterms\listofglossaryofterms\fi
+ \if@gwu@glossaryofterms\listofglossaryofterms\fi%
% Insert the preface if there is one.
\if@gwu@preface\prefacepage\fi %
% Insert the foreword if there is one.
@@ -1533,5 +1546,6 @@
% Use two-column format
\twocolumn %
\fi %
+ }
}