3

I want to use scrbook and the internal commands of KOMA-Script to typeset the table of contents and others (LoF, LoT) in a similar style as this screenshot shows: enter image description here

I couldn't find any hints about it in the manual. Basic code:

\documentclass{scrbook}
\begin{document}
\tableofcontents
\chapter{Blah}
\section{blah}
\end{document}

How to do this with left-aligned pagenumbers, adjustable spacing and being able to define a marker before the page number? (In the screenshot above it's \cdot)

esdd
  • 85,675
lblb
  • 3,454

1 Answers1

5

I am not sure, if I understand what the desired result is. But it should all be possible with KOMA-Script version 3.20 or newer.

\documentclass{scrbook}[2016/05/10]
\RedeclareSectionCommands[
  toclinefill=\quad$\cdot$,
  tocraggedpagenumber=true,
  tocindent=0pt
]{chapter,section,subsection}
\begin{document}
\tableofcontents
\chapter{Blah}
\section{blah}
\KOMAScriptVersion
\end{document}

enter image description here

linefill, raggedpagenumber, indent etc. are attributes of the entry style tocline which is used by default for all KOMA-Script section levels.

The style tocline and its attributes are descriped in the section "Configuration of Entries to a Table or List of Contents" in the tocbasic chapter of the KOMA-Script documentation.

There and in the explanations of \RedeclareSectionCommand is also mentioned that these attributes prefixed by toc (i.e. toclinefill, tocraggedpagenumber, tocindent) can be used as options in \RedeclareSectionCommand etc.

esdd
  • 85,675
  • I searched for these commands in the manuals and they're not documented there. Why not? I find this quite strange. Where did you get the information about them? – lblb Apr 05 '17 at 18:20
  • 1
    See my updated answer. I got the information really from the documentation. – esdd Apr 05 '17 at 19:40
  • Thanks. The issue was that the manual doesn't mention toclinefill or tocraggedpagenumber so I didn't find it by search. – lblb Apr 05 '17 at 20:10