\documentclass{amsart}
\begin{document}
\title{Title1}
\maketitle
\newpage
\title{Title2}
\maketitle
\end{document}
我想让多个标题的行为与第一个标题完全相同。我该怎么做?
答案1
将以下几行放入你的序言中:
\makeatletter
\let\@cleartopmattertags\relax
\newcommand\articleend{%
\enddoc@text
\let\authors\@empty
\let\shortauthors\@empty
\let\contribs\@empty
\let\xcontribs\@empty
\let\toccontribs\@empty
\let\addresses\@empty
\let\thankses\@empty
\newpage
}
\let\@wraptoccontribs\wraptoccontribs
\makeatother
\articleend
此外,在文章末尾添加命令,然后定义下一篇文章的标题和作者。
这是一个例子。
\documentclass{amsart}
\usepackage{lipsum}
\makeatletter
\let\@cleartopmattertags\relax
\newcommand\articleend{%
\enddoc@text
\let\authors\@empty
\let\shortauthors\@empty
\let\contribs\@empty
\let\xcontribs\@empty
\let\toccontribs\@empty
\let\addresses\@empty
\let\thankses\@empty
\newpage
}
\let\@wraptoccontribs\wraptoccontribs
\makeatother
\begin{document}
\title{Title1}
\author{Author1}
\maketitle
\lipsum[1-20]
\articleend
\title{Title2}
\author{Author2}
\maketitle
\lipsum[21-40]
\end{document}