到目前為止,每當我創建新的定義或定理等時,標題(因此“定義”等一詞)都會以粗體顯示。但是,當我嘗試添加 '\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}