[Python-checkins] CVS: python/dist/src/Doc/texinputs python.sty,1.88.4.1,1.88.4.2

Fred L. Drake fdrake@users.sourceforge.net
Fri, 15 Mar 2002 20:52:57 -0800


Update of /cvsroot/python/python/dist/src/Doc/texinputs
In directory usw-pr-cvs1:/tmp/cvs-serv27569/texinputs

Modified Files:
      Tag: release22-maint
	python.sty 
Log Message:
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.


Index: python.sty
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/python.sty,v
retrieving revision 1.88.4.1
retrieving revision 1.88.4.2
diff -C2 -d -r1.88.4.1 -r1.88.4.2
*** python.sty	15 Mar 2002 23:18:05 -0000	1.88.4.1
--- python.sty	16 Mar 2002 04:52:55 -0000	1.88.4.2
***************
*** 49,52 ****
--- 49,60 ----
    \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