Changes in / [678c540:e41c4c6]
- Location:
- doc/theses/colby_parsons_MMAth
- Files:
-
- 3 edited
-
style/cfa-format.tex (modified) (4 diffs)
-
text/intro.tex (modified) (1 diff)
-
thesis.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/style/cfa-format.tex
r678c540 re41c4c6 9 9 \definecolor{identifierCol}{HTML}{000000} 10 10 11 % from https://gist.github.com/nikolajquorning/92bbbeef32e1dd80105c9bf2daceb89a12 \lstdefinelanguage{sml} {13 morekeywords= {14 EQUAL, GREATER, LESS, NONE, SOME, abstraction, abstype, and, andalso, array, as, before, bool, case, char, datatype, do, else, end, eqtype, exception, exn, false, fn, fun, functor, handle, if, in, include, infix, infixr, int, let, list, local, nil, nonfix, not, o, of, op, open, option, orelse, overload, print, raise, real, rec, ref, sharing, sig, signature, string, struct, structure, substring, then, true, type, unit, val, vector, where, while, with, withtype, word15 },16 morestring=[b]",17 morecomment=[s]{(*}{*)},18 }19 20 \lstdefinelanguage{D}{21 % Keywords22 morekeywords=[1]{23 abstract, alias, align, auto, body, break, cast, catch, class, const,24 continue, debug, delegate, delete, deprecated, do, else, enum, export,25 false, final, finally, for, foreach, foreach_reverse, function, goto, if,26 immutable, import, in, inout, interface, invariant, is, lazy, macro, mixin,27 module, new, nothrow, null, out, override, package, pragma, private,28 protected, public, pure, ref, return, shared, static, struct, super,29 switch, synchronized, template, this, throw, true, try, typedef, typeid,30 typeof, union, unittest, volatile, while, with31 },32 % Special identifiers, common functions33 morekeywords=[2]{enforce},34 % Ugly identifiers35 morekeywords=[3]{36 __DATE__, __EOF__, __FILE__, __LINE__, __TIMESTAMP__, __TIME__, __VENDOR__,37 __VERSION__, __ctfe, __gshared, __monitor, __thread, __vptr, _argptr,38 _arguments, _ctor, _dtor39 },40 % Basic types41 morekeywords=[4]{42 byte, ubyte, short, ushort, int, uint, long, ulong, cent, ucent, void,43 bool, bit, float, double, real, ushort, int, uint, long, ulong, float,44 char, wchar, dchar, string, wstring, dstring, ireal, ifloat, idouble,45 creal, cfloat, cdouble, size_t, ptrdiff_t, sizediff_t, equals_t, hash_t46 },47 % Strings48 morestring=[b]{"},49 morestring=[b]{'},50 morestring=[b]{`},51 % Comments52 comment=[l]{//},53 morecomment=[s]{/*}{*/},54 morecomment=[s][\color{blue}]{/**}{*/},55 morecomment=[n]{/+}{+/},56 morecomment=[n][\color{blue}]{/++}{+/},57 % Options58 sensitive=true59 }60 61 \lstdefinelanguage{rust}{62 % Keywords63 morekeywords=[1]{64 abstract, alignof, as, become, box,65 break, const, continue, crate, do,66 else, enum, extern, false, final,67 fn, for, if, impl, in,68 let, loop, macro, match, mod,69 move, mut, offsetof, override, priv,70 proc, pub, pure, ref, return,71 Self, self, sizeof, static, struct,72 super, trait, true, type, typeof,73 unsafe, unsized, use, virtual, where,74 while, yield75 },76 % Strings77 morestring=[b]{"},78 % Comments79 comment=[l]{//},80 morecomment=[s]{/*}{*/},81 % Options82 sensitive=true83 }84 85 \lstdefinelanguage{pseudo}{86 morekeywords={string,uint,int,bool,float},%87 sensitive=true,%88 morecomment=[l]{//},%89 morecomment=[s]{/*}{*/},%90 morestring=[b]',%91 morestring=[b]",%92 morestring=[s]{`}{`},%93 }%94 95 \newcommand{\KWC}{K-W C\xspace}96 97 \lstdefinestyle{pseudoStyle}{98 escapeinside={@@},99 % basicstyle=\linespread{0.9}\sf\footnotesize, % reduce line spacing and use typewriter font100 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use typewriter font101 % keywordstyle=\bfseries\color{blue},102 % keywordstyle=[2]\bfseries\color{Plum},103 % commentstyle=\itshape\color{OliveGreen}, % green and italic comments104 % identifierstyle=\color{identifierCol},105 % stringstyle=\sf\color{Mahogany}, % use sanserif font106 mathescape=true,107 columns=fixed,108 aboveskip=4pt, % spacing above/below code block109 belowskip=3pt,110 keepspaces=true,111 tabsize=4,112 % frame=lines,113 literate=,114 showlines=true, % show blank lines at end of code115 showspaces=false,116 showstringspaces=false,117 escapechar=\$,118 xleftmargin=\parindentlnth, % indent code to paragraph indentation119 moredelim=[is][\color{red}\bfseries]{**R**}{**R**}, % red highlighting120 % moredelim=* detects keywords, comments, strings, and other delimiters and applies their formatting121 % moredelim=** allows cumulative application122 }123 124 11 \lstdefinestyle{defaultStyle}{ 125 12 escapeinside={@@}, 126 basicstyle=\linespread{0.9}\tt\footnotesize, % reduce line spacing and use typewriter font 127 keywordstyle=\bfseries\color{blue}, 128 keywordstyle=[2]\bfseries\color{Plum}, 129 commentstyle=\itshape\color{OliveGreen}, % green and italic comments 130 identifierstyle=\color{identifierCol}, 131 stringstyle=\sf\color{Mahogany}, % use sanserif font 13 % basicstyle=\linespread{0.9}\tt\footnotesize, % reduce line spacing and use typewriter font 14 basicstyle=\linespread{0.9}\sf, % reduce line spacing and use typewriter 15 % keywordstyle=\bfseries\color{blue}, 16 % keywordstyle=[2]\bfseries\color{Plum}, 17 % commentstyle=\itshape\color{OliveGreen}, % green and italic comments 18 % identifierstyle=\color{identifierCol}, 19 % stringstyle=\sf\color{Mahogany}, % use sanserif font 20 stringstyle=\tt, % use sanserif font 132 21 mathescape=true, 133 columns=fixed, 134 aboveskip=4pt, % spacing above/below code block 135 belowskip=3pt, 22 % columns=fixed, 23 columns=fullflexible, 24 % aboveskip=4pt, % spacing above/below code block 25 % belowskip=3pt, 136 26 keepspaces=true, 137 27 tabsize=4, … … 174 64 xleftmargin=\parindentlnth, % indent code to paragraph indentation 175 65 moredelim=[is][\color{red}\bfseries]{**R**}{**R**}, % red highlighting 176 morekeywords=[2]{accept, signal, signal_block, wait, waitfor },66 morekeywords=[2]{accept, signal, signal_block, wait, waitfor, waituntil}, 177 67 abovecaptionskip=5pt, 178 68 } 179 180 % \lstMakeShortInline[basewidth=0.5em,breaklines=true,basicstyle=\normalsize\ttfamily\color{basicCol}]@ % single-character for \lstinline181 % \lstMakeShortInline@182 69 183 70 \lstnewenvironment{ccode}[1][]{ … … 194 81 language = CFA, 195 82 style=cfaStyle, 196 captionpos=b,197 #1198 }199 }{}200 201 \lstnewenvironment{pseudo}[1][]{202 \lstset{203 language = pseudo,204 style=pseudoStyle,205 83 captionpos=b, 206 84 #1 … … 235 113 }{} 236 114 237 \lstnewenvironment{scalacode}[1][]{238 \lstset{239 language = scala,240 style=defaultStyle,241 captionpos=b,242 #1243 }244 }{}245 246 \lstnewenvironment{smlcode}[1][]{247 \lstset{248 language = sml,249 style=defaultStyle,250 captionpos=b,251 #1252 }253 }{}254 255 \lstnewenvironment{dcode}[1][]{256 \lstset{257 language = D,258 style=defaultStyle,259 captionpos=b,260 #1261 }262 }{}263 264 \lstnewenvironment{rustcode}[1][]{265 \lstset{266 language = rust,267 style=defaultStyle,268 captionpos=b,269 #1270 }271 }{}272 273 115 \lstnewenvironment{gocode}[1][]{ 274 116 \lstset{ -
doc/theses/colby_parsons_MMAth/text/intro.tex
r678c540 re41c4c6 1 1 % ====================================================================== 2 2 % ====================================================================== 3 \chapter{Introduction}\label{s: cfa}3 \chapter{Introduction}\label{s:intro} 4 4 % ====================================================================== 5 5 % ====================================================================== -
doc/theses/colby_parsons_MMAth/thesis.tex
r678c540 re41c4c6 7 7 % Latex packages used in the document. 8 8 \usepackage{fullpage,times,comment} 9 %\usepackage[T1]{fontenc}10 %\usepackage[scaled=0.88]{helvet} % descent Helvetica font and scale to times size11 9 \usepackage{textcomp} 12 %\usepackage[latin1]{inputenc}13 10 \usepackage{epic,eepic} 14 \usepackage{upquote} % switch curled `'" to straight15 11 \usepackage{dirtytalk} 16 \usepackage{calc}17 12 \usepackage{xspace} 18 % \usepackage[labelformat=simple]{subfig}19 % \renewcommand{\thesubfigure}{(\alph{subfigure})}20 13 \usepackage{subcaption} 21 % \usepackage{subfigure}22 14 \usepackage{graphicx} 23 15 \usepackage{tabularx} 24 \usepackage{multicol}25 16 \usepackage[acronym]{glossaries} 26 \usepackage{varioref}27 17 \usepackage{listings} % format program code 28 18 \usepackage[flushmargin]{footmisc} % support label/reference in footnote 29 \usepackage{latexsym} % \Box glyph30 19 \usepackage{mathptmx} % better math font with "times" 31 20 \usepackage[usenames]{color} … … 34 23 \usepackage{fancyhdr} 35 24 \usepackage{float} 36 \usepackage{siunitx}37 \sisetup{ binary-units=true }38 25 \input{style} % bespoke macros used in the document 39 \usepackage{url}40 26 \usepackage[dvips,plainpages=false,pdfpagelabels,pdfpagemode=UseNone,colorlinks=true,pagebackref=true,linkcolor=blue,citecolor=blue,urlcolor=blue,pagebackref=true,breaklinks=true]{hyperref} 41 \usepackage{breakurl}42 27 \urlstyle{rm} 28 % \usepackage{breakurl} % used to avoid line breaks inside urls -> uncomment later if needed 43 29 44 30 \usepackage{tikz} 45 31 \def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;} 46 32 47 \setlength{\topmargin}{-0.45in} % move running title into header 33 % Setting up the page margins... 34 \setlength{\textheight}{9in} 35 \setlength{\topmargin}{-0.45in} 48 36 \setlength{\headsep}{0.25in} 37 % uWaterloo thesis requirements specify a minimum of 1 inch (72pt) margin at the 38 % top, bottom, and outside page edges and a 1.125 in. (81pt) gutter margin (on binding side). 39 % 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. 40 % Set margins to minimum permitted by uWaterloo thesis regulations: 41 \setlength{\marginparwidth}{0pt} % width of margin notes 42 % N.B. If margin notes are used, you must adjust \textwidth, \marginparwidth 43 % and \marginparsep so that the space left between the margin notes and page 44 % edge is less than 15 mm (0.6 in.) 45 \setlength{\marginparsep}{0pt} % width of space between body text and margin notes 46 \setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all 47 % even-numbered pages when the "twoside" printing option is selected 48 \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 49 \setlength{\textwidth}{6.375in} % assuming US letter paper (8.5 in. x 11 in.) and side margins as above 50 \raggedbottom 51 52 % The following statement specifies the amount of space between paragraphs. Other reasonable specifications are \bigskipamount and \smallskipamount. 53 \setlength{\parskip}{\medskipamount} 49 54 50 55 \newsavebox{\myboxA} % used with subfigure
Note:
See TracChangeset
for help on using the changeset viewer.