summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-17 18:27:53 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-17 18:27:53 (GMT)
commite3d5fc50a182d556deecd1a6a55fc2d1260ed288 (patch)
tree0ba8dc3fdc39cedf9dafdc7dad01fa73e44ee1da /Doc
parente47da0ae04814fab2a0aa6e637de2e4269978017 (diff)
downloadcpython-e3d5fc50a182d556deecd1a6a55fc2d1260ed288.zip
cpython-e3d5fc50a182d556deecd1a6a55fc2d1260ed288.tar.gz
cpython-e3d5fc50a182d556deecd1a6a55fc2d1260ed288.tar.bz2
Add AMK's seealso environment that is now used in the library manual
at some places.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/myformat.sty11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty
index 6785850..e17c3f9 100644
--- a/Doc/myformat.sty
+++ b/Doc/myformat.sty
@@ -215,3 +215,14 @@
\advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}}
\newcommand{\sectcode}[1]{{\tt #1}}
+
+% Cross-referencing (AMK)
+% Sample usage:
+% \begin{seealso}
+% \seemodule{rand}{Uniform random number generator}; % Module xref
+% \seetext{{\em Encyclopedia Britannica}}. % Ref to a book
+% \end{seealso}
+
+\newenvironment{seealso}[0]{{\bf See Also: }}{\par}
+\newcommand{\seemodule}[2]{\ref{module-#1}: {\tt #1} (#2)}
+\newcommand{\seetext}[1]{\par{#1}}