I use the following settings for code listings.
\usepackage{listings}
\usepackage{textcomp}
\lstset{language=Java,
keywordstyle=\color{RoyalBlue},
basicstyle=\scriptsize\ttfamily,
commentstyle=\color{Green}\ttfamily,
rulecolor=\color{black},
upquote=true,
numbers=left,
numberstyle=\tiny\color{gray},
stepnumber=1,
numbersep=8pt,
showstringspaces=false,
breaklines=true,
frameround=ftff,
frame=single,
belowcaptionskip=.25\baselineskip
}
I want to add some white space at the bottom of the listing to separate it from the paragraph. How can I adjust the bottom margin below the code listing?
Best Answer
Use
belowskip
(p. 16 and 28 of thelistings
manual):