How to increase the \parskip
in the output of a tcblisting
, i.e. the vertical space between the black squares in the following example?
Neither the \parskip
of the surrounding text nor the spacing of the displayed code should be affected and no additional code should be shown.
(alternatively: changing the linespread
or anything else to increase the vertical distance is also fine)
MWE:
\documentclass{scrartcl}
\usepackage{tikz}
\usepackage[most]{tcolorbox}
\usepackage{lipsum}
\tcbset{%
sidebyside,
listing options={language={[latex]TeX}},
center lower,
righthand width=3cm
}
\begin{document}
\lipsum[2]
\begin{tcblisting}{title={test}}
\begin{tikzpicture}
\fill (0,0) rectangle (1,1);
\end{tikzpicture}
\begin{tikzpicture}
\fill (0,0) rectangle (1,1);
\end{tikzpicture}
\end{tcblisting}
\lipsum[2]
\end{document}
Current output:
Desired output: