
Hintergrund
Ich versuche, ein Manuskript zu schreiben, das Zitate und eine Bibliographie im APA6-Format enthält. Zu diesem Zweck verwende ich \documentclass[man]{apa6}
.
Ich möchte jedoch nicht die Titelseite, die diese Klasse standardmäßig erstellt. Um dies zu erreichen, habe ich das kommentiert \maketitle
, was zu kaskadierenden Fehlern führte.
Versuch, dieses Problem zu lösen
Anstatt das zu kommentieren \maketitle
, habe ich die Felder geleert, aus denen es besteht, wie \title{}, \author{}, \affiliation{} usw. Das Problem besteht jedoch weiterhin.
Gewünschtes Ergebnis
Ich möchte ein Manuskript mit APA6-Formatierung und ohne Titelseite schreiben
Code
\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}
Nach dem Titel folgen in diesem Dokument einige Abschnitte.
Fehler
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.
Entfernen der Felddaten
\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}
Fehler nach dem Entfernen der Felder
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.
Antwort1
Wenn Sie sich den Fehler ansehen, den Sie erhalten, wenn Sie den Befehl auskommentieren \maketitle
, handelt es sich um eine undefinierte Steuersequenz, die sich auf das bezieht \shorttitle
, das im Laufkopf verwendet wird. Sie müssen das also definieren, um kein Titelblatt zu haben. (Ich habe den Bibliografiecode entfernt, der hier irrelevant ist.)
Allerdings wird dadurch überhaupt kein Titel erstellt und auch die Zusammenfassung wird nicht gedruckt, da diese durch den apa6
\maketitle
Befehl erzeugt wird.
\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}