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?