Commits

James Tocknell committed 07b2e70

Added use of minted.

Comments (0)

Files changed (2)

texmf/tex/aragilar/aragilar-thesis.sty

 \newcommand{\codename}[1]{\texttt{#1}}
 \newcommand{\funcname}[1]{\texttt{#1}}
 \newcommand{\diffopt}[1]{\frac{d #1}{dτ}}
+\newcommand{\honourscode}[1]{\inputminted[fontsize=\footnotesize,linenos=true,frame=lines,label={honours\_main\_code/\protect\detokenize{#1}},labelposition=topline]{python3}{../MainCode/honours_main_code/#1}}
+

texmf/tex/aragilar/code-formatting.sty

 
 \ProcessPgfOptions{/ARACODE}
 
-\RequirePackage{listings} %%% NEED TO ADD STUFF
+%%\RequirePackage{listings} %%% NEED TO ADD STUFF
 
-%%\RequirePackage{minted} %%uses Pygments, may be better than listings
+\RequirePackage{minted} %%uses Pygments, may be better than listings
+\minted@define@extra{label}
+\minted@define@extra{labelposition}
+\usemintedstyle{tango}