mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +00:00
Add AMK's seealso environment that is now used in the library manual
at some places.
This commit is contained in:
parent
e47da0ae04
commit
e3d5fc50a1
1 changed files with 11 additions and 0 deletions
|
|
@ -215,3 +215,14 @@
|
||||||
\advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}}
|
\advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}}
|
||||||
|
|
||||||
\newcommand{\sectcode}[1]{{\tt #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}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue