梅威瑟:
\documentclass[english]{scrreprt}
%%% PAGE DIMENSIONS
\usepackage{geometry}
\geometry{verbose,a4paper,tmargin=3.5cm,bmargin=2.5cm,lmargin=2.6cm,rmargin=2.6cm,headheight=1.3cm,headsep=1cm}
\pagestyle{headings}
%%% PACKAGES
\usepackage{array}
\usepackage{paralist}
\usepackage{verbatim}
\usepackage{subfig}
\usepackage{amsmath, amsthm, amssymb, url}
\usepackage{enumitem}
\usepackage{mathrsfs}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{tabu,longtable,booktabs,caption}
\usepackage[pdftex]{graphicx,color}
\usepackage{scrpage2,datetime,tikz}
\usepackage{hyperref}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{bookmark}
\usepackage[toc,page]{appendix}
%%% OPTIONS
\bibliographystyle{plain}
\setcounter{secnumdepth}{3}
\setlength{\parindent}{1em}
%\setlist{nolistsep}
\tabulinesep=^1.5mm_1.5mm
\tikzset{>=latex}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
%%% DEFINITIONS
\newenvironment{myfont}{\fontfamily{phv}\selectfont}{\par}
\renewcommand{\dateseparator}{.}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\Wrap}{Wrap}
\addto\captionsenglish{ \renewcommand{\contentsname} {Table of Contents} }
%%% HEADERS
\makeatletter
\pagestyle{scrheadings}
\setkomafont{pagehead}{\sffamily\bfseries\small }
\clearscrheadfoot
\rohead{line1 \linebreak \@normalcr[-9pt] line2 \linebreak\@normalcr[-2pt] \normalfont\sffamily\footnotesize{line3 \linebreak\@normalcr[-49pt]}}
\lohead{\rule{1.5cm}{1.5cm}\vspace{0.05cm}}
\setheadsepline{0.4pt}
\makeatother
%%% FOOTERS
\lofoot [docname.pdf] {docname.pdf}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pdfbookmark[section]{\contentsname}{toc}
\tableofcontents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{chapter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{appendices}
\chapter{appendix1}
\end{appendices}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliography{mybib}
\end{document}
我最终将“参考书目”作为第二章。
我该如何预防?我是不是把这些包裹弄乱了?
答案1
选项 1:替换
\usepackage[nottoc,numbib]{tocbibind}
和
\usepackage[nottoc]{tocbibind}
tocbibind
如果不是numbib
不言自明的,请参阅文档的第 2 部分。
选项 2:由于您正在使用KOMA-Script
类,所以根本不要加载tocbibind
包;而是添加类选项bibliography=totoc
。