KOMA-Script Wiki (English)
KOMA-Script is a bundle of versatile LaTeX classes and packages
Brought to you by:
kohm
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}