考虑一下这个 MWE
\documentclass{ltxdoc}
\PassOptionsToPackage{final}{listings}
\usepackage[%
,listings
]{tcolorbox}
\lstdefinestyle{mystyle}{%
style = {mystyledef},
}
\lstdefinestyle{mystyledef}{%
morecomment = [l][\nullfont]{\%<},
deletecomment = [is]{\%<}{>},
}
\newtcblisting{codeexample}[3][]{%
listing only,
listing style=mystyle,
title={#3},
label = #2,
#1,
}
\begin{document}
%<*driver>
XXX
\begin{codeexample}{md:metadata:title}{all}
%</driver>
%<*example>
Some text
%</example>
%<*driver>
\end{codeexample}
XXX
\end{document}
%</driver>
这让我
问题:
我如何删除
*
文本前后的附加(空白)行?