Ignore:
Timestamp:
Mar 9, 2024, 5:40:09 PM (2 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
b64d0f4
Parents:
03606ce
Message:

switch to tabs, first attempt changing program-input style

File:
1 edited

Legend:

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

    r03606ce r266732e  
    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".
     
    6061% For hyperlinked PDF, suitable for viewing on a computer, use this:
    6162\documentclass[letterpaper,12pt,titlepage,oneside,final]{book}
    62 \usepackage{times}
    6363\usepackage[T1]{fontenc}        % Latin-1 => 256-bit characters, => | not dash, <> not Spanish question marks
    64 
     64 
    6565% For PDF, suitable for double-sided printing, change the PrintVersion variable below to "true" and use this \documentclass line instead of the one above:
    6666%\documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}
     
    6969% If you have to, it's easier to make changes to nomenclature once here than in a million places throughout your thesis!
    7070\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 
    7272\newcommand{\href}[1]{#1} % does nothing, but defines the command so the print-optimized version will ignore \href tags (redefined by hyperref pkg).
    7373%\newcommand{\texorpdfstring}[2]{#1} % does nothing, but defines the command
     
    8282%\usepackage{nomencl} % For a nomenclature (optional; available from ctan.org)
    8383\usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments
     84\usepackage{fullpage,times,comment}
    8485\usepackage{xcolor}
    8586\usepackage{epic,eepic}
    8687\usepackage{graphicx}
    87 \graphicspath{{pictures/}} % picture directory
    88 \usepackage{comment} % Removes large sections of the document.
    8988\usepackage{tabularx}
    9089\usepackage[labelformat=simple,aboveskip=0pt,farskip=0pt,font=normalsize]{subfig}
    9190\renewcommand\thesubfigure{(\alph{subfigure})}
    9291
    93 \usepackage{algorithm}
    94 \usepackage{algpseudocode}
    95 
     92\graphicspath{{pictures/}} % picture directory
     93%\usepackage{algorithm}
     94%\usepackage{algpseudocode}
    9695\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}}
    97109
    98110% Hyperlinks make it very easy to navigate an electronic document.
    99111% 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 
    101113% N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE
     114\usepackage{url}
    102115\usepackage[pagebackref=true]{hyperref} % with basic options
    103116%\usepackage[pdftex,pagebackref=true]{hyperref}
     
    110123    pdffitwindow=false,     % window fit to page when opened
    111124    pdfstartview={FitH},    % fits the width of the page to the window
    112     pdftitle={Cforall Memory Allocation}, % title: CHANGE THIS TEXT!
    113     pdfauthor={Mubeen Zulfiqar},    % author: CHANGE THIS TEXT! and uncomment this line
     125    pdftitle={\CFA Container Library}, % title: CHANGE THIS TEXT!
     126    pdfauthor={Mike Brooks},    % author: CHANGE THIS TEXT! and uncomment this line
    114127    pdfsubject={Cforall},  % subject: CHANGE THIS TEXT! and uncomment this line
    115     pdfkeywords={Cforall} {storage allocation} {C language}, % optional list of keywords
     128    pdfkeywords={Cforall} {container library} {C language}, % optional list of keywords
    116129    pdfnewwindow=true,      % links in new window
    117130    colorlinks=true,        % false: boxed links; true: colored links
    118131    linkcolor=blue,         % color of internal links
    119     citecolor=blue,        % color of links to bibliography
     132    citecolor=blue,         % color of links to bibliography
    120133    filecolor=magenta,      % color of file links
    121     urlcolor=blue,           % color of external links
     134    urlcolor=blue,          % color of external links
    122135    breaklinks=true
    123136}
    124137\ifthenelse{\boolean{PrintVersion}}{   % for improved print quality, change some hyperref options
    125138\hypersetup{    % override some previously defined hyperref options
     139%    colorlinks,%
    126140    citecolor=black,%
    127141    filecolor=black,%
    128142    linkcolor=black,%
    129     urlcolor=black
    130 }}{} % end of ifthenelse (no else)
     143    urlcolor=black}
     144}{} % end of ifthenelse (no else)
     145
     146\usepackage{breakurl}
    131147\urlstyle{sf}
    132148
    133149%\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 
    136152% installation instructions there.
    137153
     
    140156
    141157% 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}
    145161% 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). 
    147163% 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.
    148164% Set margins to minimum permitted by uWaterloo thesis regulations:
     
    152168% edge is less than 15 mm (0.6 in.)
    153169\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 
    155171% even-numbered pages when the "twoside" printing option is selected
    156172\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
     
    161177\setlength{\parskip}{\medskipamount}
    162178
    163 % The following statement controls the line spacing.
     179% The following statement controls the line spacing. 
    164180% The default spacing corresponds to good typographic conventions and only slight changes (e.g., perhaps "1.2"), if any, should be made.
    165181\renewcommand{\baselinestretch}{1} % this is the default line space setting
     
    174190\let\cleardoublepage\clearemptydoublepage
    175191
    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...)
    178193%\input{glossaries}
    179194%\makeglossaries
    180 
    181 % cfa macros used in the document
    182 \input{common}
    183 %\usepackageinput{common}
    184 \CFAStyle                                               % CFA code-style
    185 \lstset{language=CFA}                                   % default language
    186 \lstset{basicstyle=\linespread{0.9}\sf}                 % CFA typewriter font
    187 \lstset{inputpath={programs}}
    188 \newcommand{\PAB}[1]{{\color{red}PAB: #1}}
    189 
    190 \newcommand{\uCpp}{$\mu$\CC}
    191195
    192196%======================================================================
     
    202206% dedication, table of contents, list of tables, list of figures, nomenclature, etc.
    203207%----------------------------------------------------------------------
    204 \input{uw-ethesis-frontpgs}
     208\input{uw-ethesis-frontpgs} 
    205209
    206210%----------------------------------------------------------------------
     
    211215% Tip: Putting each sentence on a new line is a way to simplify later editing.
    212216%----------------------------------------------------------------------
    213 \begin{sloppypar}
     217
    214218\input{intro}
    215219\input{background}
     
    219223\input{conclusion}
    220224
    221 \end{sloppypar}
    222 
    223225%----------------------------------------------------------------------
    224226% END MATERIAL
     
    228230% Bibliography
    229231
    230 % The following statement selects the style to use for references.
     232% The following statement selects the style to use for references. 
    231233% It controls the sort order of the entries in the bibliography and also the formatting for the in-text labels.
    232234\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. 
    234236% It assumes you're using BibTeX to manage your references (if not, why not?).
    235237\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.
    236238% 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             
    238240% The following statement causes the title "References" to be used for the bibliography section:
    239241\renewcommand*{\bibname}{References}
     
    243245
    244246\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. 
    246248% Just list them all in the \bibliogaphy command, separated by commas (no spaces).
    247249
    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. 
    249251% The asterisk is a wildcard that causes all entries in the bibliographic database to be included (optional).
    250252% \nocite{*}
     
    261263% \input{appendix-matlab_plots.tex}
    262264
    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)
    265266% -----------------------------
    266267%\printglossaries
Note: See TracChangeset for help on using the changeset viewer.