KOMAscript - Table of content TOC without dots for sections
Option sectionentrydots
is provided by class scrartcl
, but not by the classes with chapters.
But you can use \RedeclareSectionCommand
:
\RedeclareSectionCommand[
toclinefill=\hfill
]{section}
Example:
\documentclass{scrbook}
\KOMAoptions{paper=156mm:234mm, BCOR=8mm,twoside,
headinclude=false, footinclude=false,
headings=normal,
chapterentrydots=false, % default
}
\RedeclareSectionCommand[
toclinefill=\hfill
]{section}
\begin{document}
\tableofcontents
\chapter{one}
\section{oneone}
\end{document}
Result:
Note that there is also \RedeclareSectionCommands
:
\RedeclareSectionCommands[
toclinefill=\hfill
]{section,subsection}
Then both sections and subsections do not get the dotted line in TOC.
You can redefine the command responsible for the leaders:
\documentclass{scrbook}
\KOMAoptions{
paper=156mm:234mm,
BCOR=8mm,twoside,
headinclude=false,
footinclude=false,
headings=normal,
}
\renewcommand\TOCLineLeaderFill[1][]{\hfill}
\begin{document}
\tableofcontents
\chapter{one}
\section{oneone}
\end{document}
For finer control, you can load the tocbasic
package (part of the KoMa-script bundle) and use \DeclareTOCStyleEntry
.