source: doc/theses/colby_parsons_MMAth/thesis.tex@ 3c17a10

ADT ast-experimental
Last change on this file since 3c17a10 was 3c17a10, checked in by caparsons <caparson@…>, 3 years ago

updated style to remove some 800-lb gorilla macros

  • Property mode set to 100644
File size: 5.7 KB
Line 
1% requires tex packages: texlive-base texlive-latex-base tex-common texlive-humanities texlive-latex-extra texlive-fonts-recommended
2
3% inline code �...� (copyright symbol) emacs: C-q M-)
4% red highlighting �...� (registered trademark symbol) emacs: C-q M-.
5% blue highlighting �...� (sharp s symbol) emacs: C-q M-_
6% green highlighting �...� (cent symbol) emacs: C-q M-"
7% LaTex escape �...� (section symbol) emacs: C-q M-'
8% keyword escape �...� (pilcrow symbol) emacs: C-q M-^
9% math escape $...$ (dollar symbol)
10
11\documentclass[letterpaper,12pt,titlepage,oneside,final]{book}
12
13%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15% Latex packages used in the document.
16\usepackage{epic,eepic}
17\usepackage{dirtytalk}
18\usepackage{xspace}
19\usepackage{subcaption}
20\usepackage{graphicx}
21\usepackage{tabularx}
22\usepackage[acronym]{glossaries}
23\usepackage{listings} % format program code
24\usepackage[flushmargin]{footmisc} % support label/reference in footnote
25\usepackage{mathptmx} % better math font with "times"
26\usepackage[usenames]{color}
27\usepackage[pagewise]{lineno}
28\renewcommand{\linenumberfont}{\scriptsize\sffamily}
29\usepackage{fancyhdr}
30\usepackage{float}
31\input{style} % bespoke macros used in the document
32\usepackage[dvips,plainpages=false,pdfpagelabels,pdfpagemode=UseNone,colorlinks=true,pagebackref=true,linkcolor=blue,citecolor=blue,urlcolor=blue,pagebackref=true,breaklinks=true]{hyperref}
33\urlstyle{rm}
34% \usepackage{breakurl} % used to avoid line breaks inside urls -> uncomment later if needed
35
36\usepackage{tikz}
37\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;}
38
39% Setting up the page margins...
40\setlength{\textheight}{9in}
41\setlength{\topmargin}{-0.45in}
42\setlength{\headsep}{0.25in}
43% uWaterloo thesis requirements specify a minimum of 1 inch (72pt) margin at the
44% top, bottom, and outside page edges and a 1.125 in. (81pt) gutter margin (on binding side).
45% While this is not an issue for electronic viewing, a PDF may be printed, and so we have the same page layout for both printed and electronic versions, we leave the gutter margin in.
46% Set margins to minimum permitted by uWaterloo thesis regulations:
47\setlength{\marginparwidth}{0pt} % width of margin notes
48% N.B. If margin notes are used, you must adjust \textwidth, \marginparwidth
49% and \marginparsep so that the space left between the margin notes and page
50% edge is less than 15 mm (0.6 in.)
51\setlength{\marginparsep}{0pt} % width of space between body text and margin notes
52\setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all
53% even-numbered pages when the "twoside" printing option is selected
54\setlength{\oddsidemargin}{0.125in} % Adds 1/8 in. to the left of all pages when "oneside" printing is selected, and to the left of all odd-numbered pages when "twoside" printing is selected
55\setlength{\textwidth}{6.375in} % assuming US letter paper (8.5 in. x 11 in.) and side margins as above
56\raggedbottom
57
58% The following statement specifies the amount of space between paragraphs. Other reasonable specifications are \bigskipamount and \smallskipamount.
59\setlength{\parskip}{\medskipamount}
60
61\newsavebox{\myboxA} % used with subfigure
62\newsavebox{\myboxB}
63
64%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
65
66% Names used in the document.
67
68\newcommand{\Version}{1.0.0}
69\newcommand{\CS}{C\raisebox{-0.9ex}{\large$^\sharp$}\xspace}
70
71\newcommand{\Textbf}[2][red]{{\color{#1}{\textbf{#2}}}}
72\newcommand{\Emph}[2][red]{{\color{#1}\textbf{\emph{#2}}}}
73\newcommand{\R}[1]{\Textbf{#1}}
74\newcommand{\B}[1]{{\Textbf[blue]{#1}}}
75\newcommand{\G}[1]{{\Textbf[OliveGreen]{#1}}}
76\newcommand{\uC}{$\mu$\CC}
77\newcommand{\cit}{\textsuperscript{[Citation Needed]}\xspace}
78\newcommand{\TODO}{{\Textbf{TODO}}}
79
80\input{glossary}
81
82\newsavebox{\LstBox}
83
84%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
85
86\setcounter{secnumdepth}{2} % number subsubsections
87\setcounter{tocdepth}{2} % subsubsections in table of contents
88% \linenumbers % comment out to turn off line numbering
89\makeindex
90\pagestyle{fancy}
91\fancyhf{}
92\cfoot{\thepage}
93\rfoot{v\input{version}}
94
95
96
97%======================================================================
98% L O G I C A L D O C U M E N T -- the content of your thesis
99%======================================================================
100\begin{document}
101\newtheorem{theorem}{Theorem}
102
103% For a large document, it is a good idea to divide your thesis
104% into several files, each one containing one chapter.
105% To illustrate this idea, the "front pages" (i.e., title page,
106% declaration, borrowers' page, abstract, acknowledgements,
107% dedication, table of contents, list of tables, list of figures,
108% nomenclature) are contained within the file "thesis-frontpgs.tex" which is
109% included into the document by the following statement.
110%----------------------------------------------------------------------
111% FRONT MATERIAL
112%----------------------------------------------------------------------
113\input{frontpgs}
114
115%----------------------------------------------------------------------
116% MAIN BODY
117%----------------------------------------------------------------------
118
119\input{intro}
120
121\input{CFA_intro}
122
123\input{CFA_concurrency}
124
125\input{mutex_stmt}
126
127\input{channels}
128
129\input{actors}
130
131\clearpage
132
133% B I B L I O G R A P H Y
134% -----------------------------
135\addcontentsline{toc}{chapter}{Bibliography}
136\bibliographystyle{plain}
137\bibliography{pl,local}
138\cleardoublepage
139\phantomsection % allows hyperref to link to the correct page
140
141% G L O S S A R Y
142% -----------------------------
143\addcontentsline{toc}{chapter}{Glossary}
144\printglossary
145\cleardoublepage
146\phantomsection % allows hyperref to link to the correct page
147
148
149\end{document}
Note: See TracBrowser for help on using the repository browser.