Lualatex 无法查看文档的作者

Lualatex 无法查看文档的作者

我想覆盖该\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}

相关内容