1

Possible Duplicate:
Increase space between listings env. and surrounding text

Is it possible to increase the distance between text and an \lstlisting? In my resulting PDF the listing follows very short after the text:

enter image description here

Would that be possible?

2
  • Increase the value of aboveskip (default is \medskipamount). So, something like \begin{lstlisting}[aboveskip=2\baselineskip].
    – Werner
    Aug 28 '12 at 19:42
  • Great! Thank you! It's so easy when you know it! ;-)
    – Juuro
    Aug 28 '12 at 22:18

Browse other questions tagged or ask your own question.