Page LayoutContinuous Page Numbers for Title, Abstract, TOC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
iBen
Posts: 1
Joined: Mon Feb 28, 2011 10:29 am

Continuous Page Numbers for Title, Abstract, TOC

Post by iBen »

Hi folks,

When using \maketitle or \begin{abstract} I realized that the pagecounter gets reset.
Usually this wouldn't be a big deal (as page numbers for title and abstract don't show), but since I am also using the package "hyperref" I have three pages with the same number in Adobe Readers "Page Thumbnails" section.

The following is a minimal example:

Code: Select all

\documentclass[a4paper,12pt]{report}
\usepackage{hyperref}

\title{Title}
\author{Author}

\begin{document}
\hypersetup{pageanchor=false}
\maketitle
\begin{abstract}
Content of Abstract
\end{abstract}
\hypersetup{pageanchor=true}
\chapter*{Disclaimer}
Disclaimer
\tableofcontents
\chapter{Overview}
Overview
\end{document}
What I get in terms of page numbers is:
1 Title Page
1 Abstract
1 Disclaimer
2 Content

What I want is:
1 Title Page
2 Abstract
3 Disclaimer
4 Content

This is not about the numbers on the page - it is about the numbers in the Adobe Reader thumbnail section.

I have looked into the report.cls file and was able to spot three occurences where the pagecounter gets set.
Copying report.cls into my working directory and commenting these three lines is a solution that I found - however, I am sure there is a better way to do it.

Thanks for your help!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply