comparison Doc/texinputs/python.sty @ 22320:dc6054e5b642 2.2

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.
author Fred Drake <fdrake@acm.org>
date Sat, 16 Mar 2002 04:52:55 +0000
parents cc788b3b21b6
children 810c14f24373 66e85a732ddd
comparison
equal deleted inserted replaced
22316:cc788b3b21b6 22320:dc6054e5b642
45 % 45 %
46 % This definition allows the entries in the page-view of the ToC to be 46 % This definition allows the entries in the page-view of the ToC to be
47 % active links. Some work, some don't. 47 % active links. Some work, some don't.
48 % 48 %
49 \let\py@OldContentsline=\contentsline 49 \let\py@OldContentsline=\contentsline
50 %
51 % Backward compatibility hack: pdfTeX 0.13 defined \pdfannotlink,
52 % but it changed to \pdfstartlink in 0.14. This let's us use either
53 % version and still get useful behavior.
54 %
55 \@ifundefined{pdfstartlink}{
56 \let\pdfstartlink=\pdfannotlink
57 }{}
50 % 58 %
51 % Macro that takes two args: the name to link to and the content of 59 % Macro that takes two args: the name to link to and the content of
52 % the link. This takes care of the PDF magic, getting the colors 60 % the link. This takes care of the PDF magic, getting the colors
53 % the same for each link, and avoids having lots of garbage all over 61 % the same for each link, and avoids having lots of garbage all over
54 % this style file. 62 % this style file.