兄弟のいないnewsiamthm?

兄弟のいないnewsiamthm?

私は SIAM Latex テンプレートを使用しており、他のすべての tho のような環境 (デフォルトではすべて兄弟) とは異なる番号を持つ thm のような環境を作成したいと考えていました。

定義の兄弟としてそれらを「削除」する方法がわかりません。公式の説明にもその方法が見つかりません。SIAMガイド

具体的には、このコード ブロックを修正して、必要な動作を実現したいのですが、この変更について誰かが手伝ってくれるとありがたいです。

\newsiamthm{puzzle}{Puzzle}
\renewcommand*\thepuzzle{\Roman{puzzle}

答え1

コマンドは\newsiamthm次のように定義されます。

\newcommand{\newsiamthm}[2]{
  \theoremstyle{plain}
  \theoremheaderfont{\normalfont\sc}
  \theorembodyfont{\normalfont\itshape}
  \theoremseparator{.}
  \theoremsymbol{}
  \newtheorem{#1}[theorem]{#2}
}

つまり、このコマンドで定義されたすべての定理のような環境には独自のカウンターがなく、 と呼ばれるカウンターtheorem(より正確には\c@theorem) が使用されます。

パズル環境に同じ形式を使用しながら、独立したカウンターを使用する場合は、次のように独自のマクロを作成します。

\newcommand{\newindthm}[2]{
  \theoremstyle{plain}
  \theoremheaderfont{\normalfont\sc}
  \theorembodyfont{\normalfont\itshape}
  \theoremseparator{.}
  \theoremsymbol{}
  \newtheorem{#1}{#2}
}

そして、これを として使用できるようになりました\newindthm{puzzle}{Puzzle}

ここに例があります

\documentclass{siamart220329}

\newcommand{\newindthm}[2]{
    \theoremstyle{plain}
    \theoremheaderfont{\normalfont\sc}
    \theorembodyfont{\normalfont\itshape}
    \theoremseparator{.}
    \theoremsymbol{}
    \newtheorem{#1}{#2}
}

\newindthm{puzzle}{Puzzle}

\begin{document}
    \begin{theorem}
        Test
    \end{theorem}

    \begin{puzzle}
        Test
    \end{puzzle}
\end{document}

出力は次のようになります

ここに画像の説明を入力してください

関連情報