-
Notifications
You must be signed in to change notification settings - Fork 10
/
thesis.tex
256 lines (189 loc) · 8.82 KB
/
thesis.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
% ****************************************************************************************** % Dissertation template and document class for Princeton University
% Author : Jeffrey Scott Dwoskin <[email protected]>
% Adapted from: http://www.math.princeton.edu/graduate/tex/puthesis.html
% ****************************************************************************************** %
%%% For print copies
%% set 'singlespace' option to set entire thesis to single space, and define "\printmode" to remove all hyperlinks for printed copies of the thesis. Delete all output files before changing this mode -- it will turn hyperref package on and off
%\documentclass[12pt,lot, lof, singlespace]{puthesis}
%\newcommand{\printmode}{}
%%% For the electronic copy, use doublespacing, define "\proquestmode" to use outlined links, instead of colored links.
\documentclass[12pt,lot, lof]{puthesis}
\newcommand{\proquestmode}{}
% I prefer proquestmode to be off for electronic copies for normal use, since the colored links are less distracting. However when printed in black and white, the colored links are difficult to read.
%%% For early drafts without some of the frontmatter
% Also see the "ifodd" command below to disable more frontmatter
%\documentclass[12pt]{puthesis}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\
%%%% Author & title page info
\title{Dissertation Template for Princeton University}
\submitted{June 2010} % degree conferral date (January, April, June, September, or November)
\copyrightyear{2010} % year in which the copyright is secured by publication of the dissertation.
\author{First Middle Last}
\adviser{Professor Smith} %replace with the full name of your adviser
%\departmentprefix{Program in} % defaults to "Department of", but programs need to change this.
\department{Electrical Engineering}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\
%%%% Tweak float placements
% From: http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html "Controlling LaTeX Floats"
% and based on: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=floats
% LaTeX defaults listed at: http://people.cs.uu.nl/piet/floats/node1.html
% Alter some LaTeX defaults for better treatment of figures:
% See p.105 of "TeX Unbound" for suggested values.
% See pp. 199-200 of Lamport's "LaTeX" book for details.
% General parameters, for ALL pages:
\renewcommand{\topfraction}{0.85} % max fraction of floats at top
\renewcommand{\bottomfraction}{0.6} % max fraction of floats at bottom
% Parameters for TEXT pages (not float pages):
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4} % 2 may work better
\setcounter{dbltopnumber}{2} % for 2-column pages
\renewcommand{\dbltopfraction}{0.66} % fit big float above 2-col. text
\renewcommand{\textfraction}{0.15} % allow minimal text w. figs
% Parameters for FLOAT pages (not text pages):
\renewcommand{\floatpagefraction}{0.66} % require fuller float pages
% N.B.: floatpagefraction MUST be less than topfraction !!
\renewcommand{\dblfloatpagefraction}{0.66} % require fuller float pages
% The documentclass already sets parameters to make a high penalty for widows and orphans.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\
%%%% Use packages
%\usepackage{amsfonts}
%%% For figures
\usepackage{graphicx}
%\usepackage{subfig,rotate}
%%% for comments
\usepackage{verbatim}
%%% For tables
\usepackage{multirow}
% Longtable lets you have tables that span multiple pages.
\usepackage{longtable}
% Booktabs produces far nicer tables than the standard LaTeX tables.
% see: http://en.wikibooks.org/wiki/LaTeX/Tables
\usepackage{booktabs}
%set parameters for longtable:
% default caption width is 4in for longtable, but wider for normal tables
\setlength{\LTcapwidth}{\textwidth}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Printed vs. online formatting
\ifdefined\printmode
% Printed copy
% url package understands urls (with proper line-breaks) without hyperlinking them
\usepackage{url}
\else
\ifdefined\proquestmode
%ProQuest copy -- http://www.princeton.edu/~mudd/thesis/Submissionguide.pdf
% ProQuest requires a double spaced version (set previously). They will take an electronic copy, so we want links in the pdf, but also copies may be printed or made into microfilm in black and white, so we want outlined links instead of colored links.
\usepackage{hyperref}
\hypersetup{bookmarksnumbered}
% copy the already-set title and author to use in the pdf properties
\makeatletter
\hypersetup{pdftitle=\@title,pdfauthor=\@author}
\makeatother
\else
% Online copy
% adds internal linked references, pdf bookmarks, etc
% turn all references and citations into hyperlinks:
% -- not for printed copies
% -- automatically includes url package
% options:
% colorlinks makes links by coloring the text instead of putting a rectangle around the text.
\usepackage{hyperref}
\hypersetup{colorlinks,bookmarksnumbered}
% copy the already-set title and author to use in the pdf properties
\makeatletter
\hypersetup{pdftitle=\@title,pdfauthor=\@author}
\makeatother
% make the page number rather than the text be the link for ToC entries
%\hypersetup{linktocpage}
\fi % proquest or online formatting
\fi % printed or online formatting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\
%%%% Define commands
% Define any custom commands that you want to use.
% For example, highlight notes for future edits to the thesis
%\newcommand{\todo}[1]{\textbf{\emph{TODO:}#1}}
% create an environment that will indent text
% see: http://latex.computersci.org/Reference/ListEnvironments
% \raggedright makes them left aligned instead of justified
\newenvironment{indenttext}{
\begin{list}{}{ \itemsep 0in \itemindent 0in
\labelsep 0in \labelwidth 0in
\listparindent 0in
\topsep 0in \partopsep 0in \parskip 0in \parsep 0in
\leftmargin 1em \rightmargin 0in
\raggedright
}
\item
}
{\end{list}}
% another environment that's an indented list, with no spaces between items -- if we want multiple items/lines. Useful in tables. Use \item inside the environment.
% \raggedright makes them left aligned instead of justified
\newenvironment{indentlist}{
\begin{list}{}{ \itemsep 0in \itemindent 0in
\labelsep 0in \labelwidth 0in
\listparindent 0in
\topsep 0in \partopsep 0in \parskip 0in \parsep 0in
\leftmargin 1em \rightmargin 0in
\raggedright
}
}
{\end{list}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\
%%%% Front-matter
% For early drafts, you may want to disable some of the frontmatter. Simply change this to "\ifodd 1" to do so.
\ifodd 0
% front-matter disabled while writing chapters
\renewcommand{\maketitlepage}{}
\renewcommand*{\makecopyrightpage}{}
\renewcommand*{\makeabstract}{}
% you can just skip the \acknowledgements and \dedication commands to leave out these sections.
\else
\abstract{
% Abstract can be any length, but should be max 350 words for a Dissertation for ProQuest's print indicies (150 words for a Master's Thesis) or it will be truncated for those uses.
\input{abstract}
}
\acknowledgements{
%I would like to thank...
\input{acknowledgements}
}
\dedication{To my parents.}
\fi % disable frontmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\
%%%% Hide some chapters
%%% If you want to produce a pdf that includes only certain chapters, specify them with includeonly, in addition to including all chapters below.
%\includeonly{ch-intro/chapter-intro}
%%% You can also specify multiple chapters.
%\includeonly{ch-intro/chapter-intro,ch-usage/chapter-usage}
%\includeonly{chap1,chap2,chap3}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Notes:
% Footnotes should be placed after punctuation.\footnote{place here.}
% Generally, place citations before the period~\cite{anotherauthor}.
% The proper usage for i.e., and e.g., include commas ``(e.g., option A, option B)''
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Import chapters
\begin{document}
\makefrontmatter
% If you've disabled frontmatter, you can insert the toc manually
%\tableofcontents\clearpage
% \include lets us split up the document (and each include starts a new page):
\include{ch-intro/chapter-intro}
\include{ch-pastwork/chapter-pastwork}
\include{ch-usage/chapter-usage}
\include{ch-conclusion/chapter-conclusion}
\appendix % all chapters following will be labeled as appendices
\include{ch-appendicies/implementation}
\include{ch-appendicies/printing}
% Make the bibliography single spaced
\singlespacing
\bibliographystyle{plain}
% add the Bibliography to the Table of Contents
\cleardoublepage
\ifdefined\phantomsection
\phantomsection % makes hyperref recognize this section properly for pdf link
\else
\fi
\addcontentsline{toc}{chapter}{Bibliography}
% include your .bib file
\bibliography{thesis}
\end{document}