mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
add a note about how \ulink should be different than it actually is
for PDF generation
This commit is contained in:
parent
38f6b8845b
commit
c8b08b446a
1 changed files with 1 additions and 0 deletions
|
@ -930,6 +930,7 @@
|
||||||
\ifpdf
|
\ifpdf
|
||||||
% The \noindent here is a hack -- we're forcing pdfTeX into
|
% The \noindent here is a hack -- we're forcing pdfTeX into
|
||||||
% horizontal mode since \pdfstartlink requires that.
|
% horizontal mode since \pdfstartlink requires that.
|
||||||
|
% For PDF, we *should* only generate a link when the URL is absolute.
|
||||||
\newcommand{\ulink}[2]{\noindent{%
|
\newcommand{\ulink}[2]{\noindent{%
|
||||||
\pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#2)}%
|
\pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#2)}%
|
||||||
\py@LinkColor% color of the link text
|
\py@LinkColor% color of the link text
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue