TOC 缺少最后几章

TOC 缺少最后几章

我不知道我做错了什么,因为我是个初学者,但我的 TOC 应该会自动创建,但却缺少论文的最后几章。第 1-5 章显示完美,但第 6-8 章却缺失。

有一个主文件,其中包含所有设置 + 通过 \include 包含的部分。我没有显示部分文件,因为它始终只是 \chapter 和后续文本,没有其他内容。

附加问题,我们必须用拉丁数字对主要部分之前的页面进行编号,之后则用阿拉伯数字。不知何故,主要部分“签名”之前的最后一页以阿拉伯数字开始,尽管阿拉伯数字命令位于 \include{signature} 之后,这是为什么?

%Dokumentklasse
\documentclass[a4paper,12pt]{scrreprt}
\usepackage[left= 3cm,right = 3cm, top = 2.5cm, bottom = 2cm]{geometry}
\usepackage[onehalfspacing]{setspace}
% ============= Packages =============

% Dokumentinformationen
\usepackage[
    pdftitle={XXX},
    pdfsubject={},
    pdfauthor={XXX},
    pdfkeywords={}, 
    %Links nicht einrahmen
    hidelinks
]{hyperref}


% Standard Packages
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx, subfig}
\graphicspath{{img/}}
\usepackage{fancyhdr}
\usepackage{lmodern}
\usepackage{color}

% zusätzliche Schriftzeichen der American Mathematical Society
\usepackage{amsfonts}
\usepackage{amsmath}

%nicht einrücken nach Absatz
\setlength{\parindent}{0pt}

%Abkürzungsverzeichnis
\usepackage{acronym}

%biblatex
\usepackage[backend=biber,citestyle=authoryear, maxcitenames=2]{biblatex}
\DefineBibliographyStrings{ngerman}{andothers={et\ al\adddot}} % aus u.a. zu et al. machen
\addbibresource{XXX.bib}

%captions
\usepackage[font=small,skip=2pt]{caption}

%times new roman
\renewcommand{\rmdefault}{ptm}
\addtokomafont{disposition}{\rmfamily}

%chapter abstand weg
\renewcommand*{\chapterheadstartvskip}{\vspace*{1.5cm}}
\renewcommand*{\chapterheadendvskip}{\vspace{1cm}}

%Arabische und Romanische Numerierung
\renewcommand\thechapter{\Roman{chapter}}

%new chapter no new page
\renewcommand{\cleardoublepage}{}
\renewcommand{\clearpage}{}

%equation in arabic
\renewcommand{\theequation}{\arabic{equation}}

%Abbildungszählweise
\usepackage{chngcntr}
\counterwithout{figure}{chapter}


%%%%%%%Dokumentenbeginn%%%%%

\begin{document}
\include{01_titelseite}

%pagestyle
\pagestyle{plain}

\pagenumbering{Roman}
\tableofcontents
\include{10_abkuerzungsverzeichnis}
\include{11_symbolliste}
\renewcommand{\listfigurename}{Abbildungsverzeichnis}
\newpage
\listoffigures
\include{Signature}

%main part%
\pagenumbering{arabic}
\include{04_Einleitung}
\include{05_XXX}
\include{05_XXX}
\include{06_XXX}
\include{07_XXX}
\include{08_XXX}

%\include{Anhang}
\newpage
\pagestyle{empty}
\renewcommand{\bibsetup}{\thispagestyle{empty}}
\printbibliography
\end{document}

如果有人能帮忙那就太好了!

谢谢!

答案1

不要重新定义\clearpageand \cleardoublepage。你可以使用scrartclInstead和By来scrbook代替。\chapter\section\include\input

您还可以更改样式\chaptersection避免在新章节开始时出现分页符:

\RedeclareSectionCommand[
  style=section,
  indent=0pt,
  beforeskip=1.5cm,% replaces the redefinition of \chapterheadstartvskip
  afterindent=false,
  afterskip=1cm% replaces the redefinition of \chapterheadendvskip
]{chapter}

\cleardoubleoddpage之前使用\pagenumbering

简短示例:

\begin{filecontents*}{04_Einleitung}
\chapter{Foo}
\lipsum
\end{filecontents*}
\begin{filecontents*}{05_XXX}
\chapter{Foo}
\lipsum
\end{filecontents*}

\documentclass[12pt]{scrreprt}
\usepackage{lipsum}% only for dummy text

\RedeclareSectionCommand[
  style=section,% <- change the style to section
  indent=0pt,
  beforeskip=1.5cm,
  afterindent=false,
  afterskip=1cm
]{chapter}

\renewcommand\thechapter{\Roman{chapter}}

\begin{document}
Titelseite

\cleardoubleoddpage% <- added
\pagestyle{plain}
\pagenumbering{Roman}
\tableofcontents

\newpage
\listoffigures

\cleardoubleoddpage% <- added
\pagenumbering{arabic}
\input{04_Einleitung}% <- use \input
\input{05_XXX}% <- use \input
\end{document}

结果:

在此处输入图片描述

相关内容