如何在 amsart 中引用多个段落?

如何在 amsart 中引用多个段落?

我的目标是使用amsart文档样式引用两个段落,引用中的两个段落都采用普通段落样式进行格式化,即缩进冠线。

LaTeX 手册第 26 页说“引用”环境用于引用整个段落的材料,并展示了一个我想要的格式的示例。AMS-LaTeX 指南根本没有描述引文。

测试表明,在amsart“引用”环境中不会缩进引用的第一行,但如果引用中包含空行,则会缩进其后的首行。

也就是说,第一段不是段落格式,但第二段是段落格式。(“quote”环境产生相同的格式,而 LaTeX Book 则说“quote”适用于非段落格式的文本。)

大概有一种已知的方法可以做到这一点,但我无法找到文档。

答案1

这是经过深思熟虑的选择amsart

% amsart.cls, line 892:
\newenvironment{quotation}{\list{}{%
    \leftmargin3pc \listparindent\normalparindent
    \itemindent\z@
    \rightmargin\leftmargin \parsep\z@ \@plus\p@}%
  \item[]%
}{%
  \endlist
}

该指令\itemindent\z@使第一段不缩进。

\documentclass{amsart}
\usepackage{xpatch}

\makeatletter
\xpatchcmd{\quotation}{\z@}{\normalparindent}{}{}
\makeatother

\begin{document}

This is the first paragraph and we want that it
is indented like every other paragraph. Some more
text just to see what happens.

\begin{quotation}
This is the first quoted paragraph and we want that it
is indented like every other paragraph. Some more
text just to see what happens.

This is the second quoted paragraph and we want that it
is indented like every other paragraph. Some more
text just to see what happens.
\end{quotation}

This is the final paragraph and we want that it
is indented like every other paragraph. Some more
text just to see what happens.

\end{document}

在此处输入图片描述

相关内容