
私は thmbox パッケージを使用しています。いくつかの定理を thmbox の外観にし、他の定理を従来の定理の外観にする方法を見つけようとしています。
私の問題は、異なるthmboxスタイルには「空の」スタイルが含まれていないように見えることです(私の知る限り、、およびスタイルのみが[S]
あります[M]
)[L]
。\usepackage[nothm]{thmbox}
全て定理は伝統的な定理の外観を持っています。
答え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}