aboutsummaryrefslogtreecommitdiff
path: root/dissertation.cls
diff options
context:
space:
mode:
Diffstat (limited to 'dissertation.cls')
-rw-r--r--dissertation.cls23
1 files changed, 19 insertions, 4 deletions
diff --git a/dissertation.cls b/dissertation.cls
index 9452608..f850af5 100644
--- a/dissertation.cls
+++ b/dissertation.cls
@@ -39,6 +39,16 @@
\RequirePackage{etoolbox}
\AtBeginEnvironment{verse}{\singlespacing}
+\newenvironment{dquote}
+ {
+ \singlespacing
+ \it
+ }
+ {
+ }
+
+\newcommand{\dsignature}[1]{\hfill \normalfont{-- #1}}
+
% THE FOLLOWING IS DARK MAGIC THAT I DON'T UNDERSTAND
% I'M SURE I COULD DO BETTER...
% - Blaise 2018-03-06
@@ -67,9 +77,13 @@
% --- code environment ----------------------------------------------------------------------------
-% \RequirePackage{minted}
-\definecolor{light-gray}{gray}{0.90}
-\newcommand{\code}[1]{\colorbox{light-gray}{\texttt{#1}}}
+\RequirePackage{etoolbox}
+\RequirePackage{minted}
+\fvset{bgcolor=red}
+\usemintedstyle{colorful}
+\BeforeBeginEnvironment{minted}{\begin{singlespace}}
+\AfterEndEnvironment{minted}{\end{singlespace}}
+\newmint{python}
% --- tables --------------------------------------------------------------------------------------
@@ -81,7 +95,8 @@
}
{
\end{table}
- \clearpage}
+ \clearpage
+ }
% --- graphics ------------------------------------------------------------------------------------