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},