Merge pull request 'Default to listing captions below listings' (#15) from 171wita20/HTLLE-DA-Vorlage:feature/caption-headings into master

Reviewed-on: Hg/HTLLE-DA-Vorlage#15
This commit is contained in:
Günther Hutter 2022-02-11 13:11:10 +01:00
commit 78ca6adddd

View File

@ -204,6 +204,7 @@ $if(listings)$
\newcommand{\passthrough}[1]{#1} \newcommand{\passthrough}[1]{#1}
\lstset{defaultdialect=[5.3]Lua} \lstset{defaultdialect=[5.3]Lua}
\lstset{defaultdialect=[x86masm]Assembler} \lstset{defaultdialect=[x86masm]Assembler}
\lstset{captionpos=b} % sets the position of the listing headers to bottom
$endif$ $endif$
% Redefine the verbatim environment 'Highlighting' to break long lines (with % Redefine the verbatim environment 'Highlighting' to break long lines (with
@ -249,8 +250,8 @@ $endif$
numberstyle = \color{listing-numbers}, numberstyle = \color{listing-numbers},
aboveskip = 1.0em, aboveskip = 1.0em,
belowskip = 0.1em, belowskip = 0.1em,
abovecaptionskip = 0em, abovecaptionskip = 1.0em, % when listing header is on bottom set to 1.0em otherwise 0em
belowcaptionskip = 1.0em, belowcaptionskip = 0em, % when listing header is on bottom set to 0em otherwise 1.0em
keywordstyle = {\color{listing-keyword}\bfseries}, keywordstyle = {\color{listing-keyword}\bfseries},
keywordstyle = {[2]\color{listing-keyword-2}\bfseries}, keywordstyle = {[2]\color{listing-keyword-2}\bfseries},
keywordstyle = {[3]\color{listing-keyword-3}\bfseries\itshape}, keywordstyle = {[3]\color{listing-keyword-3}\bfseries\itshape},