据我所知,一篇论文只能写一个摘要。阿姆萨特文档。是否可以使用 amsart 模板编写多个摘要?
答案1
如果您对第一个摘要采用文档的主要语言感到满意,则可以定义一个\newabstract
命令,以您想要排版第二个(第三个,...)摘要的语言作为参数。
\documentclass[a4paper]{amsart}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian,english]{babel}
\usepackage{lipsum}
\newcommand{\newabstract}[1]{%
\par\bigskip
\csname otherlanguage*\endcsname{#1}%
\csname captions#1\endcsname
\item[\hskip\labelsep\scshape\abstractname.]
}
\begin{document}
\title{A title}
\author{A. Uthor}
\begin{abstract}
This is the abstract in the main language. \lipsum[2]
\newabstract{italian}
E questo è il sunto in un'altra lingua. \lipsum[3]
\end{abstract}
\maketitle
\end{document}
我使用\otherlanguage*
和\captions{...}
以避免\selectlanguage
在文件中写入不需要的注释之类的命令.aux
。
该版本允许以任何顺序给出摘要,并重新定义环境以接受语言作为可选参数(默认为发布`\begin{abstract} 时的当前语言,通常是主文档的语言)。
\documentclass[a4paper]{amsart}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian,english]{babel}
\usepackage{lipsum}
\makeatletter
\renewenvironment{abstract}[1][\languagename]{%
\ifx\maketitle\relax
\ClassWarning{\@classname}{Abstract should precede
\protect\maketitle\space in AMS document classes; reported}%
\fi
\global\setbox\abstractbox=\vtop \bgroup
\unvbox\abstractbox % add the previous abstracts
\medskip
\normalfont\Small
\list{}{\labelwidth\z@
\leftmargin3pc \rightmargin\leftmargin
\listparindent\normalparindent \itemindent\z@
\parsep\z@ \@plus\p@
\let\fullwidthdisplay\relax
}%
% change the current language
\csname otherlanguage*\endcsname{#1}\csname captions#1\endcsname
\item[\hskip\labelsep\scshape\abstractname.]%
}{%
\endlist\egroup
\ifx\@setabstract\relax \@setabstracta \fi
}
\makeatother
\begin{document}
\title{A title}
\author{A. Uthor}
\begin{abstract}[italian]
E questo è il sunto in un'altra lingua. \lipsum[3]
\end{abstract}
\begin{abstract}
This is the abstract in the main language. \lipsum[2]
\end{abstract}
\maketitle
\end{document}