General ⇒ Removing a page number in the TOC
Removing a page number in the TOC
Hi,
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
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
NEW: TikZ book now 40% off at Amazon.com for a short time.

Removing a page number in the TOC
Hi,
add
somewhere in the body of your document.
add
Code: Select all
\addtocontents{toc}{\protect\thispagestyle{empty}}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Removing a page number in the TOC
I think that wasn't meant with removing the page number. The request was for removing the according referencing page number for an entry (here chapter).
Formatting of the entry can differ from your ideas. Adapt it to your needs.
Best regards
Thorsten¹
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¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Removing a page number in the TOC
hmmm, neither of those seemed to work.
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
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
and yes its the page number shown in the TOC i want to remove 
eg
should read

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
Yes, my mistake; I misunderstood the original question. Anyway the suggestion given by localghost should work; if not, can you please post some of the actual code you are using (in the sense of a minimal working example)?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Removing a page number in the TOC
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
Cheers 
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}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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 [...]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10