The document from the question has the following page numbers:
Physical/absolute page vs. \thepage
1 vs. 1
2 vs. 1
3 vs. 2
Class book
uses environment titlepage
for \maketitle
, which resets the page number to one in the end of the environment.
Package hyperref
enables option pdfpagelabels
by default (not in too old versions). It uses \thepage
for the logical page number, that means, the pages are numbered as 1
, 1
, and 2
:
Tested viewers with support for logical page numbers:
* Evince 2.32
* AR DC 2015
* SumatraPDF 3.0
The first two show: 1 (1 of 3), 1 (2 of 3), 2 (3 of 3)
SumatraPDF shows: 1 (1/3), 1 (2/3), 2 (3/3)
Maybe, the version of SumatraPDF, you are using, is different and contains a bug.
A better page label for the title page can be set by \thispdfpagelabel{Title}
.
And the duplicate destination warning can be removed by locally setting pageanchor=false
, because a page anchor is probably not needed for the title page (presumably no index entries to the title page, ...).
Example:
\documentclass[oneside]{book}
\usepackage{hyperref}
\title{Page 1}
\author{Author}
\begin{document}
\begingroup
\thispdfpagelabel{Title}
\hypersetup{pageanchor=false}
\maketitle
\endgroup
\chapter{Page 2}
Text
\chapter{Page 3}
Text
\end{document}
hyperref
defaults to passing the logical page number to the viewer. This is really helpful if you have a preface which is numbered in roman and the main part in arabic, because then you can enter pages like “iv” into the viewer and jump to the correct physical page. You can suppress this by passingpdfpagelabels=false
tohyperref
.