
プレーンな定理スタイルを変更して、 の\slshape
代わりにを使用するようにしたいと思います\itshape
。 を介して独自のスタイルを定義できることはわかっています\newtheoremstyle
が、スタイルのパラメーターの現在の値を検査する方法 (おそらく実行時に) がわからないため、必要なものだけを変更して、残りはそのままにしておくことができません。
答え1
amsthm.sty
ディストリビューションのどこかにあるファイルで確認できます
\thm@style{plain}
\newtoks\thm@bodyfont \thm@bodyfont{\itshape}
\newtoks\thm@headfont \thm@headfont{\bfseries}
\newtoks\thm@notefont \thm@notefont{}
\newtoks\thm@headpunct \thm@headpunct{.}
\newskip\thm@preskip \newskip\thm@postskip
\def\thm@space@setup{%
\thm@preskip=\topsep \thm@postskip=\thm@preskip
}
これはユーザーレベルの便通バージョンのようなもので、はるかに明確な\newtheoremstyle
コマンドです。すでに定義されているスタイルをいじることはお勧めしませんが、最初からやる場合はそうするでしょう(ただし確認していません)。
\newtheoremstyle{plain}{\topsep}{\topsep}{\itshape}{}{\bfseries}{.}{.5em}{}%
答え2
最も簡単な方法は\def \th@plain {\slshape}
、 またはそれよりも良い方法として、\def \th@slanted {\slshape}
を使用することです\theoremstyle{slanted}
。また、これを目的としたマクロもあります\theorembodyfont
が、どのパッケージに配置されているのかわかりません。