source: doc/theses/aaron_moss_PhD/phd/thesis.tex @ a72b240

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since a72b240 was a72b240, checked in by Aaron Moss <a3moss@…>, 5 years ago

switched thesis to use latex instead of pdflatex

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