[texhax] pdftex warning with hyperlinks
Ulrike Fischer
news3 at nililand.de
Wed Nov 11 17:44:49 CET 2009
Am Wed, 11 Nov 2009 15:46:26 +0000 schrieb Philip TAYLOR:
>> Your message is more serious. It means that from the point of
>> hyperref you have two pages with the number one. You can reproduce
>> it with this example:
>>
>> \documentclass{article}
>> \usepackage{hyperref}
>>
>> \begin{document}
>> \label{a}\pageref{a}
>> \newpage
>> \pagenumbering{arabic}
>> \label{b}\pageref{b}
>> \end{document}
>>
>> How to correct is depends on how you are actually getting two pages 1.
>
> Would the use of \frontmatter and of \mainmatter account for this,
> do you think ?
Sure, a page i and a page 1 are both pages "1". But you will get the
message only with plainpages=true (which is not the default):
\documentclass{book}
\usepackage[plainpages=true]{hyperref}
\begin{document}
\phantomsection
\frontmatter
abc\label{a}\pageref{a}
\mainmatter
abc\label{b}\pageref{b}
\end{document}
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=pdfpagelabels
--
Ulrike Fischer
More information about the texhax
mailing list