每个空间,例如...
- ...在“内容”和“1 个”之间,
- ...在“1 One”和“1.1 bla”之间,
- ...在“1.1 bla”和“1.2 bla”之间,并且
- ...在“1.2 bla”和“2 Two”之间,
- ...
目录中的 应该是0.5cm
。
截屏
平均能量损失
\documentclass[12pt,paper=a4,pagesize=auto,headsepline,parskip=full,fleqn]{scrbook}
\begin{document}
\tableofcontents
\chapter{One}
\section{bla}
\section{bla}
\chapter{Two}
\section{bla}
\section{bla}
\end{document}
答案1
\documentclass[12pt,headsepline,parskip=full,fleqn]{scrbook}
\BeforeTOCHead[toc]{%
\KOMAoptions{parskip=false}% no parskip in ToC
\RedeclareSectionCommand[afterskip=1sp minus 1sp]{chapter}% no skip after ToC title
}
\DeclareTOCStyleEntry[beforeskip=.5cm]{chapter}{chapter}
\DeclareTOCStyleEntry[beforeskip=.5cm]{section}{section}
\DeclareTOCStyleEntry[beforeskip=.5cm]{default}{subsection}
\usepackage{blindtext}% only for dummy text
\begin{document}
\tableofcontents
\chapter{One}
\section{bla}
\section{bla}
\Blindtext
\blinddocument
\end{document}
结果是