apa6: maketitle を削除するとエラーが発生します

apa6: maketitle を削除するとエラーが発生します

背景

私は APA6 形式の引用と参考文献を含む原稿を書こうとしています。この目的のために、 を使用しています\documentclass[man]{apa6}

しかし、このクラスがデフォルトで作成するタイトル ページは不要です。これを実現するために をコメントアウトしたところ\maketitle、連鎖的なエラーが発生しました。

この問題に対処する試み

をコメントアウトする代わりに \maketitle、\title{}、\author{}、\affiliation{} など、それを構成するフィールドを空にしました。しかし、問題は依然として解決しません。

望ましい結果

APA6フォーマットでタイトルページなしで原稿を書きたい

コード

\documentclass[man]{apa6}

\usepackage[american]{babel}

\usepackage{csquotes}
\usepackage[style=apa6,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{bibliography.bib}

\title{Sample APA-Style Document Using the \textsf{apa6} Package}

\author{Brian D.\ Beitzel}
\affiliation{SUNY Oneonta}

\leftheader{Beitzel}

\abstract{This demonstration paper uses the \textsf{apa6} \LaTeX\
  class to format the document in compliance with the 6th Edition of
  the American Psychological Assocation's \textit{Publication Manual.}
  The references are managed using \textsf{biblatex}.}

\keywords{APA style, demonstration}

\begin{document}
\maketitle
\section{Introduction}
\end{document}

このドキュメントにはタイトルの後にいくつかのセクションがあります。

エラー

Undefined control sequence. \section
Undefined control sequence. \end{document}
Undefined control sequence. \end{document}
Please (re)run Biber on the file:(biblatex) shortsample(biblatex) and rerun LaTeX afterwards.

フィールドデータの削除

\documentclass[man]{apa6}

\usepackage[american]{babel}

\usepackage{csquotes}
\usepackage[style=apa6,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{bibliography.bib}

\title{}

\author{}
\affiliation{}

\leftheader{}

\abstract{}

\keywords{}

\begin{document}
\maketitle
\section{Introduction}
\end{document}

フィールドを削除した後のエラー

There's no line here to end. \maketitle
There's no line here to end. \maketitle
There's no line here to end. \maketitle
Please (re)run Biber on the file:(biblatex) shortsample(biblatex) and rerun LaTeX afterwards.

答え1

コマンドをコメント アウトしたときに表示されるエラーを見ると\maketitle、ランニング ヘッドで使用される を参照する未定義の制御シーケンスであることが\shorttitleわかります。したがって、タイトル ページが表示されないようにするには、これを定義する必要があります。(ここでは関係のない参考文献コードは削除しました。)

しかし、これを行うとタイトルがまったく作成されず、コマンドによって生成される要約も印刷されませんapa6 \maketitle

\documentclass[man]{apa6}

\usepackage[american]{babel}

\usepackage{csquotes}


\title{Sample APA-Style Document Using the \textsf{apa6} Package}

\author{Brian D.\ Beitzel}
\affiliation{SUNY Oneonta}
\shorttitle{Short Title}
\leftheader{Beitzel}

\abstract{This demonstration paper uses the \textsf{apa6} \LaTeX\
  class to format the document in compliance with the 6th Edition of
  the American Psychological Assocation's \textit{Publication Manual.}
  The references are managed using \textsf{biblatex}.}

\keywords{APA style, demonstration}

\begin{document}
%\maketitle
\section{Introduction}
\end{document}

関連情報