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[T1]{fontenc} % allow Latin1 (extended ASCII) characters
|
---|
17 | \usepackage{textcomp}
|
---|
18 | \usepackage[latin1]{inputenc}
|
---|
19 | \usepackage{fullpage,times,comment}
|
---|
20 | \usepackage{epic,eepic}
|
---|
21 | \usepackage{upquote} % switch curled `'" to straight
|
---|
22 | \usepackage{dirtytalk}
|
---|
23 | \usepackage{calc}
|
---|
24 | \usepackage{xspace}
|
---|
25 | \usepackage[labelformat=simple]{subfig}
|
---|
26 | \renewcommand{\thesubfigure}{(\alph{subfigure})}
|
---|
27 | \usepackage{graphicx}
|
---|
28 | \usepackage{tabularx}
|
---|
29 | \usepackage{multicol}
|
---|
30 | \usepackage[acronym]{glossaries}
|
---|
31 | \usepackage{varioref}
|
---|
32 | \usepackage{listings} % format program code
|
---|
33 | \usepackage[flushmargin]{footmisc} % support label/reference in footnote
|
---|
34 | \usepackage{latexsym} % \Box glyph
|
---|
35 | \usepackage{mathptmx} % better math font with "times"
|
---|
36 | \usepackage[usenames]{color}
|
---|
37 | \usepackage[pagewise]{lineno}
|
---|
38 | \renewcommand{\linenumberfont}{\scriptsize\sffamily}
|
---|
39 | \usepackage{fancyhdr}
|
---|
40 | \usepackage{float}
|
---|
41 | \usepackage{siunitx}
|
---|
42 | \sisetup{ binary-units=true }
|
---|
43 | \input{style} % bespoke macros used in the document
|
---|
44 | \usepackage{url}
|
---|
45 | \usepackage[dvips,plainpages=false,pdfpagelabels,pdfpagemode=UseNone,colorlinks=true,pagebackref=true,linkcolor=blue,citecolor=blue,urlcolor=blue,pagebackref=true,breaklinks=true]{hyperref}
|
---|
46 | \usepackage{breakurl}
|
---|
47 | \urlstyle{rm}
|
---|
48 |
|
---|
49 | \usepackage{tikz}
|
---|
50 | \def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;}
|
---|
51 |
|
---|
52 | \setlength{\topmargin}{-0.45in} % move running title into header
|
---|
53 | \setlength{\headsep}{0.25in}
|
---|
54 |
|
---|
55 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
56 |
|
---|
57 | % Names used in the document.
|
---|
58 |
|
---|
59 | \newcommand{\Version}{1.0.0}
|
---|
60 | \newcommand{\CS}{C\raisebox{-0.9ex}{\large$^\sharp$}\xspace}
|
---|
61 |
|
---|
62 | \newcommand{\Textbf}[2][red]{{\color{#1}{\textbf{#2}}}}
|
---|
63 | \newcommand{\Emph}[2][red]{{\color{#1}\textbf{\emph{#2}}}}
|
---|
64 | \newcommand{\R}[1]{\Textbf{#1}}
|
---|
65 | \newcommand{\B}[1]{{\Textbf[blue]{#1}}}
|
---|
66 | \newcommand{\G}[1]{{\Textbf[OliveGreen]{#1}}}
|
---|
67 | \newcommand{\uC}{$\mu$\CC}
|
---|
68 | \newcommand{\cit}{\textsuperscript{[Citation Needed]}\xspace}
|
---|
69 | \newcommand{\TODO}{{\Textbf{TODO}}}
|
---|
70 |
|
---|
71 | \input{glossary}
|
---|
72 |
|
---|
73 | \newsavebox{\LstBox}
|
---|
74 |
|
---|
75 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
76 |
|
---|
77 | \setcounter{secnumdepth}{2} % number subsubsections
|
---|
78 | \setcounter{tocdepth}{2} % subsubsections in table of contents
|
---|
79 | % \linenumbers % comment out to turn off line numbering
|
---|
80 | \makeindex
|
---|
81 | \pagestyle{fancy}
|
---|
82 | \fancyhf{}
|
---|
83 | \cfoot{\thepage}
|
---|
84 | \rfoot{v\input{version}}
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|
88 | %======================================================================
|
---|
89 | % L O G I C A L D O C U M E N T -- the content of your thesis
|
---|
90 | %======================================================================
|
---|
91 | \begin{document}
|
---|
92 |
|
---|
93 | % For a large document, it is a good idea to divide your thesis
|
---|
94 | % into several files, each one containing one chapter.
|
---|
95 | % To illustrate this idea, the "front pages" (i.e., title page,
|
---|
96 | % declaration, borrowers' page, abstract, acknowledgements,
|
---|
97 | % dedication, table of contents, list of tables, list of figures,
|
---|
98 | % nomenclature) are contained within the file "thesis-frontpgs.tex" which is
|
---|
99 | % included into the document by the following statement.
|
---|
100 | %----------------------------------------------------------------------
|
---|
101 | % FRONT MATERIAL
|
---|
102 | %----------------------------------------------------------------------
|
---|
103 | \input{frontpgs}
|
---|
104 |
|
---|
105 | %----------------------------------------------------------------------
|
---|
106 | % MAIN BODY
|
---|
107 | %----------------------------------------------------------------------
|
---|
108 |
|
---|
109 | \input{intro}
|
---|
110 |
|
---|
111 | \input{cforall}
|
---|
112 |
|
---|
113 | \input{basics}
|
---|
114 |
|
---|
115 | \input{concurrency}
|
---|
116 |
|
---|
117 | \input{parallelism}
|
---|
118 |
|
---|
119 | \input{internals}
|
---|
120 |
|
---|
121 | \input{together}
|
---|
122 |
|
---|
123 | \input{results}
|
---|
124 |
|
---|
125 | \input{future}
|
---|
126 |
|
---|
127 |
|
---|
128 | \clearpage
|
---|
129 |
|
---|
130 | % B I B L I O G R A P H Y
|
---|
131 | % -----------------------------
|
---|
132 | \addcontentsline{toc}{chapter}{Bibliography}
|
---|
133 | \bibliographystyle{plain}
|
---|
134 | \bibliography{pl,local}
|
---|
135 | \cleardoublepage
|
---|
136 | \phantomsection % allows hyperref to link to the correct page
|
---|
137 |
|
---|
138 | % G L O S S A R Y
|
---|
139 | % -----------------------------
|
---|
140 | \addcontentsline{toc}{chapter}{Glossary}
|
---|
141 | \printglossary
|
---|
142 | \cleardoublepage
|
---|
143 | \phantomsection % allows hyperref to link to the correct page
|
---|
144 |
|
---|
145 |
|
---|
146 | \end{document}
|
---|