source: doc/theses/rob_schluntz_MMath/thesis.tex @ f6d2e9b

Last change on this file since f6d2e9b was 67982887, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

specialize thesis directory-names

  • Property mode set to 100644
File size: 14.4 KB
RevLine 
[9c14ae9]1% uWaterloo Thesis Template for LaTeX
2% Last Updated May 24, 2011 by Stephen Carr, IST Client Services
3% FOR ASSISTANCE, please send mail to rt-IST-CSmathsci@ist.uwaterloo.ca
4
5% Effective October 2006, the University of Waterloo
6% requires electronic thesis submission. See the uWaterloo thesis regulations at
7% http://www.grad.uwaterloo.ca/Thesis_Regs/thesistofc.asp.
8
9% DON'T FORGET TO ADD YOUR OWN NAME AND TITLE in the "hyperref" package
10% configuration below. THIS INFORMATION GETS EMBEDDED IN THE PDF FINAL PDF DOCUMENT.
11% You can view the information if you view Properties of the PDF document.
12
13% Many faculties/departments also require one or more printed
14% copies. This template attempts to satisfy both types of output.
15% It is based on the standard "book" document class which provides all necessary
16% sectioning structures and allows multi-part theses.
17
18% DISCLAIMER
19% To the best of our knowledge, this template satisfies the current uWaterloo requirements.
20% However, it is your responsibility to assure that you have met all
21% requirements of the University and your particular department.
22% Many thanks to the feedback from many graduates that assisted the development of this template.
23
24% -----------------------------------------------------------------------
25
26% By default, output is produced that is geared toward generating a PDF
27% version optimized for viewing on an electronic display, including
28% hyperlinks within the PDF.
29
30% E.g. to process a thesis called "mythesis.tex" based on this template, run:
31
32% pdflatex mythesis     -- first pass of the pdflatex processor
33% bibtex mythesis       -- generates bibliography from .bib data file(s)
34% pdflatex mythesis     -- fixes cross-references, bibliographic references, etc
35% pdflatex mythesis     -- fixes cross-references, bibliographic references, etc
36
37% If you use the recommended LaTeX editor, Texmaker, you would open the mythesis.tex
38% file, then click the pdflatex button. Then run BibTeX (under the Tools menu).
39% Then click the pdflatex button two more times. If you have an index as well,
40% you'll need to run MakeIndex from the Tools menu as well, before running pdflatex
41% the last two times.
42
43% N.B. The "pdftex" program allows graphics in the following formats to be
44% included with the "\includegraphics" command: PNG, PDF, JPEG, TIFF
45% Tip 1: Generate your figures and photos in the size you want them to appear
46% in your thesis, rather than scaling them with \includegraphics options.
47% Tip 2: Any drawings you do should be in scalable vector graphic formats:
48% SVG, PNG, WMF, EPS and then converted to PNG or PDF, so they are scalable in
49% the final PDF as well.
50% Tip 3: Photographs should be cropped and compressed so as not to be too large.
51
52% To create a PDF output that is optimized for double-sided printing:
53%
54% 1) comment-out the \documentclass statement in the preamble below, and
55% un-comment the second \documentclass line.
56%
57% 2) change the value assigned below to the boolean variable
58% "PrintVersion" from "false" to "true".
59
60% --------------------- Start of Document Preamble -----------------------
61
62% Specify the document class, default style attributes, and page dimensions
63% For hyperlinked PDF, suitable for viewing on a computer, use this:
64\PassOptionsToPackage{
65dvipsnames
66% ,monochrome % toggle black and white mode
67}{xcolor}
[ade20d0]68\PassOptionsToPackage{pdftex}{graphicx}
[9c14ae9]69\documentclass[letterpaper,12pt,titlepage,oneside,final]{book}
70
[f92aa32]71% For PDF, suitable for double-sided printing, change the PrintVersion variable below
72% to "true" and use this \documentclass line instead of the one above:
73% \documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}
74
[9c14ae9]75\usepackage[T1]{fontenc}                                % allow Latin1 (extended ASCII) characters
76\usepackage{textcomp}
77% \usepackage[utf8]{inputenc}
[7493339]78% \usepackage[latin1]{inputenc}
[9c14ae9]79\usepackage{fullpage,times,comment}
80% \usepackage{epic,eepic}
81\usepackage{upquote}                                    % switch curled `'" to straight
82% \usepackage{calc}
83\usepackage{xspace}
84% \usepackage{graphicx}
85\usepackage{varioref}                                   % extended references
86\usepackage{listings}                                   % format program code
87% \usepackage[flushmargin]{footmisc}                      % support label/reference in footnote
88% \usepackage{latexsym}                                   % \Box glyph
89% \usepackage{mathptmx}                                   % better math font with "times"
90% \usepackage[usenames]{color}
91% \usepackage[pagewise]{lineno}
92% \renewcommand{\linenumberfont}{\scriptsize\sffamily}
93\usepackage{courier}
94\input{common}                                          % bespoke macros used in the document
95
96\usepackage{bigfoot}
97
98\interfootnotelinepenalty=10000
99
100% Some LaTeX commands I define for my own nomenclature.
101% If you have to, it's better to change nomenclature once here than in a
102% million places throughout your thesis!
103\newcommand{\package}[1]{\textbf{#1}} % package names in bold text
104\newcommand{\cmmd}[1]{\textbackslash\texttt{#1}} % command name in tt font
105\newcommand{\href}[1]{#1} % does nothing, but defines the command so the
106    % print-optimized version will ignore \href tags (redefined by hyperref pkg).
107%\newcommand{\texorpdfstring}[2]{#1} % does nothing, but defines the command
108% Anything defined here may be redefined by packages added below...
109
110% This package allows if-then-else control structures.
111\usepackage{ifthen}
112\newboolean{PrintVersion}
113\setboolean{PrintVersion}{false}
114% CHANGE THIS VALUE TO "true" as necessary, to improve printed results for hard copies
115% by overriding some options of the hyperref package below.
116
117%\usepackage{nomencl} % For a nomenclature (optional; available from ctan.org)
118\usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments
119\usepackage[pdftex]{graphicx} % For including graphics N.B. pdftex graphics driver
120
[12d3187]121\usepackage{xcolor}
122\usepackage{listings}
123
[9c14ae9]124\input{cfa-format.tex}
125
126% Hyperlinks make it very easy to navigate an electronic document.
127% In addition, this is where you should specify the thesis title
128% and author as they appear in the properties of the PDF document.
129% Use the "hyperref" package
130% N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE
131\usepackage[pdftex,letterpaper=true,pagebackref=false]{hyperref} % with basic options
132                % N.B. pagebackref=true provides links back from the References to the body text. This can cause trouble for printing.
133\hypersetup{
134    plainpages=false,       % needed if Roman numbers in frontpages
135    pdfpagelabels=true,     % adds page number as label in Acrobat's page count
136    bookmarks=true,         % show bookmarks bar?
[ea5023c]137    unicode=false,          % non-Latin characters in Acrobat's bookmarks
138    pdftoolbar=true,        % show Acrobat's toolbar?
139    pdfmenubar=true,        % show Acrobat's menu?
[9c14ae9]140    pdffitwindow=false,     % window fit to page when opened
141    pdfstartview={FitH},    % fits the width of the page to the window
[0111dc7]142    pdftitle={Resource Management and Tuples in \CFA},    % title: CHANGE THIS TEXT!
[9c14ae9]143    pdfauthor={Rob Schluntz},    % author: CHANGE THIS TEXT! and uncomment this line
[12d3187]144    pdfsubject={Programming Languages}% subject: CHANGE THIS TEXT! and uncomment this line
[9c14ae9]145%    pdfkeywords={keyword1} {key2} {key3}, % list of keywords, and uncomment this line if desired
146    pdfnewwindow=true,      % links in new window
147    colorlinks=true,        % false: boxed links; true: colored links
148    linkcolor=blue,         % color of internal links
149    citecolor=green,        % color of links to bibliography
150    filecolor=magenta,      % color of file links
151    urlcolor=cyan           % color of external links
152}
153\ifthenelse{\boolean{PrintVersion}}{   % for improved print quality, change some hyperref options
154\hypersetup{    % override some previously defined hyperref options
155%    colorlinks,%
156    citecolor=black,%
157    filecolor=black,%
158    linkcolor=black,%
159    urlcolor=black}
160}{} % end of ifthenelse (no else)
161
162% Setting up the page margins...
163% uWaterloo thesis requirements specify a minimum of 1 inch (72pt) margin at the
164% top, bottom, and outside page edges and a 1.125 in. (81pt) gutter
165% margin (on binding side). While this is not an issue for electronic
166% viewing, a PDF may be printed, and so we have the same page layout for
167% both printed and electronic versions, we leave the gutter margin in.
168% Set margins to minimum permitted by uWaterloo thesis regulations:
169\setlength{\marginparwidth}{0pt} % width of margin notes
170% N.B. If margin notes are used, you must adjust \textwidth, \marginparwidth
171% and \marginparsep so that the space left between the margin notes and page
172% edge is less than 15 mm (0.6 in.)
173\setlength{\marginparsep}{0pt} % width of space between body text and margin notes
174\setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all
175% even-numbered pages when the "twoside" printing option is selected
176\setlength{\oddsidemargin}{0.125in} % Adds 1/8 in. to the left of all pages
177% when "oneside" printing is selected, and to the left of all odd-numbered
178% pages when "twoside" printing is selected
179\setlength{\textwidth}{6.375in} % assuming US letter paper (8.5 in. x 11 in.) and
180% side margins as above
181\raggedbottom
182
183% The following statement specifies the amount of space between
184% paragraphs. Other reasonable specifications are \bigskipamount and \smallskipamount.
185\setlength{\parskip}{\medskipamount}
186
187% The following statement controls the line spacing.  The default
188% spacing corresponds to good typographic conventions and only slight
189% changes (e.g., perhaps "1.2"), if any, should be made.
190\renewcommand{\baselinestretch}{1} % this is the default line space setting
191
192% By default, each chapter will start on a recto (right-hand side)
193% page.  We also force each section of the front pages to start on
194% a recto page by inserting \cleardoublepage commands.
195% In many cases, this will require that the verso page be
196% blank and, while it should be counted, a page number should not be
197% printed.  The following statements ensure a page number is not
198% printed on an otherwise blank verso page.
199\let\origdoublepage\cleardoublepage
200\newcommand{\clearemptydoublepage}{%
201  \clearpage{\pagestyle{empty}\origdoublepage}}
202\let\cleardoublepage\clearemptydoublepage
203
204%======================================================================
205%   L O G I C A L    D O C U M E N T -- the content of your thesis
206%======================================================================
207\begin{document}
208
209% For a large document, it is a good idea to divide your thesis
210% into several files, each one containing one chapter.
211% To illustrate this idea, the "front pages" (i.e., title page,
212% declaration, borrowers' page, abstract, acknowledgements,
213% dedication, table of contents, list of tables, list of figures,
214% nomenclature) are contained within the file "thesis-frontpgs.tex" which is
215% included into the document by the following statement.
216%----------------------------------------------------------------------
217% FRONT MATERIAL
218%----------------------------------------------------------------------
219\input{thesis-frontpgs}
220
221%----------------------------------------------------------------------
222% MAIN BODY
223%----------------------------------------------------------------------
224
225\input{intro}
226
227\input{ctordtor}
228
229\input{tuples}
230
[7493339]231\input{variadic}
232
[9c14ae9]233\input{conclusions}
234
235% The \appendix statement indicates the beginning of the appendices.
236% \appendix
237
238% % Add a title page before the appendices and a line in the Table of Contents
239% \chapter*{APPENDICES}
240% \addcontentsline{toc}{chapter}{APPENDICES}
241% %======================================================================
242% \chapter[PDF Plots From Matlab]{Matlab Code for Making a PDF Plot}
243% \label{AppendixA}
244% % Tip 4: Example of how to get a shorter chapter title for the Table of Contents
245% %======================================================================
246% \section{Using the GUI}
247% Properties of Matab plots can be adjusted from the plot window via a graphical interface. Under the Desktop menu in the Figure window, select the Property Editor. You may also want to check the Plot Browser and Figure Palette for more tools. To adjust properties of the axes, look under the Edit menu and select Axes Properties.
248
249% To set the figure size and to save as PDF or other file formats, click the Export Setup button in the figure Property Editor.
250
251% \section{From the Command Line}
252% All figure properties can also be manipulated from the command line. Here's an example:
253% \begin{verbatim}
254% x=[0:0.1:pi];
255% hold on % Plot multiple traces on one figure
256% plot(x,sin(x))
257% plot(x,cos(x),'--r')
258% plot(x,tan(x),'.-g')
259% title('Some Trig Functions Over 0 to \pi') % Note LaTeX markup!
260% legend('{\it sin}(x)','{\it cos}(x)','{\it tan}(x)')
261% hold off
262% set(gca,'Ylim',[-3 3]) % Adjust Y limits of "current axes"
263% set(gcf,'Units','inches') % Set figure size units of "current figure"
264% set(gcf,'Position',[0,0,6,4]) % Set figure width (6 in.) and height (4 in.)
265% cd n:\thesis\plots % Select where to save
266% print -dpdf plot.pdf % Save as PDF
267% \end{verbatim}
268
269%----------------------------------------------------------------------
270% END MATERIAL
271%----------------------------------------------------------------------
272
273% B I B L I O G R A P H Y
274% -----------------------
275
276% The following statement selects the style to use for references.  It controls the sort order of the entries in the bibliography and also the formatting for the in-text labels.
277\bibliographystyle{plain}
278% This specifies the location of the file containing the bibliographic information.
279% It assumes you're using BibTeX (if not, why not?).
280\cleardoublepage % This is needed if the book class is used, to place the anchor in the correct page,
281                 % because the bibliography will start on its own page.
282                 % Use \clearpage instead if the document class uses the "oneside" argument
283\phantomsection  % With hyperref package, enables hyperlinking from the table of contents to bibliography
284% The following statement causes the title "References" to be used for the bibliography section:
285\renewcommand*{\bibname}{References}
286
287% Add the References to the Table of Contents
288\addcontentsline{toc}{chapter}{\textbf{References}}
289
[23c27039]290\bibliography{pl,thesis}
[9c14ae9]291% Tip 5: You can create multiple .bib files to organize your references.
292% Just list them all in the \bibliogaphy command, separated by commas (no spaces).
293
294% The following statement causes the specified references to be added to the bibliography% even if they were not
295% cited in the text. The asterisk is a wildcard that causes all entries in the bibliographic database to be included (optional).
296% \nocite{*}
297
298\end{document}
Note: See TracBrowser for help on using the repository browser.