From: Guido van Rossum Date: Thu, 17 Jul 1997 18:27:53 +0000 (+0000) Subject: Add AMK's seealso environment that is now used in the library manual X-Git-Tag: v1.5a3~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3d5fc50a182d556deecd1a6a55fc2d1260ed288;p=thirdparty%2FPython%2Fcpython.git Add AMK's seealso environment that is now used in the library manual at some places. --- diff --git a/Doc/myformat.sty b/Doc/myformat.sty index 67858501277e..e17c3f9e81fb 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}}