summaryrefslogtreecommitdiff
path: root/Doc/texinputs
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-01-08 14:57:27 +0000
committerFred Drake <fdrake@acm.org>2004-01-08 14:57:27 +0000
commit4f687b305162d8e3babc72eda37fd88bba40b1b2 (patch)
tree66f797f0b81ed43ce9507f60ae9bb0da9f48c56c /Doc/texinputs
parent91f5cbe264682e180216d6cafb358d5e1964d41d (diff)
downloadcpython-git-4f687b305162d8e3babc72eda37fd88bba40b1b2.tar.gz
add new reference macro: \seelink
Diffstat (limited to 'Doc/texinputs')
-rw-r--r--Doc/texinputs/python.sty10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index d8071ee4ee..ff37ad9b33 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -1160,6 +1160,14 @@
}
\fi
+% \seelink{url}{link text}
+\newcommand{\py@seelink}[3]{%
+ \par
+ \begin{fulllineitems}
+ \item[\ulink{#2}{#1}]
+ #3
+ \end{fulllineitems}
+}
% \seetitle[url]{title}{why it's interesting}
\newcommand{\py@seetitle}[3][\py@modulebadkey]{%
\par
@@ -1204,6 +1212,7 @@
\let\seerfc=\py@seerfc
\let\seetitle=\py@seetitle
\let\seeurl=\py@seeurl
+ \let\seelink=\py@seelink
}{\par}
\newenvironment{seealso}{
\par
@@ -1215,6 +1224,7 @@
\let\seerfc=\py@seerfc
\let\seetitle=\py@seetitle
\let\seeurl=\py@seeurl
+ \let\seelink=\py@seelink
}{\par}
% Allow the Python release number to be specified independently of the