From cea5f30db1677907a7ab143186f7b2a415d2d4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Nu=C3=9Fbaumer?= Date: Fri, 21 Jan 2022 15:55:04 +0100 Subject: [PATCH] defaulted to listing captions below listings --- style/template.tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/style/template.tex b/style/template.tex index 9710a38..e63b4fe 100644 --- a/style/template.tex +++ b/style/template.tex @@ -204,6 +204,7 @@ $if(listings)$ \newcommand{\passthrough}[1]{#1} \lstset{defaultdialect=[5.3]Lua} \lstset{defaultdialect=[x86masm]Assembler} +\lstset{captionpos=b} % sets the position of the listing headers to bottom $endif$ % Redefine the verbatim environment 'Highlighting' to break long lines (with @@ -249,8 +250,8 @@ $endif$ numberstyle = \color{listing-numbers}, aboveskip = 1.0em, belowskip = 0.1em, - abovecaptionskip = 0em, - belowcaptionskip = 1.0em, + abovecaptionskip = 1.0em, % when listing header is on bottom set to 1.0em otherwise 0em + belowcaptionskip = 0em, % when listing header is on bottom set to 0em otherwise 1.0em keywordstyle = {\color{listing-keyword}\bfseries}, keywordstyle = {[2]\color{listing-keyword-2}\bfseries}, keywordstyle = {[3]\color{listing-keyword-3}\bfseries\itshape},