diff options
Diffstat (limited to 'doc/thesis/tex')
-rw-r--r-- | doc/thesis/tex/docstyle.sty | 37 |
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: |