source: doc/rob_thesis/thesis.tex @ b3d70eba

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since b3d70eba was 0111dc7, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

penultimate thesis draft

  • Property mode set to 100644
File size: 14.3 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}
68\documentclass[letterpaper,12pt,titlepage,oneside,final]{book}
69
[f92aa32]70% For PDF, suitable for double-sided printing, change the PrintVersion variable below
71% to "true" and use this \documentclass line instead of the one above:
72% \documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}
73
[9c14ae9]74\usepackage[T1]{fontenc}                                % allow Latin1 (extended ASCII) characters
75\usepackage{textcomp}
76% \usepackage[utf8]{inputenc}
[7493339]77% \usepackage[latin1]{inputenc}
[9c14ae9]78\usepackage{fullpage,times,comment}
79% \usepackage{epic,eepic}
80\usepackage{upquote}                                    % switch curled `'" to straight
81% \usepackage{calc}
82\usepackage{xspace}
83% \usepackage{graphicx}
84\usepackage{varioref}                                   % extended references
85\usepackage{listings}                                   % format program code
86% \usepackage[flushmargin]{footmisc}                      % support label/reference in footnote
87% \usepackage{latexsym}                                   % \Box glyph
88% \usepackage{mathptmx}                                   % better math font with "times"
89% \usepackage[usenames]{color}
90% \usepackage[pagewise]{lineno}
91% \renewcommand{\linenumberfont}{\scriptsize\sffamily}
92\usepackage{courier}
93\input{common}                                          % bespoke macros used in the document
94
95\usepackage{bigfoot}
96
97\interfootnotelinepenalty=10000
98
99% Some LaTeX commands I define for my own nomenclature.
100% If you have to, it's better to change nomenclature once here than in a
101% million places throughout your thesis!
102\newcommand{\package}[1]{\textbf{#1}} % package names in bold text
103\newcommand{\cmmd}[1]{\textbackslash\texttt{#1}} % command name in tt font
104\newcommand{\href}[1]{#1} % does nothing, but defines the command so the
105    % print-optimized version will ignore \href tags (redefined by hyperref pkg).
106%\newcommand{\texorpdfstring}[2]{#1} % does nothing, but defines the command
107% Anything defined here may be redefined by packages added below...
108
109% This package allows if-then-else control structures.
110\usepackage{ifthen}
111\newboolean{PrintVersion}
112\setboolean{PrintVersion}{false}
113% CHANGE THIS VALUE TO "true" as necessary, to improve printed results for hard copies
114% by overriding some options of the hyperref package below.
115
116%\usepackage{nomencl} % For a nomenclature (optional; available from ctan.org)
117\usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments
118\usepackage[pdftex]{graphicx} % For including graphics N.B. pdftex graphics driver
119
120\input{cfa-format.tex}
121
122% Hyperlinks make it very easy to navigate an electronic document.
123% In addition, this is where you should specify the thesis title
124% and author as they appear in the properties of the PDF document.
125% Use the "hyperref" package
126% N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE
127\usepackage[pdftex,letterpaper=true,pagebackref=false]{hyperref} % with basic options
128                % N.B. pagebackref=true provides links back from the References to the body text. This can cause trouble for printing.
129\hypersetup{
130    plainpages=false,       % needed if Roman numbers in frontpages
131    pdfpagelabels=true,     % adds page number as label in Acrobat's page count
132    bookmarks=true,         % show bookmarks bar?
133    unicode=false,          % non-Latin characters in Acrobat’s bookmarks
134    pdftoolbar=true,        % show Acrobat’s toolbar?
135    pdfmenubar=true,        % show Acrobat’s menu?
136    pdffitwindow=false,     % window fit to page when opened
137    pdfstartview={FitH},    % fits the width of the page to the window
[0111dc7]138    pdftitle={Resource Management and Tuples in \CFA},    % title: CHANGE THIS TEXT!
[9c14ae9]139    pdfauthor={Rob Schluntz},    % author: CHANGE THIS TEXT! and uncomment this line
140%    pdfsubject={Subject},  % subject: CHANGE THIS TEXT! and uncomment this line
141%    pdfkeywords={keyword1} {key2} {key3}, % list of keywords, and uncomment this line if desired
142    pdfnewwindow=true,      % links in new window
143    colorlinks=true,        % false: boxed links; true: colored links
144    linkcolor=blue,         % color of internal links
145    citecolor=green,        % color of links to bibliography
146    filecolor=magenta,      % color of file links
147    urlcolor=cyan           % color of external links
148}
149\ifthenelse{\boolean{PrintVersion}}{   % for improved print quality, change some hyperref options
150\hypersetup{    % override some previously defined hyperref options
151%    colorlinks,%
152    citecolor=black,%
153    filecolor=black,%
154    linkcolor=black,%
155    urlcolor=black}
156}{} % end of ifthenelse (no else)
157
158% Setting up the page margins...
159% uWaterloo thesis requirements specify a minimum of 1 inch (72pt) margin at the
160% top, bottom, and outside page edges and a 1.125 in. (81pt) gutter
161% margin (on binding side). While this is not an issue for electronic
162% viewing, a PDF may be printed, and so we have the same page layout for
163% both printed and electronic versions, we leave the gutter margin in.
164% Set margins to minimum permitted by uWaterloo thesis regulations:
165\setlength{\marginparwidth}{0pt} % width of margin notes
166% N.B. If margin notes are used, you must adjust \textwidth, \marginparwidth
167% and \marginparsep so that the space left between the margin notes and page
168% edge is less than 15 mm (0.6 in.)
169\setlength{\marginparsep}{0pt} % width of space between body text and margin notes
170\setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all
171% even-numbered pages when the "twoside" printing option is selected
172\setlength{\oddsidemargin}{0.125in} % Adds 1/8 in. to the left of all pages
173% when "oneside" printing is selected, and to the left of all odd-numbered
174% pages when "twoside" printing is selected
175\setlength{\textwidth}{6.375in} % assuming US letter paper (8.5 in. x 11 in.) and
176% side margins as above
177\raggedbottom
178
179% The following statement specifies the amount of space between
180% paragraphs. Other reasonable specifications are \bigskipamount and \smallskipamount.
181\setlength{\parskip}{\medskipamount}
182
183% The following statement controls the line spacing.  The default
184% spacing corresponds to good typographic conventions and only slight
185% changes (e.g., perhaps "1.2"), if any, should be made.
186\renewcommand{\baselinestretch}{1} % this is the default line space setting
187
188% By default, each chapter will start on a recto (right-hand side)
189% page.  We also force each section of the front pages to start on
190% a recto page by inserting \cleardoublepage commands.
191% In many cases, this will require that the verso page be
192% blank and, while it should be counted, a page number should not be
193% printed.  The following statements ensure a page number is not
194% printed on an otherwise blank verso page.
195\let\origdoublepage\cleardoublepage
196\newcommand{\clearemptydoublepage}{%
197  \clearpage{\pagestyle{empty}\origdoublepage}}
198\let\cleardoublepage\clearemptydoublepage
199
200%======================================================================
201%   L O G I C A L    D O C U M E N T -- the content of your thesis
202%======================================================================
203\begin{document}
204
205% For a large document, it is a good idea to divide your thesis
206% into several files, each one containing one chapter.
207% To illustrate this idea, the "front pages" (i.e., title page,
208% declaration, borrowers' page, abstract, acknowledgements,
209% dedication, table of contents, list of tables, list of figures,
210% nomenclature) are contained within the file "thesis-frontpgs.tex" which is
211% included into the document by the following statement.
212%----------------------------------------------------------------------
213% FRONT MATERIAL
214%----------------------------------------------------------------------
215\input{thesis-frontpgs}
216
217%----------------------------------------------------------------------
218% MAIN BODY
219%----------------------------------------------------------------------
220
221\input{intro}
222
223\input{ctordtor}
224
225\input{tuples}
226
[7493339]227\input{variadic}
228
[9c14ae9]229\input{conclusions}
230
231% The \appendix statement indicates the beginning of the appendices.
232% \appendix
233
234% % Add a title page before the appendices and a line in the Table of Contents
235% \chapter*{APPENDICES}
236% \addcontentsline{toc}{chapter}{APPENDICES}
237% %======================================================================
238% \chapter[PDF Plots From Matlab]{Matlab Code for Making a PDF Plot}
239% \label{AppendixA}
240% % Tip 4: Example of how to get a shorter chapter title for the Table of Contents
241% %======================================================================
242% \section{Using the GUI}
243% 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.
244
245% To set the figure size and to save as PDF or other file formats, click the Export Setup button in the figure Property Editor.
246
247% \section{From the Command Line}
248% All figure properties can also be manipulated from the command line. Here's an example:
249% \begin{verbatim}
250% x=[0:0.1:pi];
251% hold on % Plot multiple traces on one figure
252% plot(x,sin(x))
253% plot(x,cos(x),'--r')
254% plot(x,tan(x),'.-g')
255% title('Some Trig Functions Over 0 to \pi') % Note LaTeX markup!
256% legend('{\it sin}(x)','{\it cos}(x)','{\it tan}(x)')
257% hold off
258% set(gca,'Ylim',[-3 3]) % Adjust Y limits of "current axes"
259% set(gcf,'Units','inches') % Set figure size units of "current figure"
260% set(gcf,'Position',[0,0,6,4]) % Set figure width (6 in.) and height (4 in.)
261% cd n:\thesis\plots % Select where to save
262% print -dpdf plot.pdf % Save as PDF
263% \end{verbatim}
264
265%----------------------------------------------------------------------
266% END MATERIAL
267%----------------------------------------------------------------------
268
269% B I B L I O G R A P H Y
270% -----------------------
271
272% 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.
273\bibliographystyle{plain}
274% This specifies the location of the file containing the bibliographic information.
275% It assumes you're using BibTeX (if not, why not?).
276\cleardoublepage % This is needed if the book class is used, to place the anchor in the correct page,
277                 % because the bibliography will start on its own page.
278                 % Use \clearpage instead if the document class uses the "oneside" argument
279\phantomsection  % With hyperref package, enables hyperlinking from the table of contents to bibliography
280% The following statement causes the title "References" to be used for the bibliography section:
281\renewcommand*{\bibname}{References}
282
283% Add the References to the Table of Contents
284\addcontentsline{toc}{chapter}{\textbf{References}}
285
[7493339]286\bibliography{cfa,thesis}
[9c14ae9]287% Tip 5: You can create multiple .bib files to organize your references.
288% Just list them all in the \bibliogaphy command, separated by commas (no spaces).
289
290% The following statement causes the specified references to be added to the bibliography% even if they were not
291% cited in the text. The asterisk is a wildcard that causes all entries in the bibliographic database to be included (optional).
292% \nocite{*}
293
294\end{document}
Note: See TracBrowser for help on using the repository browser.