Menu

HowTo_TocNoPageNumber

Markus Kohm
There is a newer version of this page. You can find it here.

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}

MongoDB Logo MongoDB