summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs/python.sty
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-12 17:52:33 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-12 17:52:33 (GMT)
commit48449985f45745b06078c82bf01152daff13498d (patch)
treeb0f47adeae43350c5498fec57db1c6d24b840038 /Doc/texinputs/python.sty
parent1349437e4c2bfc6e7f601f5a7c284a00fdbdcd6b (diff)
downloadcpython-48449985f45745b06078c82bf01152daff13498d.zip
cpython-48449985f45745b06078c82bf01152daff13498d.tar.gz
cpython-48449985f45745b06078c82bf01152daff13498d.tar.bz2
\seetitle: New macro for building reference list content.
Diffstat (limited to 'Doc/texinputs/python.sty')
-rw-r--r--Doc/texinputs/python.sty13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 40c870b..fe5db27 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -922,6 +922,17 @@
\end{fulllineitems}
}
}
+% \seetitle[url]{title}{why it's interesting}
+\newcommand{\py@seetitle}[3][\py@modulebadkey]{%
+ \par
+ \begin{fulllineitems}
+ \item[\citetitle{#2}]
+ \ifx\py@modulebadkey#1\else
+ \item[{\small{(\url{#1})}}]
+ \fi
+ #3
+ \end{fulllineitems}
+}
% \seepep{number}{title}{why it's interesting}
\newcommand{\py@seepep}[3]{%
\par%
@@ -951,7 +962,9 @@
\strong{See Also:}\par
\def\seetext##1{\par{##1}}
\let\seemodule=\py@seemodule
+ \let\seepep=\py@seepep
\let\seerfc=\py@seerfc
+ \let\seetitle=\py@seetitle
\let\seeurl=\py@seeurl
}{\par}