[翻譯] [LaTeX] No \author given

原  文: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 包。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章