From d5726abcecefa765bd3ccef9a56acc20a8e5daef Mon Sep 17 00:00:00 2001
From: Nao Pross <np@0hm.ch>
Date: Sun, 14 Nov 2021 19:14:22 +0100
Subject: Continue discrete model

---
 doc/thesis/tex/docstyle.sty | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

(limited to 'doc/thesis/tex/docstyle.sty')

diff --git a/doc/thesis/tex/docstyle.sty b/doc/thesis/tex/docstyle.sty
index 2adec0f..b9a0b8d 100644
--- a/doc/thesis/tex/docstyle.sty
+++ b/doc/thesis/tex/docstyle.sty
@@ -43,6 +43,12 @@
 %% Font configuration
 % use roboto for sans serif
 \RequirePackage{roboto}
+% Bera for monospaced font
+\setmonofont[Path=misc/,
+	BoldFont = VeraMoBd,
+	ItalicFont = VeraMoIt,
+	BoldItalicFont = VeraMoBI,
+]{VeraMono}
 
 %% Floating captions configuration
 % set captions font
@@ -89,4 +95,35 @@
 \usepackage[labelformat=simple]{subcaption}
 \renewcommand\thesubfigure{(\alph{subfigure})}
 
+%% Set up listings
+\RequirePackage{listings}
+
+%% create a lstlisting style
+\lstdefinestyle{minimalist}{
+  belowcaptionskip = \baselineskip,
+  breaklines = true,
+  inputencoding = utf8,
+	% frame
+  frame = leftline,
+	framerule = 3pt,
+	rulecolor = \color{cyan!20!white},
+  % margin
+	xleftmargin = 5mm,
+  framexleftmargin = 5mm,
+  % background
+	backgroundcolor = \color{white},
+  % default language:
+  language = TeX,
+  showstringspaces = false,
+  % font
+  basicstyle = \ttfamily\small,
+	identifierstyle = \color{black},
+	keywordstyle = \bfseries \color{blue!70!black},
+	commentstyle = \color{gray},
+	stringstyle = \color{orange!60!black},
+}
+
+% and set style
+\lstset{style=minimalist, escapechar=`}
+
 % vim: set ts=2 sw=2 noet:
-- 
cgit v1.2.1

