Changeset d987881 for doc/theses/fangren_yu_MMath/uw-ethesis.tex
- Timestamp:
- Jul 31, 2023, 9:59:56 PM (11 months ago)
- Branches:
- master
- Children:
- b3ac8ce3
- Parents:
- 28c2933
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/fangren_yu_MMath/uw-ethesis.tex
r28c2933 rd987881 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". … … 61 62 \documentclass[letterpaper,12pt,titlepage,oneside,final]{book} 62 63 \usepackage[T1]{fontenc} % Latin-1 => 256-bit characters, => | not dash, <> not Spanish question marks 63 64 64 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: 65 66 %\documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book} … … 68 69 % If you have to, it's easier to make changes to nomenclature once here than in a million places throughout your thesis! 69 70 \newcommand{\package}[1]{\textbf{#1}} % package names in bold text 70 \newcommand{\cmmd}[1]{\textbackslash\texttt{#1}} % command name in tt font 71 \newcommand{\cmmd}[1]{\textbackslash\texttt{#1}} % command name in tt font 71 72 \newcommand{\href}[1]{#1} % does nothing, but defines the command so the print-optimized version will ignore \href tags (redefined by hyperref pkg). 72 73 %\newcommand{\texorpdfstring}[2]{#1} % does nothing, but defines the command … … 81 82 %\usepackage{nomencl} % For a nomenclature (optional; available from ctan.org) 82 83 \usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments 84 \usepackage{fullpage,times,comment} 83 85 \usepackage{xcolor} 84 86 \usepackage{epic,eepic} 85 87 \usepackage{graphicx} 86 \usepackage{comment} % Removes large sections of the document.87 88 \usepackage{tabularx} 88 \usepackage{subfigure} 89 \usepackage[labelformat=simple,aboveskip=0pt,farskip=0pt,font=normalsize]{subfig} 90 \renewcommand\thesubfigure{(\alph{subfigure})} 91 % cfa macros used in the document 92 \input{common} 93 %\usepackageinput{common} 94 \CFAStyle % CFA code-style 95 \lstset{language=CFA} % default language 96 \lstset{basicstyle=\linespread{0.9}\sf} % CFA typewriter font 97 \newcommand{\newtermFont}{\emph} 98 \newcommand{\Newterm}[1]{\newtermFont{#1}} 99 %\renewcommand{\newterm}[1]{\newtermFont{#1}} 100 \newcommand{\uC}{$\mu$\CC} 101 \newcommand{\PAB}[1]{{\color{red}PAB: #1}} 89 102 90 103 % Hyperlinks make it very easy to navigate an electronic document. 91 104 % In addition, this is where you should specify the thesis title and author as they appear in the properties of the PDF document. 92 % Use the "hyperref" package 105 % Use the "hyperref" package 93 106 % N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE 94 107 \usepackage{url} 95 108 \usepackage[dvips,pagebackref=true]{hyperref} % with basic options 96 109 %\usepackage[pdftex,pagebackref=true]{hyperref} 97 % N.B. pagebackref=true provides links back from the References to the body text. This can cause trouble for printing.110 % N.B. pagebackref=true provides links back from the References to the body text. This can cause trouble for printing. 98 111 \hypersetup{ 99 112 plainpages=false, % needed if Roman numbers in frontpages … … 103 116 pdffitwindow=false, % window fit to page when opened 104 117 pdfstartview={FitH}, % fits the width of the page to the window 105 pdftitle={ High-Performance Concurrent Memory Allocation}, % title: CHANGE THIS TEXT!106 pdfauthor={ Mubeen Zulfiqar}, % author: CHANGE THIS TEXT! and uncomment this line118 pdftitle={Type Resolution in \CFA}, % title: CHANGE THIS TEXT! 119 pdfauthor={Fangren Yu}, % author: CHANGE THIS TEXT! and uncomment this line 107 120 pdfsubject={Cforall}, % subject: CHANGE THIS TEXT! and uncomment this line 108 pdfkeywords={Cforall} { storage allocation} {C language}, % optional list of keywords121 pdfkeywords={Cforall} {type resolution} {C language}, % optional list of keywords 109 122 pdfnewwindow=true, % links in new window 110 123 colorlinks=true, % false: boxed links; true: colored links 111 124 linkcolor=blue, % color of internal links 112 citecolor=blue, % color of links to bibliography125 citecolor=blue, % color of links to bibliography 113 126 filecolor=magenta, % color of file links 114 urlcolor=blue, 127 urlcolor=blue, % color of external links 115 128 breaklinks=true 116 129 } 117 130 \ifthenelse{\boolean{PrintVersion}}{ % for improved print quality, change some hyperref options 118 131 \hypersetup{ % override some previously defined hyperref options 132 % colorlinks,% 119 133 citecolor=black,% 120 134 filecolor=black,% 121 135 linkcolor=black,% 122 urlcolor=black 123 } }{} % end of ifthenelse (no else)124 %\usepackage[dvips,plainpages=false,pdfpagelabels,pdfpagemode=UseNone,pagebackref=true,breaklinks=true,colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} 136 urlcolor=black} 137 }{} % end of ifthenelse (no else) 138 125 139 \usepackage{breakurl} 126 140 \urlstyle{sf} 127 141 128 %\usepackage[automake,toc,abbreviations]{glossaries-extra} % Exception to the rule of hyperref being the last add-on package 129 % If glossaries-extra is not in your LaTeX distribution, get it from CTAN (http://ctan.org/pkg/glossaries-extra), 130 % although it's supposed to be in both the TeX Live and MikTeX distributions. There are also documentation and 142 \usepackage[automake,toc,abbreviations]{glossaries-extra} % Exception to the rule of hyperref being the last add-on package 143 \renewcommand*{\glstextformat}[1]{\textcolor{black}{#1}} 144 % If glossaries-extra is not in your LaTeX distribution, get it from CTAN (http://ctan.org/pkg/glossaries-extra), 145 % although it's supposed to be in both the TeX Live and MikTeX distributions. There are also documentation and 131 146 % installation instructions there. 132 147 133 148 % Setting up the page margins... 134 \setlength{\textheight}{9in}135 \setlength{\topmargin}{-0.45in}136 \setlength{\headsep}{0.25in}149 %\setlength{\textheight}{9in} 150 %\setlength{\topmargin}{-0.45in} 151 %\setlength{\headsep}{0.25in} 137 152 % uWaterloo thesis requirements specify a minimum of 1 inch (72pt) margin at the 138 % top, bottom, and outside page edges and a 1.125 in. (81pt) gutter margin (on binding side). 153 % top, bottom, and outside page edges and a 1.125 in. (81pt) gutter margin (on binding side). 139 154 % 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. 140 155 % Set margins to minimum permitted by uWaterloo thesis regulations: … … 144 159 % edge is less than 15 mm (0.6 in.) 145 160 \setlength{\marginparsep}{0pt} % width of space between body text and margin notes 146 \setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all 161 \setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all 147 162 % even-numbered pages when the "twoside" printing option is selected 148 163 \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 … … 153 168 \setlength{\parskip}{\medskipamount} 154 169 155 % The following statement controls the line spacing. 170 % The following statement controls the line spacing. 156 171 % The default spacing corresponds to good typographic conventions and only slight changes (e.g., perhaps "1.2"), if any, should be made. 157 172 \renewcommand{\baselinestretch}{1} % this is the default line space setting … … 166 181 \let\cleardoublepage\clearemptydoublepage 167 182 168 % Define Glossary terms (This is properly done here, in the preamble and 169 % could also be \input{} from a separate file...) 170 %\input{glossaries} 171 %\makeglossaries 172 173 % cfa macros used in the document 174 \input{common} 175 %\usepackageinput{common} 176 \CFAStyle % CFA code-style 177 \lstset{language=CFA} % default language 178 \lstset{basicstyle=\linespread{0.9}\sf} % CFA typewriter font 179 \newcommand{\uC}{$\mu$\CC} 180 \newcommand{\PAB}[1]{{\color{red}PAB: #1}} 183 % Define Glossary terms (This is properly done here, in the preamble and could also be \input{} from a separate file...) 184 \input{glossary} 185 \makeglossaries 181 186 182 187 %====================================================================== … … 192 197 % dedication, table of contents, list of tables, list of figures, nomenclature, etc. 193 198 %---------------------------------------------------------------------- 194 \input{uw-ethesis-frontpgs} 199 \input{uw-ethesis-frontpgs} 195 200 196 201 %---------------------------------------------------------------------- … … 201 206 % Tip: Putting each sentence on a new line is a way to simplify later editing. 202 207 %---------------------------------------------------------------------- 203 \begin{sloppypar}204 208 205 209 \input{intro} … … 210 214 \input{conclusion} 211 215 212 \end{sloppypar}213 214 216 %---------------------------------------------------------------------- 215 217 % END MATERIAL … … 219 221 % Bibliography 220 222 221 % The following statement selects the style to use for references. 223 % The following statement selects the style to use for references. 222 224 % It controls the sort order of the entries in the bibliography and also the formatting for the in-text labels. 223 225 \bibliographystyle{plain} 224 % This specifies the location of the file containing the bibliographic information. 226 % This specifies the location of the file containing the bibliographic information. 225 227 % It assumes you're using BibTeX to manage your references (if not, why not?). 226 228 \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. 227 229 % Use \clearpage instead if the document class uses the "oneside" argument 228 \phantomsection % With hyperref package, enables hyperlinking from the table of contents to bibliography 230 \phantomsection % With hyperref package, enables hyperlinking from the table of contents to bibliography 229 231 % The following statement causes the title "References" to be used for the bibliography section: 230 232 \renewcommand*{\bibname}{References} … … 234 236 235 237 \bibliography{pl,uw-ethesis} 236 % Tip: You can create multiple .bib files to organize your references. 238 % Tip: You can create multiple .bib files to organize your references. 237 239 % Just list them all in the \bibliogaphy command, separated by commas (no spaces). 238 240 239 % The following statement causes the specified references to be added to the bibliography even if they were not cited in the text. 241 % The following statement causes the specified references to be added to the bibliography even if they were not cited in the text. 240 242 % The asterisk is a wildcard that causes all entries in the bibliographic database to be included (optional). 241 243 % \nocite{*} … … 245 247 246 248 % The \appendix statement indicates the beginning of the appendices. 247 \appendix249 % \appendix 248 250 % Add an un-numbered title page before the appendices and a line in the Table of Contents 249 251 % \chapter*{APPENDICES} … … 252 254 % \input{appendix-matlab_plots.tex} 253 255 254 % GLOSSARIES (Lists of definitions, abbreviations, symbols, etc. 255 % provided by the glossaries-extra package) 256 % GLOSSARIES (Lists of definitions, abbreviations, symbols, etc. provided by the glossaries-extra package) 256 257 % ----------------------------- 257 %\printglossaries 258 %\cleardoublepage259 %\phantomsection % allows hyperref to link to the correct page258 \printglossary 259 \cleardoublepage 260 \phantomsection % allows hyperref to link to the correct page 260 261 261 262 %----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.