]> granicus.if.org Git - python/commitdiff
Add named destinations for \label{} in the PDF.
authorFred Drake <fdrake@acm.org>
Wed, 18 Feb 1998 17:21:09 +0000 (17:21 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 18 Feb 1998 17:21:09 +0000 (17:21 +0000)
Fix \email{} so it doesn't rely on \url{}.

Doc/myformat.sty

index 56b32591cab21c59e5dc4807d069033e01aa0b7b..1e4ef09a4fe74869d4241d8b2ae6fa611563095d 100644 (file)
 \RequirePackage{times}\typeout{Using times fonts instead of Computer Modern.}
 
 
-% for PDF output, use maximal compression:
-\@ifundefined{pdfannotlink}{}{\pdfcompresslevel=9}
+% for PDF output, use maximal compression, revise \label{} to support named
+% targets for later linking operations.
+\@ifundefined{pdfannotlink}{}{%
+  \pdfcompresslevel=9
+  \let\OldLabel=\label
+  \renewcommand{\label}[1]{%
+    \OldLabel{#1}%
+    {\pdfdest name {#1} fit}%
+  }
+}
 
 % Increase printable page size (copied from fullpage.sty)
 \topmargin 0pt
     \Black%                            Turn it back off; these are declarative
     \pdfendlink}}%                     and don't appear bound to the current
 }%                                     formatting "box".
-\let\email=\code
+\newcommand{\email}[1]{\mbox{\small\textsf{#1}}}
 
 \newcommand{\varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}