I am trying using minted to display some code in my document, but the code is long and spans over two pages, this works fine, however when I place my code inside
\begin{listing}
\inputminted{java}{code/JavaCode.java}
\caption{Some caption}
\label{label1}
\end{listing}
Then my code doesn't show up and I get the warning:
LaTeX Warning: Float too large for page
I have tried using the option H in listing, but then the code shows in only one page and it doesn't fit so I only see a part of it.
I also tried with the code directly in the latex document ie:
\begin{listing}
\begin{minted}{java}
Java code
\end{minted}
\caption{Some caption}
\label{label1}
\end{listing}
But the same happens, any ideas?
\listoflistingswon't list my code right? – lander16 Mar 01 '11 at 20:05\captionofrequires an environment so this does not work correctly, see my answer. – schlamar Apr 27 '12 at 08:43\inputminted. – Stephen Bosch Sep 22 '13 at 14:58\captionofsolution. – 0 _ May 29 '16 at 04:03