标题显示晚了一页

标题显示晚了一页

我对 TOC 有疑问。

这是一个简单的例子:

\documentclass[11pt,a4paper,bibtotoc,idxtotoc,headsepline,footsepline,footexclude,BCOR12mm,DIV13,openany]{scrbook}
% Included by MAIN.TEX
% Defines the settings for the CAMP report document

\renewcommand{\sectfont}{\normalfont \bfseries}        % Schriftart der Kopfzeile

% manipulate footer
\usepackage{scrpage2}
\pagestyle{scrheadings}
\ifoot[\footertext]{\footertext} % \footertext set in INFO.TEX
%\setkomafont{pagehead}{\normalfont\rmfamily}
\setkomafont{pagenumber}{\normalfont\rmfamily}

%% allow sophisticated control structures
\usepackage{ifthen}

% use Palatino as default font
\usepackage{palatino}

% enable special PostScript fonts
\usepackage{pifont}

% make thumbnails
\usepackage{thumbpdf}

%to use the subfigures
\usepackage{subfigure}


\usepackage{colortbl}


%% show program code\ldots
%\usepackage{verbatim}
%\usepackage{program}

\usepackage{multirow}

%% use colors
\usepackage{color}

%% make fancy math
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{yhmath} % für die adots 
%% mark text as preliminary
%\usepackage[draft,german,scrtime]{prelim2e}

%% create an index
\usepackage{makeidx}

% for the program environment
\usepackage{float}

%% load german babel package for german abstract
%\usepackage[german,american]{babel}
\usepackage[german,english]{babel}
\selectlanguage{german}

% use german characters as well
\usepackage[utf8]{inputenc}       % allow Latin1 characters

% use initals dropped caps - doesn't work with PDF
\usepackage{dropping}


\usepackage{styles/shortoverview}
%----------------------------------------------------
%      Graphics and Hyperlinks
%----------------------------------------------------

%% check for pdfTeX
\ifx\pdftexversion\undefined
 %% use PostScript graphics
 \usepackage[dvips]{graphicx}
 \DeclareGraphicsExtensions{.eps,.epsi}
 \graphicspath{{figures/}{figures/review}} 
 %% allow rotations
 \usepackage{rotating}
 %% mark pages as draft copies
 %\usepackage[english,all,light]{draftcopy}
 %% use hypertex version of hyperref
 \usepackage[hypertex,hyperindex=false,colorlinks=false]{hyperref}
\else %% reduce output size \pdfcompresslevel=9
 %% declare pdfinfo
 %\pdfinfo { 
 %  /Title (my title) 
 %  /Creator (pdfLaTeX) 
 %  /Author (my name) 
 %  /Subject (my subject    ) 
 %  /Keywords (my keywords)
 %}
 %% use pdf or jpg graphics
 \usepackage[pdftex]{graphicx}
 \DeclareGraphicsExtensions{.jpg,.JPG,.png,.pdf,.eps}
 \graphicspath{{figures/}} 

 %% Load float package, for enabling floating extensions
 \usepackage{float}

 %% allow rotations
 \usepackage{rotating}
 %% use pdftex version of hyperref
 \usepackage[pdftex,colorlinks=true,linkcolor=red,citecolor=red,%
 anchorcolor=red,urlcolor=red,bookmarks=true,%
 bookmarksopen=true,bookmarksopenlevel=0,plainpages=false%
 bookmarksnumbered=true,hyperindex=false,pdfstartview=%
 ]{hyperref}
%
%\usepackage[pdftex,colorlinks=false,linkcolor=red,citecolor=red,%
% anchorcolor=red,urlcolor=red,bookmarks=true,%
% bookmarksopen=true,bookmarksopenlevel=0,plainpages=false%
% bookmarksnumbered=true,hyperindex=false,pdfstartview=%
% ]{hyperref}
\fi


%% Fancy chapters
%\usepackage[Lenny]{fncychap}
%\usepackage[Glenn]{fncychap}
%\usepackage[Bjarne]{fncychap}

%\usepackage[avantgarde]{quotchap}

% set the bibliography style
%\bibliographystyle{styles/bauermaNum}
%\bibliographystyle{alpha}
\bibliographystyle{plain}


\begin{document}
  \phantomsection
  \addcontentsline{toc}{chapter}{Abstract}

  \vspace*{2cm}
  \begin{center}
  {\Large \bf Abstract}
  \end{center}
  \vspace{1cm}
  Text text text
  \clearpage
  \renewcommand{\contentsname}{Table of Content}
  \tableofcontents
  \clearpage
  \phantomsection
  \addcontentsline{toc}{chapter}{Outline of Thesis}

  \begin{center}
    \huge{Outline of Thesis}
  \end{center}
  text text text
\end{document}

我的问题是,我的论文大纲顶部的下一页上有目录标题。有人知道吗?

答案1

正如 Barbara 在评论中提到的,运行标题不会自动清除。您需要发出一个\cleardoublepage,然后使用\markboth{}{}

您似乎在手动设置分段命令,这绝不是一个好主意。使用 KOMA 内置的命令,您可以更轻松地实现目标。您可以在此阅读更多相关信息正确使用 hyperref 和 addcontentsline

请注意,我用当前的 KOMA 选项替换了过时的选项。

\documentclass[11pt,a4paper,
%bibtotoc,
bibliography=totoc,
%idxtotoc,Not supported
headsepline,
footsepline,
%footexclude,
footinclude=false,
%BCOR12mm,
BCOR=12mm,
%DIV13,
DIV=13,
openany]{scrbook}

\usepackage{pgffor}
\usepackage{blindtext}
\usepackage[german,english]{babel}
\selectlanguage{german}%Really the old german spelling?
\begin{document}

\tableofcontents

\addchap{Outline of Thesis}
\blindtext[12]
\foreach \x in {1,...,20} {\blinddocument};
\end{document}

相关内容