原 文:No \author given
译 者:Xovee
翻译时间:2020年6月13日
No \author given
当你使用了 \maketitle 命令,但是没有指定任何 \author,就会发生这个错误,下面展示一个例子:
%In your preamble
\title{On the General Molecular Theory of Heat}
% In the body of your document
\maketitle
你可以添加一个作者来解决这个错误:
%In your preamble
\title{On the General Molecular Theory of Heat}
\author{A. Einstein}
% In the body of your document
\maketitle
如果你不想在标题页添加任何作者,你可以定义一个空的 \author{…} 指令,例如:
%In your preamble
\title{On the General Molecular Theory of Heat}
\author{}
% In the body of your document
\maketitle
这样的话,在标题页仍然会留一些空白给作者。如果你想移除这些空白行,请参考 titling 包。