]> granicus.if.org Git - python/commitdiff
Change the form of the name given to each page of the PDF from "page.%d" to
authorFred Drake <fdrake@acm.org>
Wed, 15 Apr 1998 14:53:28 +0000 (14:53 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 15 Apr 1998 14:53:28 +0000 (14:53 +0000)
"page.%dx"; this works around an acroread bug that causes targets not to be
recognized if their name is a prefix of another target in the file.

Doc/texinputs/python.sty
Doc/tools/toc2bkm.py

index fc121b8b4c62c23b7a3440f0f368e23e433fd666..4c38774e19b53bbcb34f021072ec956437b3ea42 100644 (file)
@@ -62,7 +62,7 @@
   }
   \def\@hyperfixhead{%
    \let\H@old@thehead\@thehead
-       \gdef\@foo{\if@doing@page@targets\pdfdest name{page.\thepage} fit\fi}%
+       \gdef\@foo{\if@doing@page@targets\pdfdest name{page.\thepage x} fit\fi}%
      \expandafter\ifx\expandafter\@empty\H@old@thehead
        \def\H@old@thehead{\hfil}\fi
     \def\@thehead{\@foo\relax\H@old@thehead}%
index 6ccda1fc627c77ba0bf7d2b0af35a7a84d633dd7..0d22fb1e2c2a58f4b2a77df44fd70cc14a5f01bc 100755 (executable)
@@ -101,7 +101,7 @@ def write_toc(toc, fp):
 
 def write_toc_entry(entry, fp, layer):
     stype, snum, title, pageno, toc = entry
-    s = "\\pdfoutline goto name{page.%d}" % pageno
+    s = "\\pdfoutline goto name{page.%dx}" % pageno
     if toc:
        s = "%s count -%d" % (s, len(toc))
     if snum: