Commit 0e4cd7f2 authored by Fred Drake's avatar Fred Drake

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.
parent a1e5da91
...@@ -48,6 +48,14 @@ ...@@ -48,6 +48,14 @@
% %
\let\py@OldContentsline=\contentsline \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 % 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 link. This takes care of the PDF magic, getting the colors
% the same for each link, and avoids having lots of garbage all over % the same for each link, and avoids having lots of garbage all over
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment