source: doc/theses/andrew_beach_MMath/thesis.tex @ c88f0cf

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since c88f0cf was c88f0cf, checked in by Andrew Beach <ajbeach@…>, 4 years ago

In AB.M.: Pushed a lot of the parts of the template into a document class. I stopped with deminishing returns.

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