Mercurial > cpython-lru_cache-weakref
comparison Doc/texinputs/python.sty @ 22589:66e85a732ddd legacy-trunk
Make \url to force horizontal mode.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 26 Mar 2002 19:14:41 +0000 |
| parents | dc6054e5b642 |
| children | d778ea9de780 |
comparison
equal
deleted
inserted
replaced
| 22588:f1dbecb7e416 | 22589:66e85a732ddd |
|---|---|
| 794 | 794 |
| 795 % Use this def/redef approach for \url{} since hyperref defined this already, | 795 % Use this def/redef approach for \url{} since hyperref defined this already, |
| 796 % but only if we actually used hyperref: | 796 % but only if we actually used hyperref: |
| 797 \ifpdf | 797 \ifpdf |
| 798 \newcommand{\url}[1]{{% | 798 \newcommand{\url}[1]{{% |
| 799 \noindent% | |
| 799 \pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#1)}% | 800 \pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#1)}% |
| 800 \py@LinkColor% color of the link text | 801 \py@LinkColor% color of the link text |
| 801 \small\sf #1% | 802 \small\sf #1% |
| 802 \py@NormalColor% Turn it back off; these are declarative | 803 \py@NormalColor% Turn it back off; these are declarative |
| 803 \pdfendlink}% and don't appear bound to the current | 804 \pdfendlink}% and don't appear bound to the current |
