bug-texinfo
[Top][All Lists]

## Re: Page number offset in the texinfo.pdf file

 From: Bernd Trog Subject: Re: Page number offset in the texinfo.pdf file Date: Wed, 7 Sep 2005 10:49:52 -0700 (PDT)

On Tue, 6 Sep 2005, Karl Berry wrote:

>     I think the feature is called "PDF page labels" (pdfpagelabels,
hyperref)
>
> What does it do?

Let me use an example (from the web):

\documentclass{book}
\usepackage[plainpages=false,pdfpagelabels,pagebackref]{hyperref}
\begin{document}
\frontmatter
Hello World (frontmatter): \cite{a}
\mainmatter
Hello World (mainmatter): \cite{a}
\chapter{Chapter}
\cite{a}

\begin{thebibliography}{999}
\bibitem{a} Foo bar

\end{thebibliography}
\end{document}

When using the acrobat reader, you should see the page number displayed in
roman numerals for the first 2 pages in the status line: "ii (2 of 7)"

> texinfo.tex does make pdf destinations on every page, if it's that simple
> (doubtful).

I'm neither know PDF nor TeX very well, but maybe a look in the hyperref
package would help?

>     how do I tell texinfo to start with page number 1 and linear
>     increase the pagecount in arabic numerals to the last page in the
>     document?
>
> I can't see any easy way to do this at the document level.  You could
> try making a copy of texinfo.tex and commenting out this line in
> \startcontents:
>     \ifnum \pageno>0 \global\pageno = \lastnegativepageno \fi
>
> I'm not sure if it will work or not, but that's all I see at the moment.

Thank you.
Modifying texinfo.tex solved this issue. I removed most(all?) pageno
modifications.

Bernd

______________________________________________________