Up until now, whenever I create a new definition or theorem etc., the title (so the word 'Definition' etc.) would come up in bold. However, when I try to add '\theoremstyle{remark}', the titles stop coming up in boldface. Is there any way I can fix this (i.e. so I don't have to bold each title individually as it comes up)? Sorry if this is a stupid question, I'm very new to all this.
1 Answer
You should use them like this.
\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}
-
the recommended style for a definition is
\theoremstyle{definition}
, which sets the text in roman. more information regarding the three styles defined byamsthm
(although not the type style used for the headings) is given in this answer: Non italic text in theorems, definitions, examples Dec 11, 2014 at 15:12 -
@barbarabeeton Right.– user11232Dec 11, 2014 at 15:27
\theoremstyle
sets how theorems will be printed from that point onward, so setting it to something likeremark
(which doesn't have a bold title will have exactly that effect. Could you provide the community with a use-case in the form of a minimal working example (MWE)?