Skip to content
Snippets Groups Projects
Commit 685bde5e authored by Marco Ammon's avatar Marco Ammon Committed by Simon Schuster
Browse files

fix abovecaptionskip and frames for listing

parent 8fc8d6ee
No related branches found
No related tags found
1 merge request!12Full rebase of Marco's changes
This commit is part of merge request !12. Comments created here will be created in the context of that merge request.
......@@ -541,15 +541,12 @@
% -----------------------------------------------------------------------------
% Listings
% -----------------------------------------------------------------------------
\ifthenelse{\boolean{germanthesis}}{
\newcommand{\listoflistingscaption}{Quellcodeverzeichnis}
\ifthenelse{\boolean{earlydraft}}{
\RequirePackage[chapter, draft=true, newfloat]{minted}
}{
\newcommand{\listoflistingscaption}{List of Listings}
\RequirePackage[chapter, newfloat]{minted}
}
\RequirePackage{newfloat}
\SetupFloatingEnvironment{listing}{listname=\listoflistingscaption}
\captionsetup[listing]{aboveskip=0pt}
\setminted{
......@@ -563,6 +560,7 @@
numbersep = 5pt,
xleftmargin=15pt,
tabsize = 4,
frame = lines,
}
\setmintedinline{
......@@ -588,11 +586,14 @@
\newmintinline[bashinline]{bash}{}
\ifthenelse{\boolean{germanthesis}}{
\renewcommand{\listoflistingscaption}{Quellcodeverzeichnis}
\newcommand{\listoflistingscaption}{Quellcodeverzeichnis}
}{
\renewcommand{\listoflistingscaption}{List of Listings}
\newcommand{\listoflistingscaption}{List of Listings}
}
\RequirePackage{newfloat}
\SetupFloatingEnvironment{listing}{listname=\listoflistingscaption}
% leave a gap between entries in list of listings that belong to different
% chapters so it is consistent with list of tables and figures
\let\Chapter\chapter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment