斜体字为备注编号

斜体字为备注编号

编译时

\documentclass{article}

\usepackage{amsthm}

\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]

\theoremstyle{remark}
\newtheorem{remark}{Remark}

\begin{document}

\begin{remark}
This statement is true, I guess.
\end{remark}

\theoremstyle{definition}
\begin{definition}{Fibration}
A fibration is a mapping between two topological spaces that has the homotopy lifting property for every space $X$.
\end{definition}
\end{document}

最终

在此处输入图片描述

问题是,为什么 LaTeX 决定将定义编号 (0.1) 放在与定义关键字相同的字体中,而注释却不这样做。(数字不是斜体。)这看起来像是一个错误;是吗?

答案1

内部 AMS 样式希望所有数字都直立显示,因此amsthm符合此样式。

您可以定义一种新的样式,并\itshape在内部明确使用\thmnumber,但请三思而后行。

\documentclass{article}

\usepackage{amsthm}

\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]

\newtheoremstyle{iremark}
  {\topsep}   % ABOVESPACE
  {\topsep}   % BELOWSPACE
  {\upshape}  % BODYFONT
  {0pt}       % INDENT (empty value is the same as 0pt)
  {\itshape}  % HEADFONT
  {.}         % HEADPUNCT
  {5pt plus 1pt minus 1pt} % HEADSPACE
  {\thmname{#1}\thmnumber{ \itshape#2}\thmnote{ (#3)}} % CUSTOM-HEAD-SPEC

\theoremstyle{iremark}
\newtheorem{remark}{Remark}

\begin{document}

\begin{remark}
This statement is true, I guess.
\end{remark}

\theoremstyle{definition}
\begin{definition}{Fibration}
A fibration is a mapping between two topological spaces that has the homotopy lifting property for every space $X$.
\end{definition}
\end{document}

在此处输入图片描述

相关内容