打印定理及其标签的列表(使用 \newtcbtheorem 自定义定理环境)

打印定理及其标签的列表(使用 \newtcbtheorem 自定义定理环境)

假设我已经定义了

\newtcbtheorem[number within=section]{mytheo}{Theorem}%
{colframe=blue!35!black,enlarge top by=0.15cm,fonttitle=\slshape,breakable}{th}

\newtcbtheorem[number within=section, use counter from=mytheo]{mylemma}{Lemma}%
{colframe=blue!35!white,enlarge top by=0.15cm,fonttitle=\slshape,breakable}{lem}

我可以定义一个新定理

\begin{mytheo}{Title}{label}
blah
\end{mytheo}

其中“标题”是读者将看到的内容,“标签”是我用于“\ref{th:label}”或“\ref{lem:label}”的内容。我想要的是能够打印出(在文档末尾,有点像词汇表)文档中所有定理的列表,仅显示它们的“标题”和“标签”。

我已经发现ToC 类似定义列表(使用定理环境),它看起来更像是一个目录,而不是最后的词汇表。

或者,如果我可以在文档本身中打印“标签”,将其放在“标题”旁边,也可以。编辑:最后一个问题已得到回答将标签作为 tcolorbox 的参数传递,以便 cleveref 可以访问它

相关内容