Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I use latex for my reports. Recently I have got an issue when my verbatim environment was split into several pages, where there were pictures in between. I would like to keep verbatim environment in one page only. Content of verbatim fits one page. Is this possible?

something unchanged here 
share|improve this question
up vote 5 down vote accepted

There are packages that provide verbatim environments with more features such as avoiding page breaks. With the fancyvrb package:


A universal way of preventing page breaks is to use a minipage environment, but it's not optimal — see the Tex FAQ.

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.