
背景
我正在嘗試寫一篇具有 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}