2

I have a book in progress, using amsbook. I want to show people a table of contents. But the current page numbers would be entirely misleading since the sections are very roughly sketched now, not fully written.

Can I get amsbook to generate a TOC with no page numbers?

3

The page numbers in the ToC is formatted using \@tocpagenum. So, just redefine it to grab its argument and do nothing with it.

enter image description here

\documentclass{amsbook}

\usepackage{lipsum}

% Avoid page numbers from being printed in ToC
\makeatletter
\renewcommand{\@tocpagenum}[1]{}
\makeatother

\begin{document}

\tableofcontents

\sloppy% Just for this example
\chapter{First chapter}\lipsum[1-25]
\section{First section}\lipsum[1-25]
\section{Second section}\lipsum[1-25]
\section{Third section}\lipsum[1-25]
\section{Final section}\lipsum[1-25]

\chapter{Second chapter}\lipsum[1-25]
\section{First section}\lipsum[1-25]
\section{Second section}\lipsum[1-25]
\section{Third section}\lipsum[1-25]
\section{Final section}\lipsum[1-25]

\chapter{Third chapter}\lipsum[1-25]
\section{First section}\lipsum[1-25]
\section{Second section}\lipsum[1-25]
\section{Third section}\lipsum[1-25]
\section{Final section}\lipsum[1-25]

\chapter{Final chapter}\lipsum[1-25]
\section{First section}\lipsum[1-25]
\section{Second section}\lipsum[1-25]
\section{Third section}\lipsum[1-25]
\section{Final section}\lipsum[1-25]

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.