我遇到的问题是目录在第 0 页包含内容本身。不幸的是,我不知道如何更改它以排除列出的内容。
到目前为止,我的代码如下所示:
\documentclass[a4paper,12pt,openright]{article}
%import geometry class to ensure correct margins for document
\usepackage[left=2.8cm, right=2.8cm, top=2.8cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[autostyle=true]{csquotes}
\usepackage{tocbibind}
\usepackage{xpatch}
\usepackage[backend=bibtex,style=numeric,citestyle=nature,bibencoding=ascii]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{literature}
\usepackage[%
style=authoryear,
giveninits=true,
natbib=true,
maxbibnames=99,
uniquename=init
]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\DeclareFieldFormat*{title}{#1}
\DeclareFieldFormat[article,periodical]{volume}{\mkbibbold{#1}}
\renewcommand*{\multinamedelim}{\addcomma\space}
\renewcommand*{\finalnamedelim}{\addcomma\space}
\renewcommand*{\nameyeardelim}{\addcomma\space}
\setlength{\bibitemsep}{\baselineskip}
\renewbibmacro{in:}{}
\begin{document}
\tableofcontents
%adds "Page" above page numbering
\addtocontents{toc}{~\hfill\textbf{Page}\par}
\include{introduction}
\end{document}
我该如何改变这种情况?提前感谢你的帮助!
答案1
一个简单的解决方案是在序言中使用此命令“\usepackage[nottoc]{tocbibind}”。
您可以按如下方式修改您的代码。
\documentclass[a4paper,12pt,openright]{article}
%import geometry class to ensure correct margins for document
\usepackage[left=2.8cm, right=2.8cm, top=2.8cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[autostyle=true]{csquotes}
\usepackage[nottoc]{tocbibind}
\usepackage{xpatch}
\usepackage[backend=bibtex,style=numeric,citestyle=nature,bibencoding=ascii]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{literature}
\usepackage[%
style=authoryear,
giveninits=true,
natbib=true,
maxbibnames=99,
uniquename=init
]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\DeclareFieldFormat*{title}{#1}
\DeclareFieldFormat[article,periodical]{volume}{\mkbibbold{#1}}
\renewcommand*{\multinamedelim}{\addcomma\space}
\renewcommand*{\finalnamedelim}{\addcomma\space}
\renewcommand*{\nameyeardelim}{\addcomma\space}
\setlength{\bibitemsep}{\baselineskip}
\renewbibmacro{in:}{}
\begin{document}
\tableofcontents
%adds "Page" above page numbering
\addtocontents{toc}{~\hfill\textbf{Page}\par}
\include{introduction}
\end{document}