如何更改备注中的编号?

如何更改备注中的编号?

我正在写一本关于数学的书。我想要获取以下文本文档:
在此处输入图片描述

我写了以下代码:

\documentclass{book}
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\theoremstyle{definition}
\newtheorem*{example}{Example}
\newtheorem{definition}{Definition}
%\theoremstyle{remark}
\newtheorem{remark}{Remark}


\begin{document}    

\chapter{Number Theory}
\section{Congruence}
\begin{theorem}
Here is my theorem.
\end{theorem}
\begin{remark}
 Text
\end{remark}


\begin{remark}
 Text
\end{remark}


\begin{remark}
 Text
\end{remark}
\begin{proposition}
 Here is my proposition.
\end{proposition}
\begin{remark}
 Text
\end{remark}


\begin{remark}
 Text
\end{remark}
\begin{lemma}
 Here is my lemma.
\end{lemma}
\begin{remark}
 Text
\end{remark}

\end{document}  

得出的结果为:
在此处输入图片描述

但我不喜欢这种风格。我该如何更改“备注”编号?我还想要“普通字体”中的字体。

答案1

这里有一些可以解决您的问题的代码(但如果您想让读者感到困惑,请重新考虑!拜托!):

\documentclass{book}
\usepackage{amsthm}
\newtheoremstyle{myplain}% name
{3pt}% Space above
{3pt}% Space below
{\itshape}% Body font
{}% Indent amount
{\bfseries}% Theorem head font
{}% Punctuation after theorem head
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning `normal')

\newtheoremstyle{mypro}% name
{3pt}% Space above
{3pt}% Space below
{}% Body font
{}% Indent amount
{\bfseries}% Theorem head font
{}% Punctuation after theorem head
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning `normal')

\theoremstyle{myplain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}

\theoremstyle{mypro}
\newtheorem{proposition}{Proposition}[section]
\newtheorem{remark}{Remark}[proposition]
\newtheorem*{remark*}{Remark} %For having unnumbered remarks.  

\theoremstyle{definition}
\newtheorem*{example}{Example}
\newtheorem{definition}{Definition}

\renewcommand{\theremark}{\arabic{remark}}

\begin{document}    

\chapter{Number Theory}
\section{Linear Congruences}
\begin{theorem}
Here is my theorem.
\end{theorem}
\begin{remark}
 Text
\end{remark}


\begin{remark}
 Text
\end{remark}


\begin{remark}
 Text
\end{remark}
\begin{proposition}
 Here is my proposition.
\end{proposition}
\begin{remark}
 Text
\end{remark}


\begin{remark}
 Text
\end{remark}
\begin{lemma}
 Here is my lemma.
\end{lemma}
\begin{remark*}
 Text
\end{remark*}

\end{document}

定理样式的注释逐字取自 AMS 指南amsthm(可用这里)。

韋斯特

相关内容