Page LayoutRemove Page Numbers in ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
BraveRobot
Posts: 6
Joined: Fri Dec 30, 2011 1:46 am

Remove Page Numbers in ToC

Post by BraveRobot »

Hi, this is my first post. I read the FAQ and I'm trying my best to comply with the rules. Please don't eat me.

QUESTION: How do I remove page numbers from a table of contents in an amsbook class document?

I've already tried using

Code: Select all

\thispagestyle{empty}
which kind of works, but not for all the pages. My table of contents is three pages long. I'm able to get the page numbers removed from the first and last pages but not the middle page. Any ideas? Here's an example of my code:

Code: Select all

\documentclass[11pt, oneside]{amsbook}
\usepackage{geometry, hyperref, amsfonts, wasysym, graphicx}
\hypersetup{pdfborder = {0 0 0}}
\renewcommand{\contentsname}{ }
\geometry{letterpaper}                   
\usepackage[parfill]{parskip}    
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\title{BLAH}
\author{BLAH BLAH}

\begin{document}
\newpage
\thispagestyle{empty}
\begin{center}
{\Large \textbf{Table of Contents}}
\end{center}

\tableofcontents
\thispagestyle{empty}
\newpage
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\chapter{Introduction}
\section{Hi}
\section{Hello}
\section{Goodbye}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Remove Page Numbers in ToC

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Use also \pagestyle{empty}, such as

Code: Select all

\clearpage
\pagestyle{empty}
\thispagestyle{empty}
\begin{center}
{\Large \textbf{Table of Contents}}
\end{center}
\tableofcontents
\clearpage
\pagestyle{headings}
Stefan
LaTeX.org admin
BraveRobot
Posts: 6
Joined: Fri Dec 30, 2011 1:46 am

Re: Remove Page Numbers in ToC

Post by BraveRobot »

Worked perfectly. Thank you, Stefan!
Post Reply