Mercurial > cpython-lru_cache-weakref
comparison Doc/texinputs/python.sty @ 30345:00453a0508df legacy-trunk
add a note about how \ulink should be different than it actually is
for PDF generation
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Sat, 06 Sep 2003 04:19:43 +0000 |
| parents | dbae05c29e93 |
| children | 651fc8d98d99 |
comparison
equal
deleted
inserted
replaced
| 30344:d59eca2efa6a | 30345:00453a0508df |
|---|---|
| 928 | 928 |
| 929 % \ulink{link text}{URL} | 929 % \ulink{link text}{URL} |
| 930 \ifpdf | 930 \ifpdf |
| 931 % The \noindent here is a hack -- we're forcing pdfTeX into | 931 % The \noindent here is a hack -- we're forcing pdfTeX into |
| 932 % horizontal mode since \pdfstartlink requires that. | 932 % horizontal mode since \pdfstartlink requires that. |
| 933 % For PDF, we *should* only generate a link when the URL is absolute. | |
| 933 \newcommand{\ulink}[2]{\noindent{% | 934 \newcommand{\ulink}[2]{\noindent{% |
| 934 \pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#2)}% | 935 \pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#2)}% |
| 935 \py@LinkColor% color of the link text | 936 \py@LinkColor% color of the link text |
| 936 #1% | 937 #1% |
| 937 \py@NormalColor% Turn it back off; these are declarative | 938 \py@NormalColor% Turn it back off; these are declarative |
