aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/tex
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-11-14 19:14:22 +0100
committerNao Pross <np@0hm.ch>2021-11-14 19:14:22 +0100
commitd5726abcecefa765bd3ccef9a56acc20a8e5daef (patch)
treed41ea6bf8ca4d0edc70d30d23d3d3a462d63fcd7 /doc/thesis/tex
parentStart writing discrete time model of fading channels (diff)
downloadFading-d5726abcecefa765bd3ccef9a56acc20a8e5daef.tar.gz
Fading-d5726abcecefa765bd3ccef9a56acc20a8e5daef.zip
Continue discrete model
Diffstat (limited to '')
-rw-r--r--doc/thesis/tex/docstyle.sty37
1 files changed, 37 insertions, 0 deletions
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: