source: doc/theses/aaron_moss_PhD/phd/thesis.tex @ 3b40801b

aaron-thesisarm-ehcleanup-dtorsjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-expr
Last change on this file since 3b40801b was 3b40801b, checked in by Aaron Moss <a3moss@…>, 3 years ago

thesis: add changebars

  • Property mode set to 100644
File size: 7.6 KB
Line 
1% Specify the document class, default style attributes, and page dimensions
2% For hyperlinked PDF, suitable for viewing on a computer, use this:
3\documentclass[letterpaper,12pt,titlepage,oneside,final]{book}
4
5% For PDF, suitable for double-sided printing, change the PrintVersion variable below
6% to "true" and use this \documentclass line instead of the one above:
7%\documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}
8
9% common macros for this thesis
10\input{macros}
11
12\newcommand{\href}[1]{#1} % does nothing, but defines the command so the
13% print-optimized version will ignore \href tags (redefined by hyperref pkg).
14
15% This package allows if-then-else control structures.
16\usepackage{ifthen}
17\newboolean{PrintVersion}
18\setboolean{PrintVersion}{false} 
19% CHANGE THIS VALUE TO "true" as necessary, to improve printed results for hard copies
20% by overriding some options of the hyperref package below.
21
22\usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments
23% \usepackage[pdftex]{graphicx} % For including graphics N.B. pdftex graphics driver
24\usepackage{graphicx}
25
26\usepackage{amsthm} % for theorem environment
27\newtheorem{theorem}{Theorem}
28
29\usepackage{footmisc} % for double refs to the same footnote
30
31\usepackage{caption} % for subfigure
32\usepackage{subcaption}
33
34\usepackage[color]{changebar}
35\cbcolor{blue}
36
37% Hyperlinks make it very easy to navigate an electronic document.
38% In addition, this is where you should specify the thesis title
39% and author as they appear in the properties of the PDF document.
40% Use the "hyperref" package
41% N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE
42%\usepackage[pdftex,pagebackref=false]{hyperref} % with basic options\
43\usepackage[breaklinks,pagebackref=false]{hyperref}
44% N.B. pagebackref=true provides links back from the References to the body text. This can cause trouble for printing.
45
46\hypersetup{
47        plainpages=false,       % needed if Roman numbers in frontpages
48        unicode=false,          % non-Latin characters in Acrobat’s bookmarks
49        pdftoolbar=true,        % show Acrobat’s toolbar?
50        pdfmenubar=true,        % show Acrobat’s menu?
51        pdffitwindow=false,     % window fit to page when opened
52        pdfstartview={FitH},    % fits the width of the page to the window
53        pdftitle={Cforall\ Type\ System\ Implementation},    % title
54    pdfauthor={Aaron\ Moss}, % author
55    pdfsubject={Cforall}% subject
56%    pdfkeywords={keyword1} {key2} {key3}, % list of keywords, and uncomment this line if desired
57        pdfnewwindow=true,      % links in new window
58        colorlinks=true,        % false: boxed links; true: colored links
59        linkcolor=blue,         % color of internal links
60        citecolor=green,        % color of links to bibliography
61        filecolor=magenta,      % color of file links
62        urlcolor=cyan           % color of external links
63}
64\ifthenelse{\boolean{PrintVersion}}{   % for improved print quality, change some hyperref options
65\hypersetup{    % override some previously defined hyperref options
66%    colorlinks,%
67        citecolor=black,%
68        filecolor=black,%
69        linkcolor=black,%
70        urlcolor=black}
71}{} % end of ifthenelse (no else)
72
73\input{cfa-macros} % must be loaded after hyperref
74
75% \usepackage[automake,toc,abbreviations]{glossaries-extra} % Exception to the rule of hyperref being the last add-on package
76
77% Setting up the page margins...
78% uWaterloo thesis requirements specify a minimum of 1 inch (72pt) margin at the
79% top, bottom, and outside page edges and a 1.125 in. (81pt) gutter
80% margin (on binding side). While this is not an issue for electronic
81% viewing, a PDF may be printed, and so we have the same page layout for
82% both printed and electronic versions, we leave the gutter margin in.
83% Set margins to minimum permitted by uWaterloo thesis regulations:
84\setlength{\marginparwidth}{0pt} % width of margin notes
85% N.B. If margin notes are used, you must adjust \textwidth, \marginparwidth
86% and \marginparsep so that the space left between the margin notes and page
87% edge is less than 15 mm (0.6 in.)
88\setlength{\marginparsep}{0pt} % width of space between body text and margin notes
89\setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all
90% even-numbered pages when the "twoside" printing option is selected
91\setlength{\oddsidemargin}{0.125in} % Adds 1/8 in. to the left of all pages
92% when "oneside" printing is selected, and to the left of all odd-numbered
93% pages when "twoside" printing is selected
94\setlength{\textwidth}{6.375in} % assuming US letter paper (8.5 in. x 11 in.) and
95% side margins as above
96\raggedbottom
97
98% The following statement specifies the amount of space between
99% paragraphs. Other reasonable specifications are \bigskipamount and \smallskipamount.
100\setlength{\parskip}{\medskipamount}
101
102% The following statement controls the line spacing.  The default
103% spacing corresponds to good typographic conventions and only slight
104% changes (e.g., perhaps "1.2"), if any, should be made.
105\renewcommand{\baselinestretch}{1} % this is the default line space setting
106
107% By default, each chapter will start on a recto (right-hand side)
108% page.  We also force each section of the front pages to start on
109% a recto page by inserting \cleardoublepage commands.
110% In many cases, this will require that the verso page be
111% blank and, while it should be counted, a page number should not be
112% printed.  The following statements ensure a page number is not
113% printed on an otherwise blank verso page.
114\let\origdoublepage\cleardoublepage
115\newcommand{\clearemptydoublepage}{%
116  \clearpage{\pagestyle{empty}\origdoublepage}}
117\let\cleardoublepage\clearemptydoublepage
118
119%======================================================================
120%   L O G I C A L    D O C U M E N T
121%======================================================================
122\begin{document}
123
124%----------------------------------------------------------------------
125% FRONT MATERIAL
126%----------------------------------------------------------------------
127\input{frontpgs}
128
129%----------------------------------------------------------------------
130% MAIN BODY
131%----------------------------------------------------------------------
132\input{introduction}
133\input{background}
134\input{generic-types}
135\input{resolution-heuristics}
136\input{type-environment}
137\input{experiments}
138\input{conclusion}
139
140% B I B L I O G R A P H Y
141% -----------------------
142
143% 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.
144\bibliographystyle{plain}
145% This specifies the location of the file containing the bibliographic information. 
146% It assumes you're using BibTeX (if not, why not?).
147\cleardoublepage % This is needed if the book class is used, to place the anchor in the correct page,
148                 % because the bibliography will start on its own page.
149                 % Use \clearpage instead if the document class uses the "oneside" argument
150\phantomsection  % With hyperref package, enables hyperlinking from the table of contents to bibliography             
151% The following statement causes the title "References" to be used for the bibliography section:
152\renewcommand*{\bibname}{References}
153
154% Add the References to the Table of Contents
155\addcontentsline{toc}{chapter}{\textbf{References}}
156
157\bibliography{pl}
158% Tip 5: You can create multiple .bib files to organize your references.
159% Just list them all in the \bibliogaphy command, separated by commas (no spaces).
160
161% The following statement causes the specified references to be added to the bibliography% even if they were not
162% cited in the text. The asterisk is a wildcard that causes all entries in the bibliographic database to be included (optional).
163% \nocite{*}
164
165% APPENDICIES
166% -----------
167\appendix
168\input{generic-bench}
169
170\end{document}
Note: See TracBrowser for help on using the repository browser.