From a60b1a981b6b6ecbe0b390a0e7d6ece1d517f123 Mon Sep 17 00:00:00 2001
From: Adrian Kummerlaender
Date: Mon, 14 Jan 2019 14:49:49 +0100
Subject: Add minted package for code listings

---
 Makefile  | 4 ++--
 main.tex  | 3 +++
 shell.nix | 2 ++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c004261..e822d5e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
 .PHONY: build clean live
 
 build:
-	latexmk -pdf -outdir=build main.tex
+	latexmk -shell-escape -pdf -outdir=build main.tex
 
 live:
-	latexmk -pdf -pvc -outdir=build main.tex
+	latexmk -shell-escape -pdf -pvc -outdir=build main.tex
 
 clean:
 	latexmk -C -outdir=build main.tex
diff --git a/main.tex b/main.tex
index 814dd11..2e95c66 100644
--- a/main.tex
+++ b/main.tex
@@ -9,6 +9,9 @@
 \usepackage{amsmath,amssymb,amsthm}
 %\usepackage[euler-digits,euler-hat-accent]{eulervm}
 \usepackage{enumitem}
+\usepackage[outputdir=build]{minted}
+
+\usemintedstyle{borland}
 
 \usepackage{hyperref}
 \hypersetup{
diff --git a/shell.nix b/shell.nix
index 35b233b..e5be769 100644
--- a/shell.nix
+++ b/shell.nix
@@ -11,12 +11,14 @@ stdenv.mkDerivation rec {
       eulervm
       cm-super
       enumitem
+      minted fvextra ifplatform framed
       bibtex biblatex logreq xstring
       ;
     };
   in [
     gnumake
     texlive-custom
+    python3Packages.pygments
   ];
 
   shellHook = ''
-- 
cgit v1.2.3