Re: pgfpages.sty und TOC
Heiko Oberdiek <heiko.oberdiek <at> GOOGLEMAIL.COM>
2011-04-13 07:17:03 GMT
On Wed, Apr 13, 2011 at 07:55:46AM +0200, Stefan Berthold wrote:
> Ich benuzte die aktuelle Version von pgfpages.sty (0.1) und bekomme
> falsche Seitenzahlen im Inhaltsverzeichnis. Sie sind genau um eins
> größer als sie sein sollten.
>
> Minimalbeispiel:
>
> \documentclass{article}
> \usepackage{pgfpages}
> \pgfpagesuselayout{2 on 1}[a4paper]
> \begin{document}
> \tableofcontents
> \section{Fun}
> \end{document}
>
> Ich hab das Problem selbst nicht dingfest machen können, würde mich also
> sehr über Hilfe freuen.
Aus der Docu ("58 Page Management"/"58.1 Basic Usage"):
| Another word of caution: using pgfpages wil l produce wrong page
| numbers in the .aux file. The rea- son is that TEX instantiates
| the page numbers when writing an .aux file only when the physical
| page is shipped out. Fortunately, this problem is easy to fix:
| First, typeset our file normally without using the
| \pgfpagesuselayout command (just put the comment marker % before
| it) Then, rerun TEX with the \pgfpagesuselayout command included
| and add the command \nofiles. This command ensures that the .aux
| file is not modified, which is exactly what you want.
(Continue reading)