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 

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .