]> granicus.if.org Git - python/commitdiff
Add AMK's seealso environment that is now used in the library manual
authorGuido van Rossum <guido@python.org>
Thu, 17 Jul 1997 18:27:53 +0000 (18:27 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Jul 1997 18:27:53 +0000 (18:27 +0000)
at some places.

Doc/myformat.sty

index 67858501277ed72d92698b41103a02c4010adff1..e17c3f9e81fb522b4123f2d3c09d598feb666ae0 100644 (file)
 \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}}