Ignore:
Timestamp:
Jul 31, 2023, 9:59:56 PM (11 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
b3ac8ce3
Parents:
28c2933
Message:

update empty thesis directory for Fangren

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/fangren_yu_MMath/uw-ethesis.tex

    r28c2933 rd987881  
    11%======================================================================
    2 % University of Waterloo Thesis Template for LaTeX
    3 % Last Updated November, 2020
    4 % by Stephen Carr, IST Client Services,
     2% University of Waterloo Thesis Template for LaTeX 
     3% Last Updated August 2022
     4% by IST Client Services,
    55% University of Waterloo, 200 University Ave. W., Waterloo, Ontario, Canada
    6 % FOR ASSISTANCE, please send mail to request@uwaterloo.ca
     6% FOR ASSISTANCE, please send mail to helpdesk@uwaterloo.ca
    77
    88% DISCLAIMER
     
    2121
    2222% 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.
    2425% You can view the information if you view properties of the PDF document.
    2526
    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. 
    2829% See additional notes below.
    2930% It is based on the standard "book" document class which provides all necessary sectioning structures and allows multi-part theses.
     
    3233
    3334% 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 
    3536% E.g. to process a thesis called "mythesis.tex" based on this template, run:
    3637
     
    5152% Tip: Photographs should be cropped and compressed so as not to be too large.
    5253
    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: 
    5455% 1) comment-out the \documentclass statement in the preamble below, and un-comment the second \documentclass line.
    5556% 2) change the value assigned below to the boolean variable "PrintVersion" from " false" to "true".
     
    6162\documentclass[letterpaper,12pt,titlepage,oneside,final]{book}
    6263\usepackage[T1]{fontenc}        % Latin-1 => 256-bit characters, => | not dash, <> not Spanish question marks
    63 
     64 
    6465% For PDF, suitable for double-sided printing, change the PrintVersion variable below to "true" and use this \documentclass line instead of the one above:
    6566%\documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}
     
    6869% If you have to, it's easier to make changes to nomenclature once here than in a million places throughout your thesis!
    6970\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 
    7172\newcommand{\href}[1]{#1} % does nothing, but defines the command so the print-optimized version will ignore \href tags (redefined by hyperref pkg).
    7273%\newcommand{\texorpdfstring}[2]{#1} % does nothing, but defines the command
     
    8182%\usepackage{nomencl} % For a nomenclature (optional; available from ctan.org)
    8283\usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments
     84\usepackage{fullpage,times,comment}
    8385\usepackage{xcolor}
    8486\usepackage{epic,eepic}
    8587\usepackage{graphicx}
    86 \usepackage{comment} % Removes large sections of the document.
    8788\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}}
    89102
    90103% Hyperlinks make it very easy to navigate an electronic document.
    91104% 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 
    93106% N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE
    94107\usepackage{url}
    95108\usepackage[dvips,pagebackref=true]{hyperref} % with basic options
    96109%\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.
    98111\hypersetup{
    99112    plainpages=false,       % needed if Roman numbers in frontpages
     
    103116    pdffitwindow=false,     % window fit to page when opened
    104117    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 line
     118    pdftitle={Type Resolution in \CFA}, % title: CHANGE THIS TEXT!
     119    pdfauthor={Fangren Yu},    % author: CHANGE THIS TEXT! and uncomment this line
    107120    pdfsubject={Cforall},  % subject: CHANGE THIS TEXT! and uncomment this line
    108     pdfkeywords={Cforall} {storage allocation} {C language}, % optional list of keywords
     121    pdfkeywords={Cforall} {type resolution} {C language}, % optional list of keywords
    109122    pdfnewwindow=true,      % links in new window
    110123    colorlinks=true,        % false: boxed links; true: colored links
    111124    linkcolor=blue,         % color of internal links
    112     citecolor=blue,        % color of links to bibliography
     125    citecolor=blue,         % color of links to bibliography
    113126    filecolor=magenta,      % color of file links
    114     urlcolor=blue,           % color of external links
     127    urlcolor=blue,          % color of external links
    115128    breaklinks=true
    116129}
    117130\ifthenelse{\boolean{PrintVersion}}{   % for improved print quality, change some hyperref options
    118131\hypersetup{    % override some previously defined hyperref options
     132%    colorlinks,%
    119133    citecolor=black,%
    120134    filecolor=black,%
    121135    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
    125139\usepackage{breakurl}
    126140\urlstyle{sf}
    127141
    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
    131146% installation instructions there.
    132147
    133148% 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}
    137152% 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). 
    139154% 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.
    140155% Set margins to minimum permitted by uWaterloo thesis regulations:
     
    144159% edge is less than 15 mm (0.6 in.)
    145160\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 
    147162% even-numbered pages when the "twoside" printing option is selected
    148163\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
     
    153168\setlength{\parskip}{\medskipamount}
    154169
    155 % The following statement controls the line spacing.
     170% The following statement controls the line spacing. 
    156171% The default spacing corresponds to good typographic conventions and only slight changes (e.g., perhaps "1.2"), if any, should be made.
    157172\renewcommand{\baselinestretch}{1} % this is the default line space setting
     
    166181\let\cleardoublepage\clearemptydoublepage
    167182
    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
    181186
    182187%======================================================================
     
    192197% dedication, table of contents, list of tables, list of figures, nomenclature, etc.
    193198%----------------------------------------------------------------------
    194 \input{uw-ethesis-frontpgs}
     199\input{uw-ethesis-frontpgs} 
    195200
    196201%----------------------------------------------------------------------
     
    201206% Tip: Putting each sentence on a new line is a way to simplify later editing.
    202207%----------------------------------------------------------------------
    203 \begin{sloppypar}
    204208
    205209\input{intro}
     
    210214\input{conclusion}
    211215
    212 \end{sloppypar}
    213 
    214216%----------------------------------------------------------------------
    215217% END MATERIAL
     
    219221% Bibliography
    220222
    221 % The following statement selects the style to use for references.
     223% The following statement selects the style to use for references. 
    222224% It controls the sort order of the entries in the bibliography and also the formatting for the in-text labels.
    223225\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. 
    225227% It assumes you're using BibTeX to manage your references (if not, why not?).
    226228\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.
    227229% 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             
    229231% The following statement causes the title "References" to be used for the bibliography section:
    230232\renewcommand*{\bibname}{References}
     
    234236
    235237\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. 
    237239% Just list them all in the \bibliogaphy command, separated by commas (no spaces).
    238240
    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. 
    240242% The asterisk is a wildcard that causes all entries in the bibliographic database to be included (optional).
    241243% \nocite{*}
     
    245247
    246248% The \appendix statement indicates the beginning of the appendices.
    247 \appendix
     249% \appendix
    248250% Add an un-numbered title page before the appendices and a line in the Table of Contents
    249251% \chapter*{APPENDICES}
     
    252254% \input{appendix-matlab_plots.tex}
    253255
    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)
    256257% -----------------------------
    257 %\printglossaries
    258 %\cleardoublepage
    259 %\phantomsection                % allows hyperref to link to the correct page
     258\printglossary
     259\cleardoublepage
     260\phantomsection         % allows hyperref to link to the correct page
    260261
    261262%----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.