
No sé qué estoy haciendo mal porque soy un maldito principiante, pero a mi TOC, que debería crearse solo, le faltan los capítulos finales de mi tesis. Los capítulos 1-5 se muestran perfectamente bien, pero faltan los capítulos 6-8.
Hay un archivo principal con todas las configuraciones + las partes a través de \include. No muestro los archivos parciales porque siempre es solo \capítulo y texto posterior, nada más.
Pregunta adicional, tenemos que numerar las páginas antes de la parte principal en números latinos, después en números arábigos. De alguna manera, la última página antes de la parte principal "firma" comienza con la numeración arábiga, aunque el comando para árabe va después de \include{firma}, ¿por qué?
%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}
¡Sería fantástico si alguien pudiera ayudar!
¡Gracias!
Respuesta1
No redefina \clearpage
y \cleardoublepage
. Podrías usarlo scrartcl
en su lugar scrbook
y reemplazarlo \chapter
poco \section
a \include
poco \input
.
También puedes cambiar el estilo de \chapter
para section
evitar el salto de página cuando comienza un nuevo capítulo:
\RedeclareSectionCommand[
style=section,
indent=0pt,
beforeskip=1.5cm,% replaces the redefinition of \chapterheadstartvskip
afterindent=false,
afterskip=1cm% replaces the redefinition of \chapterheadendvskip
]{chapter}
Usar \cleardoubleoddpage
antes \pagenumbering
.
Ejemplo breve:
\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}
Resultado: