-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmain.tex
284 lines (219 loc) · 9.16 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
% Select document class: 12 point, article
\documentclass[12pt]{article}
% This template is based on work done by Mike Catanzaro and Gabe Angelini-Knoll, both formerly of the WSU math department, with updates in 2019 by Aaron Willcock (ez9213@wayne.edu) for the updated WSU dissertation and thesis formatting guidelines. It is currently maintained by Clayton Hayes (clayton.hayes@wayne.edu) of the WSU Libraries, who created the original template and has made some slight adjustments to facilitate code readability.
% AMS = American Mathematical Society; math, symbols, theorems, fonts
\usepackage{amsmath, amssymb, amsthm, amsfonts}
% Enhanced graphics support (https://ctan.org/pkg/graphicx?lang=en)
\usepackage{graphicx}
% Set default graphics path (replace 'figures/' with whatever directory your images are in)
%\graphicspath{{figures/}}
% Control layout of itemize, enumerate, description (https://ctan.org/pkg/enumitem?lang=en)
\usepackage{enumitem}
% Header and footer formatting options
\usepackage{fancyhdr}
% Control float placement. [section] = "stop floats at section boundaries is to change the definition of “\section” to include “\FloatBarrier”"
\usepackage[section]{placeins}
% Hypertext (links) in LaTeX. [option] = remove color and border on links.
\usepackage[hidelinks]{hyperref}
%\usepackage[all]{xy}
%\usepackage{mathtools}
% Programming facilities for LaTeX class and package authors
\usepackage{etoolbox}
% Indent first paragraph of every 'chapter' aka section
\usepackage{indentfirst}
% Title formatting option. [explicit] = make titles all caps
\usepackage[explicit]{titlesec}
% Standard package for selecting font encodings. [T1] = Support for accented characters
\usepackage[T1]{fontenc}
% Charter fonts
\usepackage{charter}
%\usepackage[expert]{mathdesign}
% Control table of contents, figures, etc
\usepackage{tocloft}
% Set space between lines. [option] = Double/single spacing necessary for properly formatting ToC/LoFT and titles.
\usepackage[doublespacing]{setspace}
% Create normal/logarithmic plots in two and three dimensions
\usepackage{pgfplots}
% Request a specific version
\pgfplotsset{compat=1.5}
\newcommand\scalemath[2]{\scalebox{#1}{\mbox{\ensuremath{\displaystyle #2}}}}
% Modify section headers (aka chapters) to be: centered, single space, large, bold, preceded with the word 'CHAPTER 'and with 0.4 em of space before title
\titleformat{\section}[block]{\centering\singlespace\large\bf}{CHAPTER \thesection \hspace{0.4em} \MakeUppercase{#1}}{0em}{}{}
% Modify unnumbered section headers (aka chapters) to be: centered, single space, large, bold, preceded with the word 'CHAPTER 'and with 0.4 em of space before title
% We use unnumbered section headers for Acknowledgements, Dedication, Bio, etc. for consistency
\titleformat{name=\section,numberless}[block]{\centering\singlespace\large\bf}{\hspace{0.4em} \MakeUppercase{#1}}{0em}{}{}
% Remove spacing left of, above, and below sections and subsections
%\titlespacing{command}{left spacing}{before spacing}{after spacing}[right]
\titlespacing{\section}{0pt}{0pt}{0pt}
\titlespacing{\subsection}{0pt}{0pt}{0pt}
\titlespacing{\subsubsection}{0pt}{0pt}{0pt}
% Modify TOC entries with tocloft: insert the word 'Chapter ' and then add 6em of space after the word
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsecpresnum}{Chapter }
\cftsetindents{section}{0em}{6em}
% Call the other parts of the document 'part' and make the table of contents print them correctly
\renewcommand{\cftpartfont}{}
\renewcommand{\cftpartpagefont}{}
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftbeforepartskip}{0em}
\renewcommand{\cftpartindent}{1.5em}
% Change spacing above chapters in toc, remembering that they are really sections
\setlength{\cftbeforesecskip}{0em}
% Adds space after ToC entries to make them appear double-spaced
\renewcommand\cftsecafterpnum{\vskip\baselineskip}
\renewcommand\cftsubsecafterpnum{\vskip\baselineskip}
\renewcommand\cftsubsubsecafterpnum{\vskip\baselineskip}
\renewcommand\cftpartafterpnum{\vskip\baselineskip}
% Add space after LoF entries to make them appear double-spaced
\renewcommand\cftfigafterpnum{\vskip\baselineskip}
% Add space after LoT entries to make them appear double-spaced
\renewcommand\cfttabafterpnum{\vskip\baselineskip}
% Remove extra space above and below theorems, lemmas, props, etc. The important point in the following is: 0pt preskip and 0pt postskip
\makeatletter
\def\thm@space@setup{\thm@preskip=0pt
\thm@postskip=0pt}
\makeatother
\newtheoremstyle{newstyle}
{} % Aboveskip
{} % Below skip
{\mdseries} % Body font e.g.\mdseries,\bfseries,\scshape,\itshape
{} % Indent
{\bfseries} % Head font e.g.\bfseries,\scshape,\itshape
{.} % Punctuation afer theorem header
{ } % Space after theorem header
{} % Heading
% The above does not fix the spacing around proof environments; use the following to fix: The crucial point is "topsep0\p@", i.e., topsep = 0 pt. The rest is essentially copied from the standard AMS environment.
\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
\pushQED{\qed}%
\normalfont \topsep0\p@\relax
\trivlist
\item[\hskip\labelsep\itshape
#1\@addpunct{.}]\ignorespaces
}{
\popQED\endtrivlist\@endpefalse
}
\makeatother
% Remove default "References" text from \bibliography call
% Removing this code will cause "References" to appear twice in the bibliography: once for the \thebibliography call and once for the \section*{References} call
\patchcmd{\thebibliography}{\section*{\refname}}{}{}{}
% Remove spacing between bibliography entries
% Set "OLDthebibliography" to be "thebibliography"
\let\OLDthebibliography\thebibliography
% Renew command with 0pt spacing for paragraph and item separation
\renewcommand\thebibliography[1]{
\OLDthebibliography{#1}
\setlength{\parskip}{0pt}
\setlength{\itemsep}{0pt plus 0.3ex}
}
% Formatting
\usepackage[left=1in,right=1in, top=1in, bottom=1in]{geometry}
% \arraystretch = the FACTOR for spacing between two rows (Default = 1)
\renewcommand{\arraystretch}{0.85}
% \baselinestretch = The spacing between lines in a document (used for "double spacing")
\renewcommand{\baselinestretch}{2}
% \headrulewidth = "The thickness of a line under the header and above the footer"
\renewcommand{\headrulewidth}{0pt}
% Define the StarTeX mathematical symbol
\newcommand{\Mdef}[2]{\newcommand{#1}{\relax \ifmmode #2 \else $#2$\fi}}
% Spacing commands, which may or may not be used in the following.
\newcommand{\one}{{\rm \bf1}\hspace*{-0.035in} {\rm l}}
\newcommand{\nd}{\noindent}
\def\para#1{\vskip 0.4\baselineskip\noindent{\bf #1}}
\newcommand{\Vspc}{\vspace*{0.1in}}
\newcommand{\ID}{\index}
\makeatletter \@addtoreset{equation}{section} \makeatother
% Section Labeling
\renewcommand{\thesection}{\arabic{section}}
% Equation Numbering Ex. Section 3, Equation 2 = Equation 3.2
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\renewcommand{\cftsecfont}{}
\renewcommand{\cftsecpagefont}{}
% List of Tables edits
\renewcommand{\cfttabpresnum}{Table }
\renewcommand{\cfttabindent}{1.0em}
\renewcommand{\cfttabnumwidth}{5.0em}
% List of Figures edits
\renewcommand{\cftfigpresnum}{Figure }
\renewcommand{\cftfigindent}{1.0em}
\renewcommand{\cftfignumwidth}{5.5em}
% Start document
\begin{document}
% Compile the title and jump to new page
\input{title}
\newpage
% Begin roman numbering starting with page 2
% WSU formatting requires: No pg number on title, pg numbering begins with page 2, pg numbering begins in roman numerals
\pagestyle{fancy} \chead{} \rhead{} \lhead{}
\pagenumbering{roman} \lfoot{}\cfoot{\thepage}\rfoot{}
\setcounter{page}{2}
% Compile dedication page
\phantomsection
\input{dedication}
\newpage
% Compile acknowledgements page
\phantomsection
\input{acknowledgements}
\newpage
% Enter single spacing environment for toc, lot, and lof (see below)
\begin{singlespace}
% Create Table of Contents (toc)
\renewcommand{\contentsname}{\hfill\large TABLE OF CONTENTS \hfill}
\tableofcontents
\newpage
% Create List of Tables (lot)
\phantomsection
\addcontentsline{toc}{section}{List of Tables}
% Add lot to toc
\renewcommand{\listtablename}{\hfill\large LIST OF TABLES \hfill}
\listoftables
\newpage
% Create List of Figures (lof)
\phantomsection
\addcontentsline{toc}{section}{List of Figures}
% Add lof to toc
\renewcommand{\listfigurename}{\hfill\large LIST OF FIGURES \hfill}
\listoffigures
% Exit single spacing environment for remaining contents
\end{singlespace}
\clearpage
% Begin arabic page numbering
% WSU formatting requires: content page numbering is arabic
\pagestyle{fancy} \chead{\thepage} \rhead{} \lhead{}
\pagenumbering{arabic} \lfoot{}\cfoot{}\rfoot{}
\setcounter{equation}{0}
% Compile Chapter 1
\input{chapter1}
\clearpage
% Compile Chapter 2
\input{chapter2}
\clearpage
% ...
% Compile Chapter N
\input{chapterN}
\clearpage
% Compile Appendix A
\phantomsection
\input{appendixA}
\clearpage
% Compile Appendix B
\phantomsection
\input{appendixB}
\clearpage
% ...
% Compile Appendix Z
\phantomsection
\input{appendixZ}
\clearpage
% Compile bibliography
\phantomsection
\input{bibliography}
\clearpage
% Compile abstract
\phantomsection
\input{abstract}
\clearpage
% Compile autobiographical statement
\phantomsection
\input{autobiographicalStatement}
\end{document}