Changeset 266732e for doc/theses/mike_brooks_MMath/uw-ethesis.tex
- Timestamp:
- Mar 9, 2024, 5:40:09 PM (7 months ago)
- Branches:
- master
- Children:
- b64d0f4
- Parents:
- 03606ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/uw-ethesis.tex
r03606ce r266732e 1 1 %====================================================================== 2 % University of Waterloo Thesis Template for LaTeX 3 % Last Updated November, 20204 % by Stephen Carr, IST Client Services,2 % University of Waterloo Thesis Template for LaTeX 3 % Last Updated August 2022 4 % by IST Client Services, 5 5 % University of Waterloo, 200 University Ave. W., Waterloo, Ontario, Canada 6 % FOR ASSISTANCE, please send mail to request@uwaterloo.ca6 % FOR ASSISTANCE, please send mail to helpdesk@uwaterloo.ca 7 7 8 8 % DISCLAIMER … … 21 21 22 22 % DON'T FORGET TO ADD YOUR OWN NAME AND TITLE in the "hyperref" package configuration below. 23 % THIS INFORMATION GETS EMBEDDED IN THE PDF FINAL PDF DOCUMENT. 23 % Search for: PDFTITLE, PDFAUTHOR, PDFSUBJECT, and PDFKEYWORDS. 24 % THIS INFORMATION GETS EMBEDDED IN THE FINAL PDF DOCUMENT. 24 25 % You can view the information if you view properties of the PDF document. 25 26 26 % Many faculties/departments also require one or more printed copies. 27 % This template attempts to satisfy both types of output. 27 % Many faculties/departments also require one or more printed copies. 28 % This template attempts to satisfy both types of output. 28 29 % See additional notes below. 29 30 % It is based on the standard "book" document class which provides all necessary sectioning structures and allows multi-part theses. … … 32 33 33 34 % For people who prefer to install their own LaTeX distributions on their own computers, and process the source files manually, the following notes provide the sequence of tasks: 34 35 35 36 % E.g. to process a thesis called "mythesis.tex" based on this template, run: 36 37 … … 51 52 % Tip: Photographs should be cropped and compressed so as not to be too large. 52 53 53 % To create a PDF output that is optimized for double-sided printing: 54 % To create a PDF output that is optimized for double-sided printing: 54 55 % 1) comment-out the \documentclass statement in the preamble below, and un-comment the second \documentclass line. 55 56 % 2) change the value assigned below to the boolean variable "PrintVersion" from " false" to "true". … … 60 61 % For hyperlinked PDF, suitable for viewing on a computer, use this: 61 62 \documentclass[letterpaper,12pt,titlepage,oneside,final]{book} 62 \usepackage{times}63 63 \usepackage[T1]{fontenc} % Latin-1 => 256-bit characters, => | not dash, <> not Spanish question marks 64 64 65 65 % For PDF, suitable for double-sided printing, change the PrintVersion variable below to "true" and use this \documentclass line instead of the one above: 66 66 %\documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book} … … 69 69 % If you have to, it's easier to make changes to nomenclature once here than in a million places throughout your thesis! 70 70 \newcommand{\package}[1]{\textbf{#1}} % package names in bold text 71 \newcommand{\cmmd}[1]{\textbackslash\texttt{#1}} % command name in tt font 71 \newcommand{\cmmd}[1]{\textbackslash\texttt{#1}} % command name in tt font 72 72 \newcommand{\href}[1]{#1} % does nothing, but defines the command so the print-optimized version will ignore \href tags (redefined by hyperref pkg). 73 73 %\newcommand{\texorpdfstring}[2]{#1} % does nothing, but defines the command … … 82 82 %\usepackage{nomencl} % For a nomenclature (optional; available from ctan.org) 83 83 \usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments 84 \usepackage{fullpage,times,comment} 84 85 \usepackage{xcolor} 85 86 \usepackage{epic,eepic} 86 87 \usepackage{graphicx} 87 \graphicspath{{pictures/}} % picture directory88 \usepackage{comment} % Removes large sections of the document.89 88 \usepackage{tabularx} 90 89 \usepackage[labelformat=simple,aboveskip=0pt,farskip=0pt,font=normalsize]{subfig} 91 90 \renewcommand\thesubfigure{(\alph{subfigure})} 92 91 93 \ usepackage{algorithm}94 \usepackage{algpseudocode}95 92 \graphicspath{{pictures/}} % picture directory 93 %\usepackage{algorithm} 94 %\usepackage{algpseudocode} 96 95 \usepackage{pbox} 96 97 \makeatletter 98 \newcommand{\lstinput}[2]{\lstinputlisting[linerange={#1},xleftmargin=4pt,escapechar={\$},moredelim={**[is][\color{red}]{@}{@}}]{#2}} 99 \makeatother 100 % cfa macros used in the document 101 \input{common} 102 %\usepackage{common} 103 \CFAStyle % CFA code-style 104 \lstset{language=cfa,belowskip=-1pt} % set default language to CFA 105 \lstset{inputpath={programs}} 106 107 \newcommand{\uCpp}{$\mu$\CC} 108 \newcommand{\PAB}[1]{{\color{red}PAB: #1}} 97 109 98 110 % Hyperlinks make it very easy to navigate an electronic document. 99 111 % In addition, this is where you should specify the thesis title and author as they appear in the properties of the PDF document. 100 % Use the "hyperref" package 112 % Use the "hyperref" package 101 113 % N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE 114 \usepackage{url} 102 115 \usepackage[pagebackref=true]{hyperref} % with basic options 103 116 %\usepackage[pdftex,pagebackref=true]{hyperref} … … 110 123 pdffitwindow=false, % window fit to page when opened 111 124 pdfstartview={FitH}, % fits the width of the page to the window 112 pdftitle={ Cforall Memory Allocation}, % title: CHANGE THIS TEXT!113 pdfauthor={M ubeen Zulfiqar}, % author: CHANGE THIS TEXT! and uncomment this line125 pdftitle={\CFA Container Library}, % title: CHANGE THIS TEXT! 126 pdfauthor={Mike Brooks}, % author: CHANGE THIS TEXT! and uncomment this line 114 127 pdfsubject={Cforall}, % subject: CHANGE THIS TEXT! and uncomment this line 115 pdfkeywords={Cforall} { storage allocation} {C language}, % optional list of keywords128 pdfkeywords={Cforall} {container library} {C language}, % optional list of keywords 116 129 pdfnewwindow=true, % links in new window 117 130 colorlinks=true, % false: boxed links; true: colored links 118 131 linkcolor=blue, % color of internal links 119 citecolor=blue, % color of links to bibliography132 citecolor=blue, % color of links to bibliography 120 133 filecolor=magenta, % color of file links 121 urlcolor=blue, 134 urlcolor=blue, % color of external links 122 135 breaklinks=true 123 136 } 124 137 \ifthenelse{\boolean{PrintVersion}}{ % for improved print quality, change some hyperref options 125 138 \hypersetup{ % override some previously defined hyperref options 139 % colorlinks,% 126 140 citecolor=black,% 127 141 filecolor=black,% 128 142 linkcolor=black,% 129 urlcolor=black 130 }}{} % end of ifthenelse (no else) 143 urlcolor=black} 144 }{} % end of ifthenelse (no else) 145 146 \usepackage{breakurl} 131 147 \urlstyle{sf} 132 148 133 149 %\usepackage[automake,toc,abbreviations]{glossaries-extra} % Exception to the rule of hyperref being the last add-on package 134 % If glossaries-extra is not in your LaTeX distribution, get it from CTAN (http://ctan.org/pkg/glossaries-extra), 135 % although it's supposed to be in both the TeX Live and MikTeX distributions. There are also documentation and 150 % If glossaries-extra is not in your LaTeX distribution, get it from CTAN (http://ctan.org/pkg/glossaries-extra), 151 % although it's supposed to be in both the TeX Live and MikTeX distributions. There are also documentation and 136 152 % installation instructions there. 137 153 … … 140 156 141 157 % Setting up the page margins... 142 \setlength{\textheight}{9in}143 \setlength{\topmargin}{-0.45in}144 \setlength{\headsep}{0.25in}158 %\setlength{\textheight}{9in} 159 %\setlength{\topmargin}{-0.45in} 160 %\setlength{\headsep}{0.25in} 145 161 % uWaterloo thesis requirements specify a minimum of 1 inch (72pt) margin at the 146 % top, bottom, and outside page edges and a 1.125 in. (81pt) gutter margin (on binding side). 162 % top, bottom, and outside page edges and a 1.125 in. (81pt) gutter margin (on binding side). 147 163 % 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. 148 164 % Set margins to minimum permitted by uWaterloo thesis regulations: … … 152 168 % edge is less than 15 mm (0.6 in.) 153 169 \setlength{\marginparsep}{0pt} % width of space between body text and margin notes 154 \setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all 170 \setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all 155 171 % even-numbered pages when the "twoside" printing option is selected 156 172 \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 … … 161 177 \setlength{\parskip}{\medskipamount} 162 178 163 % The following statement controls the line spacing. 179 % The following statement controls the line spacing. 164 180 % The default spacing corresponds to good typographic conventions and only slight changes (e.g., perhaps "1.2"), if any, should be made. 165 181 \renewcommand{\baselinestretch}{1} % this is the default line space setting … … 174 190 \let\cleardoublepage\clearemptydoublepage 175 191 176 % Define Glossary terms (This is properly done here, in the preamble and 177 % could also be \input{} from a separate file...) 192 % Define Glossary terms (This is properly done here, in the preamble and could also be \input{} from a separate file...) 178 193 %\input{glossaries} 179 194 %\makeglossaries 180 181 % cfa macros used in the document182 \input{common}183 %\usepackageinput{common}184 \CFAStyle % CFA code-style185 \lstset{language=CFA} % default language186 \lstset{basicstyle=\linespread{0.9}\sf} % CFA typewriter font187 \lstset{inputpath={programs}}188 \newcommand{\PAB}[1]{{\color{red}PAB: #1}}189 190 \newcommand{\uCpp}{$\mu$\CC}191 195 192 196 %====================================================================== … … 202 206 % dedication, table of contents, list of tables, list of figures, nomenclature, etc. 203 207 %---------------------------------------------------------------------- 204 \input{uw-ethesis-frontpgs} 208 \input{uw-ethesis-frontpgs} 205 209 206 210 %---------------------------------------------------------------------- … … 211 215 % Tip: Putting each sentence on a new line is a way to simplify later editing. 212 216 %---------------------------------------------------------------------- 213 \begin{sloppypar} 217 214 218 \input{intro} 215 219 \input{background} … … 219 223 \input{conclusion} 220 224 221 \end{sloppypar}222 223 225 %---------------------------------------------------------------------- 224 226 % END MATERIAL … … 228 230 % Bibliography 229 231 230 % The following statement selects the style to use for references. 232 % The following statement selects the style to use for references. 231 233 % It controls the sort order of the entries in the bibliography and also the formatting for the in-text labels. 232 234 \bibliographystyle{plain} 233 % This specifies the location of the file containing the bibliographic information. 235 % This specifies the location of the file containing the bibliographic information. 234 236 % It assumes you're using BibTeX to manage your references (if not, why not?). 235 237 \cleardoublepage % This is needed if the "book" document class is used, to place the anchor in the correct page, because the bibliography will start on its own page. 236 238 % Use \clearpage instead if the document class uses the "oneside" argument 237 \phantomsection % With hyperref package, enables hyperlinking from the table of contents to bibliography 239 \phantomsection % With hyperref package, enables hyperlinking from the table of contents to bibliography 238 240 % The following statement causes the title "References" to be used for the bibliography section: 239 241 \renewcommand*{\bibname}{References} … … 243 245 244 246 \bibliography{pl,uw-ethesis} 245 % Tip: You can create multiple .bib files to organize your references. 247 % Tip: You can create multiple .bib files to organize your references. 246 248 % Just list them all in the \bibliogaphy command, separated by commas (no spaces). 247 249 248 % The following statement causes the specified references to be added to the bibliography even if they were not cited in the text. 250 % The following statement causes the specified references to be added to the bibliography even if they were not cited in the text. 249 251 % The asterisk is a wildcard that causes all entries in the bibliographic database to be included (optional). 250 252 % \nocite{*} … … 261 263 % \input{appendix-matlab_plots.tex} 262 264 263 % GLOSSARIES (Lists of definitions, abbreviations, symbols, etc. 264 % provided by the glossaries-extra package) 265 % GLOSSARIES (Lists of definitions, abbreviations, symbols, etc. provided by the glossaries-extra package) 265 266 % ----------------------------- 266 267 %\printglossaries
Note: See TracChangeset
for help on using the changeset viewer.