選択した定理を thmbox スタイルから保存するにはどうすればよいですか?

選択した定理を thmbox スタイルから保存するにはどうすればよいですか?

私は thmbox パッケージを使用しています。いくつかの定理を thmbox の外観にし、他の定理を従来の定理の外観にする方法を見つけようとしています。

私の問題は、異なるthmboxスタイルには「空の」スタイルが含まれていないように見えることです(私の知る限り、、およびスタイルのみが[S]あります[M][L]\usepackage[nothm]{thmbox}全て定理は伝統的な定理の外観を持っています。

答え1

amsthmパッケージの前にパッケージをロードし、が再定義される前にthmboxコマンドを定義することができます。\newemptytheorem\newtheorem\newtheoremthmbox

\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}

関連情報