16

After some \begin{lstlisting} ... \end{lstlisting}, LaTeX adds some additional vertical space. How can I avoid that?

shot

Albert
  • 2,707

1 Answers1

16

Thanks to Scott H for the reference. It didn't directly helped me but it pointed out that the problem was my redefinition of \parskip and \baselineskip.

I'm using this now and it mostly works:

\begin{lstlisting}[belowskip=-0.8 \baselineskip]
CyclotomicField(order).gen().coordinates_in_terms_of_powers()
\end{lstlisting}
Albert
  • 2,707