General ⇒ Removing a page number in the TOC
Removing a page number in the TOC
Does anyone know how to remove a page number from the righthand side of the table of contents so it just displays the chapter title?
Cheers, Tim
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Removing a page number in the TOC
add
Code: Select all
\addtocontents{toc}{\protect\thispagestyle{empty}}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Removing a page number in the TOC
It could work like the following.tdc wrote:[...] Does anyone know how to remove a page number from the righthand side of the table of contents so it just displays the chapter title? [...]
Code: Select all
\addtocontents{toc}{\bfseries Dummy}
\chapter*{Dummy}
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Removing a page number in the TOC
I'm attempting to create an abstract before the table of contents (which is produced via \tableofcontents) and as such I wish for it not to have a page number.
I have achieved this on the page itself with \thispagestyle{empty} however it still appears in the TOC with a page number.
I'm using \chapter*{abstract} to generate a numberless chapter.
Cheers, Tim
Removing a page number in the TOC

eg
Code: Select all
Abstract i
Table of figures iii
Code: Select all
Abstract
Table of figures iii
Removing a page number in the TOC
Removing a page number in the TOC
Code: Select all
%\frontmatter
%--Abstract--
%\chapter*{Abstract}
%\label{Abstract}
%\thispagestyle{empty}
%aaaaaaa

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Removing a page number in the TOC
The information about the used document class is very important and should have been given right at the beginning in your initial post.tdc wrote:I'll try and form a minimal working example later but in the mean time i'm using the amsbook class, \tableofcontents to make the contents and my abstract currently looks like [...]
Code: Select all
\documentclass[11pt,english]{amsbook}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{lmodern}
\usepackage{blindtext}
\parindent0em
\title{Abstract in ToC}
\author{tdc}
\date{\today}
\begin{document}
\tableofcontents
\addtocontents{toc}{\bfseries Abstract}
\begin{center}
\large\bfseries Abstract
\end{center}
\bigskip\bigskip
\blindtext
\newpage
\Blinddocument
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Removing a page number in the TOC
Code: Select all
\documentclass[a4paper,12pt,reqno,oneside]{amsbook}
\begin{document}
\frontmatter
%--Abstract--
\chapter*{Abstract}
\label{Abstract}
\thispagestyle{empty}
aaaaaaaa
%
%
%
%
%
%--prebody--
\frontmatter
%--Contents--
\tableofcontents
\end{document}

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Removing a page number in the TOC
You can't use the \chapter* command. See the explanation and the code example in my last reply.tdc wrote:[...] i'd like to lose the page number next to the abstract [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10