I've increased \parskip
with \baselineskip
to use the "skipped" paragrahs style instead of the default "indented" style. However, this causes all listings to automatically include a baselineskip afterwards (see below).
How do I remove it? A minimal example is included below.
\documentclass{article}
\usepackage{listings}
\addtolength{\parskip}{\baselineskip}
\lstset{%
frame=single,
}
\begin{document}
bla bala bla
\begin{lstlisting}
test test test
\end{lstlisting}
bla bal bal
\end{document}
Best Answer
You should use the
parskip
package to deal with this. The basic problem is thatparskip
gets used all over the place. Theparskip
package tries to have the change of paragraph skip length only have an effect where you actually intend it to. Simply add\usepackage{parskip}
to your preamble above the command that changes the length.