
我正在使用 thmbox 包。我正在嘗試找到一種方法,使我的一些定理具有 thmbox 外觀,同時讓其他一些定理具有傳統定理外觀。
我的問題是,不同的 thmbox 樣式似乎不包含“空”樣式(據我所知,只有[S]
,[M]
和[L]
样式),並且應用了\usepackage[nothm]{thmbox}
make全部這些定理具有傳統定理的外觀。
答案1
您可以amsthm
在套件之前載入套件,並定義由重新定義先前的thmbox
命令。\newemptytheorem
\newtheorem
\newtheorem
thmbox
\documentclass{article}
\usepackage{amsthm}
\let\newemptytheorem\newtheorem
\usepackage{thmbox}
\newemptytheorem{emptythm}{Theorem}
\newtheorem{boxedthm}[emptythm]{Theorem}
\begin{document}
\begin{emptythm}
A theorem in an "empty" style.
\end{emptythm}
\begin{boxedthm}
A theorem in a \textnormal{\texttt{thmbox}} style.
\end{boxedthm}
\end{document}