| 1 |
% EVERYTHING AFTER THIS POINT IS USED ONLY FOR FORMATTING THE EXAMPLES IN THIS |
| 2 |
% DOCUMENT (DO NOT USE THESE IN YOUR THESIS) |
| 3 |
% PLEASE DELETE THESE. |
| 4 |
\usepackage{float} |
| 5 |
|
| 6 |
\usepackage{fontawesome} |
| 7 |
\usepackage{lipsum} |
| 8 |
\usepackage{xcolor} |
| 9 |
%% COLOUR DEFINITIONS |
| 10 |
\definecolor{yellow}{rgb}{0.8,0.8,0} |
| 11 |
\definecolor{grey}{rgb}{0.3,0.3,0.3} |
| 12 |
\definecolor{gold}{rgb}{0.4,0.4,0.0} |
| 13 |
\definecolor{str}{rgb}{1,0,1} |
| 14 |
\definecolor{cmd}{rgb}{0,0,1} |
| 15 |
\definecolor{env}{rgb}{0.5,0,1} |
| 16 |
\definecolor{pkg}{rgb}{0,0.6,0} |
| 17 |
\definecolor{opt}{rgb}{1,0.5,0} |
| 18 |
|
| 19 |
|
| 20 |
%% NEW COMMANDS |
| 21 |
\newcommand{\exampleText}{\lipsum[1][1-4]} |
| 22 |
\AtBeginDocument{\lstset{style=LaTeXStyle}} |
| 23 |
|
| 24 |
\newcommand{\University}{University of Alberta} |
| 25 |
\newcommand{\Uni}{UofA} |
| 26 |
\newcommand{\Faculty}{Faculty of Graduate and Post-Doctorate Studies} |
| 27 |
\newcommand{\Fac}{GPS} |
| 28 |
|
| 29 |
\newcommand{\commenting}[1]{% |
| 30 |
\noindent |
| 31 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 32 |
\textcolor{grey}{\faCommenting} & \textcolor{grey}{\textit{#1}} |
| 33 |
\end{tabularx}} |
| 34 |
|
| 35 |
\newcommand{\danger}[1]{% |
| 36 |
\noindent |
| 37 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 38 |
\color{black}\colorbox{red}{\faWarning\ \textsc{\textbf{DANGER}}} & {\textbf{\MakeUppercase{#1}}} |
| 39 |
\end{tabularx}} |
| 40 |
|
| 41 |
\newcommand{\warning}[1]{% |
| 42 |
\noindent |
| 43 |
\noindent |
| 44 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 45 |
\color{black}\colorbox{orange}{\faWarning\ \textsc{\textbf{WARNING}}} & {\textbf{#1}} |
| 46 |
\end{tabularx}} |
| 47 |
|
| 48 |
\newcommand{\caution}[1]{% |
| 49 |
\noindent |
| 50 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 51 |
\color{black}\colorbox{yellow}{\faWarning\ \textsc{\textbf{CAUTION}}} & {#1} |
| 52 |
\end{tabularx}} |
| 53 |
|
| 54 |
\newcommand{\notice}[1]{% |
| 55 |
\noindent |
| 56 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 57 |
\color{white}\colorbox{black}{\textsc{\textbf{\textsl{NOTICE}}}} & {#1} |
| 58 |
\end{tabularx}} |
| 59 |
|
| 60 |
\newcommand{\alert}[1]{% |
| 61 |
\noindent |
| 62 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 63 |
\faWarning & {#1} |
| 64 |
\end{tabularx}} |
| 65 |
|
| 66 |
\newcommand{\note}[1]{% |
| 67 |
\noindent |
| 68 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 69 |
\textbf{\textsl{Note: }} & {\textit{#1}} |
| 70 |
\end{tabularx}} |
| 71 |
|
| 72 |
\newcommand{\info}[1]{% |
| 73 |
\noindent |
| 74 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 75 |
\textcolor{blue}{\faInfoCircle} & \textcolor{blue}{#1} |
| 76 |
\end{tabularx}} |
| 77 |
|
| 78 |
\newcommand{\question}[1]{% |
| 79 |
\noindent |
| 80 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 81 |
\textcolor{orange}{\faQuestionCircle} & \textbf{#1} |
| 82 |
\end{tabularx}} |
| 83 |
|
| 84 |
\newcommand{\answer}[1]{% |
| 85 |
\noindent |
| 86 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 87 |
\-\hspace{4ex}{\color{orange}{\faCheckCircle}} & \textit{#1} |
| 88 |
\end{tabularx}} |
| 89 |
|
| 90 |
\newcommand{\qna}[2]{% |
| 91 |
\noindent |
| 92 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 93 |
\textcolor{orange}{\faQuestionCircle} & \textbf{#1} |
| 94 |
\end{tabularx} |
| 95 |
\noindent |
| 96 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 97 |
\-\hspace{4ex} & \textit{#2} |
| 98 |
\end{tabularx}} |
| 99 |
|
| 100 |
\newcommand{\tip}[1]{% |
| 101 |
\noindent |
| 102 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 103 |
\textcolor{gold}{\faLightbulbO{}} & \textcolor{gold}{#1} |
| 104 |
\end{tabularx}} |
| 105 |
|
| 106 |
\newcommand{\key}[1]{% |
| 107 |
\noindent |
| 108 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 109 |
\textcolor{black}{\faKey} & {#1} |
| 110 |
\end{tabularx}} |
| 111 |
|
| 112 |
\newcommand{\clouddownload}[2]{% |
| 113 |
\noindent |
| 114 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 115 |
\faCloudDownload & \href{#1}{#2} |
| 116 |
\end{tabularx}} |
| 117 |
|
| 118 |
\newcommand{\important}[1]{% |
| 119 |
\noindent |
| 120 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 121 |
\textcolor{red}{\faExclamationCircle} & \textcolor{red}{#1} |
| 122 |
\end{tabularx}} |
| 123 |
|
| 124 |
\newcommand{\tool}[1]{% |
| 125 |
\noindent |
| 126 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 127 |
\textcolor{black}{\faWrench} & #1 |
| 128 |
\end{tabularx}} |
| 129 |
|
| 130 |
\newcommand{\setting}[1]{% |
| 131 |
\noindent |
| 132 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 133 |
\textcolor{black}{\faCogs} & #1 |
| 134 |
\end{tabularx}} |
| 135 |
|
| 136 |
\newcommand{\software}[1]{% |
| 137 |
\noindent |
| 138 |
\begin{tabularx}{\linewidth}{@{}lX@{}} |
| 139 |
\textcolor{black}{\faFileCodeO} & #1 |
| 140 |
\end{tabularx}} |
| 141 |
|
| 142 |
\newcommand{\option}[1]{% |
| 143 |
\noindent |
| 144 |
\begin{tabularx}{\linewidth}{@{}X@{}} |
| 145 |
`\textbf{#1}' |
| 146 |
\end{tabularx}} |
| 147 |
|
| 148 |
\newcommand{\file}[1]{% |
| 149 |
\noindent |
| 150 |
\begin{tabularx}{\linewidth}{@{}X@{}} |
| 151 |
\faFileO{} \texttt{#1} |
| 152 |
\end{tabularx}} |
| 153 |
|
| 154 |
\newcommand{\folder}[1]{% |
| 155 |
\noindent |
| 156 |
\begin{tabularx}{\linewidth}{@{}X@{}} |
| 157 |
\faFolderO{} \texttt{#1} |
| 158 |
\end{tabularx}} |
| 159 |
|
| 160 |
\newcommand{\str}[1]{% |
| 161 |
\texttt{\textcolor{pkg}{#1}}} |
| 162 |
|
| 163 |
\newcommand{\pkg}[1]{% |
| 164 |
\texttt{\textcolor{pkg}{#1}}} |
| 165 |
|
| 166 |
\newcommand{\cmd}[1]{% |
| 167 |
\texttt{\textcolor{cmd}{\textbackslash\detokenize{#1}}}} |
| 168 |
|
| 169 |
\newcommand{\opt}[1]{% |
| 170 |
\texttt{\textcolor{opt}{\detokenize{#1}}}} |
| 171 |
\newcommand{\oopt}[1]{% |
| 172 |
\texttt{[\textcolor{opt}{\detokenize{#1}}]}} |
| 173 |
\newcommand{\mopt}[1]{% |
| 174 |
\texttt{\{\textcolor{opt}{\detokenize{#1}}\}}} |
| 175 |
|
| 176 |
\newcommand{\env}[1]{% |
| 177 |
\texttt{\textcolor{env}{#1}}} |
| 178 |
|
| 179 |
\newcommand{\benv}[1]{% |
| 180 |
\texttt{\cmd{begin}\{\textcolor{env}{#1}\}}} |
| 181 |
\newcommand{\eenv}[1]{% |
| 182 |
\texttt{\cmd{end}\{\textcolor{env}{#1}\}}} |