diff options
author | Fred Drake <fdrake@acm.org> | 2002-03-16 04:52:55 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-03-16 04:52:55 (GMT) |
commit | c5e9264c993f1bca9e16d24747066efda161d845 (patch) | |
tree | ff41581958a0847d9efc7c755d7768baafb2dd40 | |
parent | 487b17d2c1f3c3b88800815f1e70d1027a19e4b5 (diff) | |
download | cpython-c5e9264c993f1bca9e16d24747066efda161d845.zip cpython-c5e9264c993f1bca9e16d24747066efda161d845.tar.gz cpython-c5e9264c993f1bca9e16d24747066efda161d845.tar.bz2 |
pdfTeX 0.13 and 0.14 do not agree on the name of the macro, and I will not
change the installed version on either of the machines I use to format the
docs. Instead, use a compatibility hack to support both versions. This is
also better for external users of the Python styles.
-rw-r--r-- | Doc/texinputs/python.sty | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 9fa6d4c..d37682e 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -48,6 +48,14 @@ % \let\py@OldContentsline=\contentsline % + % Backward compatibility hack: pdfTeX 0.13 defined \pdfannotlink, + % but it changed to \pdfstartlink in 0.14. This let's us use either + % version and still get useful behavior. + % + \@ifundefined{pdfstartlink}{ + \let\pdfstartlink=\pdfannotlink + }{} + % % Macro that takes two args: the name to link to and the content of % the link. This takes care of the PDF magic, getting the colors % the same for each link, and avoids having lots of garbage all over |