]> granicus.if.org Git - python/commitdiff
\url{}: For pdflatex, make the link active & make it blue. If anyone figures
authorFred Drake <fdrake@acm.org>
Wed, 18 Feb 1998 14:24:19 +0000 (14:24 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 18 Feb 1998 14:24:19 +0000 (14:24 +0000)
out how to make the border go away completely, please let me know!

Doc/myformat.sty

index 6e6fa6d0aee1ce8746abf07c11a02ceb6397712b..56b32591cab21c59e5dc4807d069033e01aa0b7b 100644 (file)
 \newcommand{\strong}[1]{{\bf #1}}
 % let's experiment with a new font:
 \newcommand{\file}[1]{\mbox{`\small\textsf{#1}'}}
-%\@ifundefined{pdfannotlink}{%
+\@ifundefined{pdfannotlink}{%
   \newcommand{\url}[1]{\mbox{\small\textsf{#1}}}%
-%}{
-%  \newcommand{\url}[1]{{%
-%    \pdfannotlink user{/S /URI /URI (#1)}%
-%    \mbox{\small\textsf{#1}}}}%
-%}
-\let\email=\url
+}{
+  \input{pdfcolor}%                    this really isn't a package
+  \newcommand{\url}[1]{{%
+    \pdfannotlink user{/C [1 1 1] /S /URI /URI (#1)}%
+    \NavyBlue%                         color of the link text
+    \mbox{\small\textsf{#1}}%
+    \Black%                            Turn it back off; these are declarative
+    \pdfendlink}}%                     and don't appear bound to the current
+}%                                     formatting "box".
+\let\email=\code
 
 \newcommand{\varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}