Mercurial > cpython-lru_cache-weakref
diff Doc/texinputs/python.sty @ 10846:b7378df3db56 legacy-trunk
Change the look of \seemodule output to fit in better.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 11 May 1999 15:42:51 +0000 |
| parents | fb1733b6bef5 |
| children | 28887f40e344 |
line wrap: on
line diff
--- a/Doc/texinputs/python.sty Tue May 11 15:15:54 1999 +0000 +++ b/Doc/texinputs/python.sty Tue May 11 15:42:51 1999 +0000 @@ -821,28 +821,34 @@ % Cross-referencing (AMK, new impl. FLD) % Sample usage: % \begin{seealso} -% \seemodule{rand}{Uniform random number generator}; % Module xref -% \seetext{\emph{Encyclopedia Britannica}}. % Ref to a book +% \seemodule{rand}{Uniform random number generator.}; % Module xref +% \seetext{\emph{Encyclopedia Britannica}}. % Ref to a book % % % A funky case: module name contains '_'; have to supply an optional key -% \seemodule[copyreg]{copy_reg}{pickle interface constructor registration} +% \seemodule[copyreg]{copy_reg}{Interface constructor registration for +% \module{pickle}.} +% \end{seealso} % -% \end{seealso} +% Note that the last parameter for \seemodule and \seetext should be complete +% sentences and be terminated with the proper punctuation. \@ifundefined{pdfannotlink}{% \newcommand{\py@seemodule}[3][\py@modulebadkey]{% \par% \ifx\py@modulebadkey#1\def\py@modulekey{#2}\else\def\py@modulekey{#1}\fi% - \ref{module-\py@modulekey}:\quad % - Module \module{#2}% - \quad (#3)% + \begin{fulllineitems} + \item[Module \module{#2} (section \ref{module-\py@modulekey}):] + #3 + \end{fulllineitems} } }{\newcommand{\py@seemodule}[3][\py@modulebadkey]{% \par% \ifx\py@modulebadkey#1\def\py@modulekey{#2}\else\def\py@modulekey{#1}\fi% - \ref{module-\py@modulekey}:\quad % - \py@linkToName{label-module-\py@modulekey}{ Module \module{#2} } - \quad (#3)% + \begin{fulllineitems} + \item[\py@linkToName{label-module-\py@modulekey}{Module \module{#2}} + (section \ref{module-\py@modulekey}):] + #3 + \end{fulllineitems} } } \newenvironment{seealso}[0]{
