文章和 amsart 定理间距的差异

文章和 amsart 定理间距的差异

我定义了一种新的定理环境样式,我称之为“倾斜”。当我使用默认的“文章”样式时,一切看起来都很好。但是,每当我使用“amsart”时,新的定理样式就不会被上方或下方的任何空格隔开。有人知道吗为什么会这样下面您可以看到这两段代码及其输出(为了比较,我还包含了一个定义样式的环境,在两种情况下看起来都很好)

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{times,newtxmath}

\newtheoremstyle{slanted}
  {\topsep}%   Space above
  {\topsep}%   Space below
  {\slshape}%  Body font
  {}%          Indent amount (empty = no indent, \parindent = para indent)
  {\bfseries}% Thm head font
  {.}%         Punctuation after thm head
  {0.5em}%     Space after thm head: " " = normal interword space;
     %         \newline = linebreak
  {}%          Thm head spec (can be left empty, meaning `normal')

\theoremstyle{slanted}
\newtheorem{theorem}{Theorem}

\theoremstyle{definition}
\newtheorem*{de}{Definition}

\begin{document}

Mathematicians resolve the truth or falsity of conjectures by mathematical proof.
\begin{theorem}
Mathematicians seek out patterns.
\end{theorem}

   Mathematicians resolve the truth or falsity of conjectures by mathematical proof.
\begin{de}
Mathematicians seek out patterns.
\end{de}

Mathematicians resolve the truth or falsity of conjectures by mathematical proof.

\end{document}

该代码的输出如下:

在此处输入图片描述

而如果我使用“amsart”而不是“article”

\documentclass[12pt]{amsart}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{times,newtxmath}

\newtheoremstyle{slanted}
  {\topsep}%   Space above
  {\topsep}%   Space below
  {\slshape}%  Body font
  {}%          Indent amount (empty = no indent, \parindent = para indent)
  {\bfseries}% Thm head font
  {.}%         Punctuation after thm head
  {0.5em}%     Space after thm head: " " = normal interword space;
     %         \newline = linebreak
  {}%          Thm head spec (can be left empty, meaning `normal')

\theoremstyle{slanted}
\newtheorem{theorem}{Theorem}

\theoremstyle{definition}
\newtheorem*{de}{Definition}

\begin{document}

Mathematicians resolve the truth or falsity of conjectures by mathematical proof.
\begin{theorem}
Mathematicians seek out patterns.
\end{theorem}

   Mathematicians resolve the truth or falsity of conjectures by mathematical proof.
\begin{de}
Mathematicians seek out patterns.
\end{de}

Mathematicians resolve the truth or falsity of conjectures by mathematical proof.

\end{document}

我得到以下信息:

在此处输入图片描述

答案1

如果你将“Thm head font”行替换为

   {\bfseries\showthe\topsep}% Thm head font

然后使用article它在.log文件中报告的类:

> 10.0pt plus 4.0pt minus 6.0pt.

amsart给出

> 2.44998pt plus 2.44998pt.

这表明两个文档类对 的值做出了不同的决定\topsep。相反,你可以用类似以下内容替换你的样式定义:

\newtheoremstyle{slanted}
  {10pt plus 4pt minus 4pt}%   Space above
  {10pt plus 4pt minus 4pt}%   Space below
  {\slshape}%  Body font
  {}%          Indent amount (empty = no indent, \parindent = para indent)
  {\bfseries}% Thm head font
  {.}%         Punctuation after thm head
  {0.5em}%     Space after thm head: " " = normal interword space;
     %         \newline = linebreak
  {}%          Thm head spec (can be left empty, meaning `normal')

因此分离是明确指定的。

在中amsart\topsep设置为,是=\smallskipamount的四分之一。\bigskipamount.7\baselineskip plus .7\baselineskip

对于article.cls使用12pt选项, 的值是在size12.clo的设置下设置的\@listi

相关内容