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