![通过 tcolorbox 使用时列出吞噬选项](https://linux22.com/image/422680/%E9%80%9A%E8%BF%87%20tcolorbox%20%E4%BD%BF%E7%94%A8%E6%97%B6%E5%88%97%E5%87%BA%E5%90%9E%E5%99%AC%E9%80%89%E9%A1%B9.png)
我使用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
工作?