Ignore:
Timestamp:
Apr 20, 2021, 4:34:59 PM (4 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0583b47b, 6c5d92f
Parents:
d2fadeb (diff), 6a8208cb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'andrew-mmath' into 'master', collecting my responses to Peter's last updates.

File:
1 edited

Legend:

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

    rd2fadeb r59f3f61  
    7474% ======================================================================
    7575%   D O C U M E N T   P R E A M B L E
    76 % Specify the document class, default style attributes, page dimensions, etc.
    77 % For hyperlinked PDF, suitable for viewing on a computer, use this:
    78 \documentclass[letterpaper,12pt,titlepage,oneside,final]{book}
    79 
    80 % For PDF, suitable for double-sided printing, change the PrintVersion
    81 % variable below to "true" and use this \documentclass line instead of the
    82 % one above:
    83 %\documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}
    84 
    85 \usepackage{etoolbox}
     76\RequirePackage{etoolbox}
     77
     78% Control if this for print (set true) or will stay digital (default).
     79% Print is two sided, digital uses more colours.
     80\newtoggle{printversion}
     81%\toggletrue{printversion}
     82
     83\iftoggle{printversion}{%
     84  \documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book}
     85}{%
     86  \documentclass[letterpaper,12pt,titlepage,oneside,final]{book}
     87}
    8688
    8789% Some LaTeX commands I define for my own nomenclature.
     
    9496% Anything defined here may be redefined by packages added below...
    9597
    96 % This package allows if-then-else control structures.
    97 \usepackage{ifthen}
    98 \newboolean{PrintVersion}
    99 \setboolean{PrintVersion}{false}
    100 % CHANGE THIS VALUE TO "true" as necessary, to improve printed results for
    101 % hard copies by overriding some options of the hyperref package, called below.
    102 
    103 %\usepackage{nomencl} % For a nomenclature (optional; available from ctan.org)
     98% For a nomenclature (optional; available from ctan.org)
     99%\usepackage{nomencl}
    104100% Lots of math symbols and environments
    105101\usepackage{amsmath,amssymb,amstext}
    106 % For including graphics N.B. pdftex graphics driver
    107 %\usepackage[pdftex]{graphicx}
     102% For including graphics (must match graphics driver)
    108103\usepackage{epic,eepic}
    109104\usepackage{graphicx}
     
    113108\usepackage{todonotes}
    114109
    115 
    116110% Hyperlinks make it very easy to navigate an electronic document.
    117111% In addition, this is where you should specify the thesis title and author as
     
    119113% Use the "hyperref" package
    120114% N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE
    121 %\usepackage[pdftex,pagebackref=true]{hyperref} % with basic options
    122 \usepackage[pagebackref=true]{hyperref} % with basic options
    123 %\usepackage[pdftex,pagebackref=true]{hyperref}
     115\usepackage[pagebackref=true]{hyperref}
    124116% N.B. pagebackref=true provides links back from the References to the body
    125117% text. This can cause trouble for printing.
     
    131123    pdffitwindow=false,     % window fit to page when opened
    132124    pdfstartview={FitH},    % fits the width of the page to the window
    133 %    pdftitle={uWaterloo\ LaTeX\ Thesis\ Template}, % title: CHANGE THIS TEXT!
    134 %    pdfauthor={Author},    % author: CHANGE THIS TEXT! and uncomment this line
    135 %    pdfsubject={Subject},  % subject: CHANGE THIS TEXT! and uncomment this line
    136 %    pdfkeywords={keyword1} {key2} {key3}, % optional list of keywords
    137125    pdfnewwindow=true,      % links in new window
    138126    colorlinks=true,        % false: boxed links; true: colored links
    139     linkcolor=blue,         % color of internal links
    140     citecolor=green,        % color of links to bibliography
    141     filecolor=magenta,      % color of file links
    142     urlcolor=cyan           % color of external links
    143127}
    144 % for improved print quality, change some hyperref options
    145 \ifthenelse{\boolean{PrintVersion}}{
    146 \hypersetup{    % override some previously defined hyperref options
    147 %    colorlinks,%
    148     citecolor=black,%
    149     filecolor=black,%
    150     linkcolor=black,%
    151     urlcolor=black}
    152 }{} % end of ifthenelse (no else)
     128\iftoggle{printversion}{
     129  \hypersetup{
     130    citecolor=black,        % colour of links to bibliography
     131    filecolor=black,        % colour of file links
     132    linkcolor=black,        % colour of internal links
     133    urlcolor=black,         % colour of external links
     134  }
     135}{ % Digital Version
     136  \hypersetup{
     137    citecolor=green,
     138    filecolor=magenta,
     139    linkcolor=blue,
     140    urlcolor=cyan,
     141  }
     142}
     143
     144\hypersetup{
     145  pdftitle={Exception Handling in Cforall},
     146  pdfauthor={Andrew James Beach},
     147  pdfsubject={Computer Science},
     148  pdfkeywords={programming languages} {exceptions}
     149      {language design} {language implementation},
     150}
    153151
    154152% Exception to the rule of hyperref being the last add-on package
     
    220218\pdfstringdefDisableCommands{\def\Cpp{C++}}
    221219
     220% Wrappers for inline code snippits.
     221\newrobustcmd*\codeCFA[1]{\lstinline[language=CFA]{#1}}
     222\newrobustcmd*\codeC[1]{\lstinline[language=C]{#1}}
     223\newrobustcmd*\codeCpp[1]{\lstinline[language=C++]{#1}}
     224\newrobustcmd*\codePy[1]{\lstinline[language=Python]{#1}}
     225
    222226% Colour text, formatted in LaTeX style instead of TeX style.
    223227\newcommand*\colour[2]{{\color{#1}#2}}
Note: See TracChangeset for help on using the changeset viewer.