Possible Duplicate:
minted truncates the code if it doesn't fit into one page
I am using minted in order to write some Objective-C code inside a report I am trying to create. I use it the following way
\begin{minted}[linenos, fontsize=\footnotesize,
numbersep=5pt,
frame=lines,
framesep=2mm,
bgcolor=bg]{objective-c}
....
some objective-c code
....
\end{minted}
The problem is that code takes 28 lines of my page. I have 22 available lines on one page and all the lines available from the next page. LaTeX, instead of using that 22 lines from the first page and the first 6 from the other, leaves that space empty and moves all the code to the next page. This is a problem for me because I face this problem a lot of times and a lot of pages have large empty spaces.
Is there any way to allow or tell minted to split the code if possible and use all the available space?
Splitting across pagesis listed as adefectissue at the minted site. See issue 32. – Sony Jan 07 '12 at 02:41mintedcannot split material. – Joseph Wright Jan 07 '12 at 08:58