TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is more a conceptional question on how to use LaTeX in the right way. So far I have striven to customize only those things in LaTeX which are supposed to be without messing to much with print space.

I would like to increase the top and bottom spacing of listings to the rest of the text. I inserted a listing and it was put directly on to the next line, which is to close to the text.

Should I increase this space by using listings option or should I just put it into a figure?

share|improve this question
up vote 2 down vote accepted

Section 4.3 of the listings manual shows aboveskip and belowskip options. Have you tried those yet?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.