我使用tcolorbox
+listings
在框中显示代码。我将一个gobble
选项传递给listings
,但该选项似乎被忽略了:
\documentclass{article}
\usepackage[listings]{tcolorbox}
\begin{document}
\begin{tcblisting}{%
listing only,
title=Source,
listing options={gobble=30}}
some code
\end{tcblisting}
\begin{lstlisting}[gobble=30]
some code
\end{lstlisting}
\end{document}
我缺少什么才能完成gobble
工作?