diff options
author | Fred Drake <fdrake@acm.org> | 2002-03-16 04:52:36 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-03-16 04:52:36 (GMT) |
commit | 0e4cd7f26758e1a96e8c0ae1a9fa8d340b952acf (patch) | |
tree | c16c314e75f1ee13e4027e26d3ec7f7f676c93be /Doc/texinputs/python.sty | |
parent | a1e5da91d53734d4b1ae47abf78e3e1f9bdf5d5d (diff) | |
download | cpython-0e4cd7f26758e1a96e8c0ae1a9fa8d340b952acf.zip cpython-0e4cd7f26758e1a96e8c0ae1a9fa8d340b952acf.tar.gz cpython-0e4cd7f26758e1a96e8c0ae1a9fa8d340b952acf.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.
Diffstat (limited to 'Doc/texinputs/python.sty')
-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 |