新しい定理スタイルを追加するとタイトルが「太字」でなくなる

新しい定理スタイルを追加するとタイトルが「太字」でなくなる

これまでは、新しい定義や定理などを作成するたびに、タイトル (つまり、「定義」などの単語) が太字で表示されていました。しかし、「\theoremstyle{remark}」を追加しようとすると、タイトルが太字で表示されなくなります。これを修正する方法はありますか (つまり、表示されるタイトルごとに個別に太字にしなくても済むようにする方法)? 愚かな質問でしたら申し訳ありません。私はこの分野に非常に不慣れです。

答え1

このように使用してください。

\documentclass{article}
\usepackage{amsmath,amsthm}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{example}{Example}[section]
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\theoremstyle{remark}
\newtheorem{remark}{Remark}[section]
\begin{document}
  \begin{definition}
    This is a definition
  \end{definition}
  \begin{theorem}
    This is a theorem
  \end{theorem}
  \begin{corollary}
    This is a corollary
  \end{corollary}
  \begin{proposition}
    This is a proposition
  \end{proposition}
  \begin{lemma}
    This is a lemma
  \end{lemma}
  \begin{example}
    This is an example
  \end{example}
  \begin{remark}
    This is a remark
  \end{remark}
\end{document}

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

関連情報