-
Notifications
You must be signed in to change notification settings - Fork 3
/
thesis.tex
executable file
·387 lines (328 loc) · 11.2 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
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
%
% UCSD Doctoral Dissertation Template
% -----------------------------------
% Fernando Serrano Paolo <fpaolo@ucsd.edu>
% Version 0 - Jun 1, 2015
%
%
% ----------------------------------------------------------------------
% WARNING:
%
% This template has not endorced by OGS or any other official entity.
% The official formatting guide can be obtained from OGS.
% It can be found on the web here:
% http://ogs.ucsd.edu/AcademicAffairs/Documents/Dissertations_Theses_Formatting_Manual.pdf
%
% No guaranty is made that this LaTeX class conforms to the official UCSD guidelines.
% Make sure that you check the final document against the Formatting Manual.
%
% That being said, this class has been routinely used for successful
% publication of doctoral theses.
%
% The ucsd.cls class files are only valid for doctoral dissertations.
%
%
% ----------------------------------------------------------------------
% GETTING STARTED:
%
% Lots of information can be found on the project wiki:
% http://code.google.com/p/ucsd-thesis/wiki/GettingStarted
%
%
% To make a pdf from this template use the command:
% pdflatex template
%
%
% To get started please read the comments in this template file
% and make changes as appropriate.
%
% If you successfully submit a thesis with this package please let us
% know.
%
%
% ----------------------------------------------------------------------
% KNOWN ISSUES:
%
% Currently only the 12pt size conforms to the UCSD requirements.
% The 10pt and 11pt options make the footnote fonts too small.
%
%
% ----------------------------------------------------------------------
% HELP/CONTACT:
%
% If you need help try the ucsd-thesis google group:
% http://groups.google.com/group/ucsd-thesis
%
%
% ----------------------------------------------------------------------
% BUGS:
%
% Please report all bugs at:
% http://code.google.com/p/ucsd-thesis/issues/list
%
%
% ----------------------------------------------------------------------
% More control of the formatting of your thesis can be achieved through
% modifications of the included LaTeX class files:
%
% * ucsd.cls -- Class file
% * uct10.clo -- Configuration files for font sizes 10pt, 11pt, 12pt
% uct11.clo
% uct12.clo
%
% ----------------------------------------------------------------------
% Setup the documentclass
% default options: 12pt, oneside, final
%
% fonts: 10pt, 11pt, 12pt -- are valid for UCSD dissertations.
% sides: oneside, twoside -- note that two-sided theses are not accepted
% by OGS.
% mode: draft, final -- draft mode switches to single spacing,
% removes hyperlinks, and places a black box
% at every overfull hbox (check these before
% submission).
% chapterheads -- Include this if you want your chapters to read:
% Chapter 1
% Title of Chapter
%
% instead of
% 1 Title of Chapter
\documentclass[12pt,chapterheads]{ucsd}
% Include all packages you need here.
% Some standard options are suggested below.
%
% See the project wiki for information on how to use
% these packages. Other useful packages are also listed there.
%
% http://code.google.com/p/ucsd-thesis/wiki/GettingStarted
%% MARGINS
\usepackage[
left=1.5in,
right=1in,
top=1in,
bottom=1.25in,
]{geometry}
%% LANGUAGE AND QUOTATION MARKS
% it fixes quotation marks: " " => `` ''
\usepackage [english]{babel}
\usepackage [autostyle, english=american]{csquotes}
\MakeOuterQuote{"}
%% MICROTYPE
\usepackage[
activate={true,nocompatibility},
final,
tracking=true,
kerning=true,
spacing=true,
factor=1100,
stretch=10,
shrink=10
]{microtype}
% activate={true,nocompatibility} - activate protrusion and expansion
% final - enable microtype; use "draft" to disable
% tracking=true, kerning=true, spacing=true - activate these techniques
% factor=1100 - add 10% to the protrusion amount (default is 1000)
% stretch=10, shrink=10 - reduce stretchability/shrinkability (default is 20/20)
% CHAPTERS AND SECTIONS
%\usepackage[]{titlesec}
%\titleformat{\chapter}{\normalfont\huge}{\thechapter.}{20pt}{\huge\it}
% FOOTNOTES - formatting the defaul footnotes (reverse indent and marging)
\makeatletter
\renewcommand\@makefntext[1]{\leftskip=2em\hskip-2em\@makefnmark#1} % 2em and -2em
\makeatother
%% AMS PACKAGES - Chances are you will want some or all
% of these if writing a dissertation that includes equations.
\usepackage{amsmath, amscd, amssymb, amsthm}
% Define a command \overbar, which reduces the width of \overline by 1.5mu on each side
\newcommand{\overbar}[1]{\mkern1.5mu\overline{\mkern-1.5mu#1\mkern-1.5mu}\mkern 1.5mu}
% Define a command \del, which reduces the spacing of \partial by 1.5mu on the right
\newcommand{\del}[1][]{\partial\mkern-1.5mu}
% Define a command \vect, for bold non-italic vector notation
\newcommand{\vect}[1]{\mathbf{#1}} % undergrad algebra version
%\newcommand{\vect}[1]{#1} % pure math version
%\newcommand{\vect}[1]{\bm{#1}} % ISO complying version
%% BOLD MATH
\usepackage{bm}
%% SYMBOLS
\usepackage{gensymb}
%% GRAPHICX - This is the standard package for
% including graphics for latex/pdflatex.
% use 'draft' to replace the figures with a black frame
\usepackage[final]{graphicx} % final | draft
%% SUBFIG - Use this to place multiple images in a
% single figure. Subfig will handle placement and
% proper captioning (e.g. Figure 1.2(a))
%\usepackage{subfig}
%% CAPTIONS - Use this to customized captions
\usepackage[font=footnotesize,labelfont=bf]{caption}
\usepackage[leftcaption,raggedright]{sidecap}
% the following format will be used to emulate the captions produced by fltpage
\DeclareCaptionLabelFormat{adja-page}{\hrulefill\\#1 #2 (\emph{previous page})}
%% TABLES
\usepackage{longtable}
%% FONTS - replacements for Computer Modern
% Times
% \usepackage[T1]{fontenc}
% \usepackage{mathptmx}
% Palatino
%\usepackage{mathpazo}
% Bitstream Charter
\usepackage[T1]{fontenc}
\usepackage[charter]{mathdesign} % w/math
% URLs with hyphenation
\usepackage[hyphens]{url}
\urlstyle{rm}
% DROP CAPS
\usepackage{lettrine}
%% INDEX
% Uncomment the following two lines to create an index:
% \usepackage{makeidx}
% \makeindex
% You will need to uncomment the \printindex line near the
% bibliography to display the index. Use the command
% \index{keyword}
% within the text to create an entry in the index for keyword.
% To compile a LaTeX document with an index the 'makeindex'
% command will need to be run. See the wiki for more details.
% BIBLIOGRAPHY - Set to be handled with LaTeX + BibLaTeX
\usepackage[
backend=bibtex,
style=authoryear,
%citestyle=authoryear,
%bibstyle=alpha,
maxnames=2,
firstinits=true,
uniquename=false,
isbn=false,
url=false,
doi=false,
eprint=false,
refsegment=chapter, % if using a global .bib file
%refsection=chapter, % if using multiple .bib files
]{biblatex}
% suppress 'field' from refs
\AtEveryBibitem{%
\clearfield{day}%
\clearfield{month}%
\clearfield{note}%
\clearfield{issue}%
\clearfield{number}%
\clearfield{series}%
}
% suppress 'pp.' before page number
\DeclareFieldFormat{pages}{#1}
% thin spaces between initials
\renewcommand*{\mkbibnamefirst}[1]{{\iffirstinits{\let~\,}{}#1}}
% suppres 'in:' for journal names
\renewbibmacro{in:}{%
\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}
% to use square brackets instead of parenthesis
\newrobustcmd*{\parentexttrack}[1]{%
\begingroup
\blx@blxinit
\blx@setsfcodes
\blx@bibopenparen#1\blx@bibcloseparen
\endgroup}
\AtEveryCite{%
\let\parentext=\parentexttrack%
\let\bibopenparen=\bibopenbracket%
\let\bibcloseparen=\bibclosebracket}
\DeclareCiteCommand{\citeyearpar}[\mkbibparens]
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\printfield{year}\printfield{extrayear}}
{\multicitedelim}
{\usebibmacro{postnote}}
% spacing between entries
\setlength{\bibitemsep}{.3cm}
%\setlength{\bibitemsep}{\baselineskip}
\bibliography{thesis} % global bibliography file
%% HYPERLINKS
% To create a PDF with hyperlinks, you need to include the hyperref package.
% THIS HAS TO BE THE LAST PACKAGE INCLUDED!
% Note that the options plainpages=false and pdfpagelabels exist
% to fix indexing associated with having both (ii) and (2) as pages.
% Also, all links must be black according to OGS.
% See: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=hyperdupdest
% Note: This may not work correctly with all DVI viewers (i.e. Yap breaks).
% NOTE: hyperref will NOT work in draft mode, as noted above.
% \usepackage[colorlinks=true, pdfstartview=FitV,
% linkcolor=black, citecolor=black,
% urlcolor=black, plainpages=false,
% pdfpagelabels]{hyperref}
% \hypersetup{ pdfauthor = {Your Name Here},
% pdftitle = {The Title of The Dissertation},
% pdfkeywords = {Keywords for Searching},
% pdfcreator = {pdfLaTeX with hyperref package},
% pdfproducer = {pdfLaTeX} }
\begin{document}
%% FRONT MATTER
%
% This includes the title, degree, dedication, vita, abstract, etc..
\include{frontmatter}
%% DISSERTATION
% A common strategy here is to include files for each of the chapters. I.e.,
% Place the chapters is separate files:
% chapter1.tex, chapter2.tex
% Then use the commands:
\include{chapter1}
\begingroup
\ssp
\printbibliography[segment=1,heading=subbibliography,maxnames=99]
\endgroup
%%
\include{chapter2}
\begingroup
\ssp
\printbibliography[segment=2,heading=subbibliography,maxnames=99]
\endgroup
%%
\include{chapter3}
\begingroup
\ssp
\printbibliography[segment=3,heading=subbibliography,maxnames=99]
\endgroup
\include{chapter4}
\begingroup
\ssp
\printbibliography[segment=4,heading=subbibliography,maxnames=99]
\endgroup
%
% Of course, if you prefer, you can just start with
% \chapter{My First Chapter Name}
% and start typing away.
%\chapter{Just a Test}
%This is only a test.
%\section{A section}
%Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla odio
%sem, bibendum ut, aliquam ac, facilisis id, tellus. Nam posuere pede
%sit amet ipsum. Etiam dolor. In sodales eros quis pede. Quisque sed
%nulla et ligula vulputate lacinia. In venenatis, ligula id semper
%feugiat, ligula odio adipiscing libero, eget mollis nunc erat id orci.
%Nullam ante dolor, rutrum eget, vestibulum euismod, pulvinar at, nibh.
%In sapien. Quisque ut arcu. Suspendisse potenti. Cras consequat cursus
%nulla.
%\subsection{More Stuff}
%Blah
%
%\begin{figure}[h]
% \centering
% *
% \caption{A figure of Vonnegut.\index{Vonnegut}}
%\end{figure}
%
%
%
%\appendix
%\chapter{Final notes}
% Remove me in case of abdominal pain.
%% END MATTER
% \printindex %% Uncomment to display the index
% \nocite{Shepherd2010} %% Put any references that you want to include in the bib
% but haven't cited in the braces.
% \bibliographystyle{alpha} %% This is just my personal favorite style.
% There are many others.
% \bibliography{myrefs} %% This looks for the bibliography in myrefs.bib
% which should be formatted as a bibtex file.
\end{document}