
무엇을 해도 제목과 실제 목록 사이의 공간이 너무 작아지는 문제가 발생합니다. 하지만 이 문제는 목록 목록에만 존재합니다. 다른 모든 목록(예: 테이블 목록)에는 올바른 공백이 있습니다(그림 참조). tocstyle
그런데 나는 패키지를 사용하고 있습니다 listings
.
내가 여기서 뭘 잘못하고 있는지 아시나요?
\documentclass[paper = a4, 12pt, twoside, parskip, toc = bibliography, openany]{scrbook}
\usepackage{setspace}
\usepackage{tocstyle}
\usepackage{listings}
\usepackage{hyperref}
\begin{document}
%% Table of contents
\setstretch{0.9}
\tableofcontents
\newpage
%% List of ToDos
\listoftodos
\newpage
%% List of tables
\phantomsection
\addcontentsline{toc}{chapter}{Tabellenverzeichnis}
\let\LaTeXStandardClearpage\clearpage
\let\clearpage\relax
\listoftables
\vspace*{0.5cm}
\addcontentsline{toc}{chapter}{Quellcodeverzeichnis}
\lstlistoflistings
\let\clearpage\LaTeXStandardClearpage
\newpage
\end{document}