我想覆盖该\maketitle
命令,但收到未\author
给出命令的警告。
\documentclass[11pt]{amsart}
\title{test}
\author{Aleksandr Kozlovskiy}
\date{\today}
\thanks{This document was printted in LaTex by Aleksandr Kozlovskiy from minsk.}
\makeatletter
\def\maketitle{
\textbf{\@title}
\textit{\@author}
\text{\@thanks}
}
\makeatother
\begin{document}
\maketitle
this is a test document
\end{document}
答案1
AMS 类将作者(以及致谢)存储在不同的宏中:
\documentclass[11pt]{amsart}
\title{test}
\author{Aleksandr Kozlovskiy}
\date{\today}
\thanks{This document was printted in LaTex by Aleksandr Kozlovskiy from minsk.}
\makeatletter
\def\maketitle{
\textbf{\@title}
\textit{\authors}
\def\thanks##1{##1\par}
\text{\thankses}
}
\makeatother
\begin{document}
\maketitle
this is a test document
\end{document}