下面的代码将输出定理名称“plain”周围的括号。
\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\begin{document}
\begin{theorem}[theorem style=plain]{plain}{}
This is my theorem. \begin{equation*} a^2 + b^2 = c^2. \end{equation*}
\end{theorem}
\end{document}
我想删除这些括号。
https://ftp.jaist.ac.jp/pub/CTAN/macros/latex/contrib/tcolorbox/tcolorbox.pdf#page=379
答案1
\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem{theorem}{Theorem}{theorem style=plain,
description delimiters none, % <-------------
fonttitle=\bfseries\upshape,fontupper=\itshape,
colframe=green!50!black,colback=green!10!white,
colbacktitle=green!20!white,coltitle=blue!75!black
}{theo}
\begin{document}
\begin{theorem}{plain}{}
This is my theorem. \begin{equation*} a^2 + b^2 = c^2. \end{equation*}
\end{theorem}
\end{document}