Menu

HowTo_TocNoPageNumber

How to suppress the page number of e.g. chapter entries in the table of contents

This is easily done in KOMA-Script using the property pagenumberbox for chapter entries. The property expects a statement with argument. If this argument is simply discarded, the page number is not set:

\documentclass{scrbook}
\usepackage{blindtext}
\newcommand{\ignoreonearg}[1]{}
\DeclareTOCStyleEntry[pagenumberbox=\ignoreonearg]{chapter}{chapter}
\begin{document}
\tableofcontents
\listoffigures
\blinddocument
\addchap{test}
\blindtext
\end{document}

You can alternatively set this property using \RedelcareSectionCommand:

\documentclass{scrbook}
\usepackage{blindtext}
\newcommand{\ignoreonearg}[1]{}
\RedeclareSectionCommand[tocpagenumberbox=\ignoreonearg]{chapter}
\begin{document}
\tableofcontents
\listoffigures
\blinddocument
\addchap{test}
\blindtext
\end{document}

Related

Wiki (English): HowTo_ToCConfiguration

MongoDB Logo MongoDB