Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a88d681

Browse files
committed
Change the form of the name given to each page of the PDF from "page.%d" to
"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.
1 parent d671e8f commit a88d681

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/texinputs/python.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
}
6363
\def\@hyperfixhead{%
6464
\let\H@old@thehead\@thehead
65-
\gdef\@foo{\if@doing@page@targets\pdfdest name{page.\thepage} fit\fi}%
65+
\gdef\@foo{\if@doing@page@targets\pdfdest name{page.\thepage x} fit\fi}%
6666
\expandafter\ifx\expandafter\@empty\H@old@thehead
6767
\def\H@old@thehead{\hfil}\fi
6868
\def\@thehead{\@foo\relax\H@old@thehead}%

Doc/tools/toc2bkm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def write_toc(toc, fp):
101101

102102
def write_toc_entry(entry, fp, layer):
103103
stype, snum, title, pageno, toc = entry
104-
s = "\\pdfoutline goto name{page.%d}" % pageno
104+
s = "\\pdfoutline goto name{page.%dx}" % pageno
105105
if toc:
106106
s = "%s count -%d" % (s, len(toc))
107107
if snum:

0 commit comments

Comments
 (0)