source: doc/theses/andrew_beach_MMath/thesis.tex @ 1ef166d

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 1ef166d was 1ef166d, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

use package fullpage and increase textheight

  • Property mode set to 100644
File size: 12.2 KB
Line 
1% Main tex file for thesis document.
2\documentclass[digital]{uw-ethesis}
3\usepackage{fullpage}
4\setlength{\textheight}{8.75in}
5
6% Commands used in documenting how to use the template. To remove.
7\newcommand{\package}[1]{\textbf{#1}}
8\newcommand{\cmmd}[1]{\textbackslash\texttt{#1}}
9\newcommand{\href}[1]{#1}
10
11% For a nomenclature (optional; available from ctan.org)
12%\usepackage{nomencl}
13% Lots of math symbols and environments
14\usepackage{amsmath,amssymb,amstext}
15% For including graphics, sets the pdftex graphics driver.
16\usepackage[pdftex]{graphicx}
17
18\usepackage{cfalab}
19
20\usehyperrefpackage[pdftex,pagebackref=false]{
21    pdftitle={Exception Handling in CFA},
22    pdfauthor={Andrew James Beach},
23    pdfsubject={Programming Languages},
24    pdfkeywords={exceptions,implementation},
25}
26
27% The \phantomsection is used to help the hyperref package create links.
28
29% Maybe only package that should be loaded after the hyperref package.
30% From http://ctan.org/pkg/glossaries-extra, extends glossaries which replaces
31% glossary and builds off of the makeindex system.
32\usepackage[toc,abbreviations]{glossaries-extra}
33
34% Main glossary entries -- definitions of relevant terminology
35\newglossaryentry{computer}
36{
37name=computer,
38description={A programmable machine that receives input data,
39               stores and manipulates the data, and provides
40               formatted output}
41}
42
43% Nomenclature glossary entries -- New definitions, or unusual terminology
44\newglossary*{nomenclature}{Nomenclature}
45\newglossaryentry{dingledorf}
46{
47type=nomenclature,
48name=dingledorf,
49description={A person of supposed average intelligence who makes incredibly
50               brainless misjudgments}
51}
52
53% List of Abbreviations (abbreviations are from the glossaries-extra package)
54\newabbreviation{aaaaz}{AAAAZ}{American Association of Amature Astronomers
55               and Zoologists}
56
57% List of Symbols
58\newglossary*{symbols}{List of Symbols}
59\newglossaryentry{rvec}
60{
61name={$\mathbf{v}$},
62sort={label},
63type=symbols,
64description={Random vector: a location in n-dimensional Cartesian space, where
65               each dimensional component is determined by a random process}
66}
67
68% Generate the glossaries defined above.
69\makeglossaries
70
71\begin{document}
72
73%----------------------------------------------------------------------
74% FRONT MATERIAL
75%----------------------------------------------------------------------
76\input{thesis-frontpgs} 
77
78%----------------------------------------------------------------------
79% MAIN BODY
80%----------------------------------------------------------------------
81\input{unwinding}
82
83%======================================================================
84\chapter{Introduction}
85%======================================================================
86In the beginning, there was $\pi$:
87
88\begin{equation}
89   e^{\pi i} + 1 = 0  \label{eqn_pi}
90\end{equation}
91A \gls{computer} could compute $\pi$ all day long. In fact, subsets of digits
92of $\pi$'s decimal approximation would make a good source for psuedo-random
93vectors, \gls{rvec} .
94
95%----------------------------------------------------------------------
96\section{State of the Art}
97%----------------------------------------------------------------------
98
99See equation \ref{eqn_pi} on page \pageref{eqn_pi}.\footnote{A famous equation.}
100
101\section{Some Meaningless Stuff}
102
103The credo of the \gls{aaaaz} was, for several years, several paragraphs of gibberish, until the \gls{dingledorf} responsible for the \gls{aaaaz} Web site realized his mistake:
104
105"Velit dolor illum facilisis zzril ipsum, augue odio, accumsan ea augue molestie lobortis zzril laoreet ex ad, adipiscing nulla. Veniam dolore, vel te in dolor te, feugait dolore ex vel erat duis nostrud diam commodo ad eu in consequat esse in ut wisi. Consectetuer dolore feugiat wisi eum dignissim tincidunt vel, nostrud, at vulputate eum euismod, diam minim eros consequat lorem aliquam et ad. Feugait illum sit suscipit ut, tation in dolore euismod et iusto nulla amet wisi odio quis nisl feugiat adipiscing luptatum minim nisl, quis, erat, dolore. Elit quis sit dolor veniam blandit ullamcorper ex, vero nonummy, duis exerci delenit ullamcorper at feugiat ullamcorper, ullamcorper elit vulputate iusto esse luptatum duis autem. Nulla nulla qui, te praesent et at nisl ut in consequat blandit vel augue ut.
106
107Illum suscipit delenit commodo augue exerci magna veniam hendrerit dignissim duis ut feugait amet dolor dolor suscipit iriure veniam. Vel quis enim vulputate nulla facilisis volutpat vel in, suscipit facilisis dolore ut veniam, duis facilisi wisi nulla aliquip vero praesent nibh molestie consectetuer nulla. Wisi nibh exerci hendrerit consequat, nostrud lobortis ut praesent dignissim tincidunt enim eum accumsan. Lorem, nonummy duis iriure autem feugait praesent, duis, accumsan tation enim facilisi qui te dolore magna velit, iusto esse eu, zzril. Feugiat enim zzril, te vel illum, lobortis ut tation, elit luptatum ipsum, aliquam dolor sed. Ex consectetuer aliquip in, tation delenit dignissim accumsan consequat, vero, et ad eu velit ut duis ea ea odio.
108
109Vero qui, te praesent et at nisl ut in consequat blandit vel augue ut dolor illum facilisis zzril ipsum. Exerci odio, accumsan ea augue molestie lobortis zzril laoreet ex ad, adipiscing nulla, et dolore, vel te in dolor te, feugait dolore ex vel erat duis. Ut diam commodo ad eu in consequat esse in ut wisi aliquip dolore feugiat wisi eum dignissim tincidunt vel, nostrud. Ut vulputate eum euismod, diam minim eros consequat lorem aliquam et ad luptatum illum sit suscipit ut, tation in dolore euismod et iusto nulla. Iusto wisi odio quis nisl feugiat adipiscing luptatum minim. Illum, quis, erat, dolore qui quis sit dolor veniam blandit ullamcorper ex, vero nonummy, duis exerci delenit ullamcorper at feugiat. Et, ullamcorper elit vulputate iusto esse luptatum duis autem esse nulla qui.
110
111Praesent dolore et, delenit, laoreet dolore sed eros hendrerit consequat lobortis. Dolor nulla suscipit delenit commodo augue exerci magna veniam hendrerit dignissim duis ut feugait amet. Ad dolor suscipit iriure veniam blandit quis enim vulputate nulla facilisis volutpat vel in. Erat facilisis dolore ut veniam, duis facilisi wisi nulla aliquip vero praesent nibh molestie consectetuer nulla, iriure nibh exerci hendrerit. Vel, nostrud lobortis ut praesent dignissim tincidunt enim eum accumsan ea, nonummy duis. Ad autem feugait praesent, duis, accumsan tation enim facilisi qui te dolore magna velit, iusto esse eu, zzril vel enim zzril, te. Nisl illum, lobortis ut tation, elit luptatum ipsum, aliquam dolor sed minim consectetuer aliquip.
112
113Tation exerci delenit ullamcorper at feugiat ullamcorper, ullamcorper elit vulputate iusto esse luptatum duis autem esse nulla qui. Volutpat praesent et at nisl ut in consequat blandit vel augue ut dolor illum facilisis zzril ipsum, augue odio, accumsan ea augue molestie lobortis zzril laoreet. Ex duis, te velit illum odio, nisl qui consequat aliquip qui blandit hendrerit. Ea dolor nonummy ullamcorper nulla lorem tation laoreet in ea, ullamcorper vel consequat zzril delenit quis dignissim, vulputate tincidunt ut."
114
115%======================================================================
116\chapter{Observations}
117%======================================================================
118
119This would be a good place for some figures and tables.
120
121Some notes on figures and photographs\ldots
122
123\begin{itemize}
124\item A well-prepared PDF should be
125  \begin{enumerate}
126    \item Of reasonable size, {\it i.e.} photos cropped and compressed.
127    \item Scalable, to allow enlargment of text and drawings.
128  \end{enumerate} 
129\item Photos must be bit maps, and so are not scaleable by definition. TIFF and
130BMP are uncompressed formats, while JPEG is compressed. Most photos can be
131compressed without losing their illustrative value.
132\item Drawings that you make should be scalable vector graphics, \emph{not} 
133bit maps. Some scalable vector file formats are: EPS, SVG, PNG, WMF. These can
134all be converted into PNG or PDF, that pdflatex recognizes. Your drawing
135package probably can export to one of these formats directly. Otherwise, a
136common procedure is to print-to-file through a Postscript printer driver to
137create a PS file, then convert that to EPS (encapsulated PS, which has a
138bounding box to describe its exact size rather than a whole page).
139Programs such as GSView (a Ghostscript GUI) can create both EPS and PDF from
140PS files. Appendix~\ref{AppendixA} shows how to generate properly sized Matlab
141plots and save them as PDF.
142\item It's important to crop your photos and draw your figures to the size that
143you want to appear in your thesis. Scaling photos with the
144includegraphics command will cause loss of resolution. And scaling down
145drawings may cause any text annotations to become too small.
146\end{itemize}
147 
148For more information on \LaTeX\, see the uWaterloo Skills for the
149Academic Workplace \href{https://uwaterloo.ca/information-systems-technology/services/electronic-thesis-preparation-and-submission-support/ethesis-guide/creating-pdf-version-your-thesis/creating-pdf-files-using-latex/latex-ethesis-and-large-documents}{course notes}.
150\footnote{
151Note that while it is possible to include hyperlinks to external documents,
152it is not wise to do so, since anything you can't control may change over time.
153It \emph{would} be appropriate and necessary to provide external links to
154additional resources for a multimedia ``enhanced'' thesis.
155But also note that if the \package{hyperref} package is not included,
156as for the print-optimized option in this thesis template, any \cmmd{href} 
157commands in your logical document are no longer defined.
158A work-around employed by this thesis template is to define a dummy
159\cmmd{href} command (which does nothing) in the preamble of the document,
160before the \package{hyperref} package is included.
161The dummy definition is then redifined by the
162\package{hyperref} package when it is included.
163}
164
165The classic book by Leslie Lamport \cite{lamport.book}, author of \LaTeX , is
166worth a look too, and the many available add-on packages are described by
167Goossens \textit{et al} \cite{goossens.book}.
168
169%----------------------------------------------------------------------
170% END MATERIAL
171%----------------------------------------------------------------------
172
173%----------------------------------------------------------------------
174% BIBLIOGRAPHY
175%----------------------------------------------------------------------
176
177% Use \clearpage instead if the document class uses the "oneside" argument.
178\cleardoublepage
179\phantomsection
180
181% Bibliography setup and creation, renamed to References.
182\addcontentsline{toc}{chapter}{\textbf{\bibname}}
183\bibliographystyle{plain}
184\bibliography{thesis}
185
186% Include all uncited entries in the bibliography.
187\nocite{*}
188
189% Begin the appendix, add a title and table of contents entry.
190\appendix
191\chapter*{APPENDICES}
192\addcontentsline{toc}{chapter}{APPENDICES}
193%======================================================================
194\chapter[PDF Plots From Matlab]{Matlab Code for Making a PDF Plot}
195\label{AppendixA}
196% Tip 4: Example of how to get a short chapter title for the Table of Contents
197%======================================================================
198\section{Using the GUI}
199Properties of Matab plots can be adjusted from the plot window via a graphical
200interface. Under the Desktop menu in the Figure window, select the Property
201Editor. You may also want to check the Plot Browser and Figure Palette for
202more tools. To adjust properties of the axes, look under the Edit menu and
203select Axes Properties.
204
205To set the figure size and to save as PDF or other file formats, click the
206Export Setup button in the figure Property Editor.
207
208\section{From the Command Line} 
209All figure properties can also be manipulated from the command line. Here's an
210example:
211\begin{verbatim}
212x=[0:0.1:pi];
213hold on % Plot multiple traces on one figure
214plot(x,sin(x))
215plot(x,cos(x),'--r')
216plot(x,tan(x),'.-g')
217title('Some Trig Functions Over 0 to \pi') % Note LaTeX markup!
218legend('{\it sin}(x)','{\it cos}(x)','{\it tan}(x)')
219hold off
220set(gca,'Ylim',[-3 3]) % Adjust Y limits of "current axes"
221set(gcf,'Units','inches') % Set figure size units of "current figure"
222set(gcf,'Position',[0,0,6,4]) % Set figure width (6 in.) and height (4 in.)
223cd n:\thesis\plots % Select where to save
224print -dpdf plot.pdf % Save as PDF
225\end{verbatim}
226
227\end{document}
Note: See TracBrowser for help on using the repository browser.