mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Define \seeurl in the seealso environment. Two parameters: url, why.
This commit is contained in:
parent
ef4d111b2a
commit
51313f164c
1 changed files with 9 additions and 0 deletions
|
|
@ -922,12 +922,21 @@
|
||||||
#3
|
#3
|
||||||
\end{fulllineitems}
|
\end{fulllineitems}
|
||||||
}
|
}
|
||||||
|
% \seeurl{url}{why it's interesting}
|
||||||
|
\newcommand{\py@seeurl}[2]{%
|
||||||
|
\par%
|
||||||
|
\begin{fulllineitems}
|
||||||
|
\item[\url{#1}]
|
||||||
|
#2
|
||||||
|
\end{fulllineitems}
|
||||||
|
}
|
||||||
\newenvironment{seealso}[0]{
|
\newenvironment{seealso}[0]{
|
||||||
\par
|
\par
|
||||||
\strong{See Also:}\par
|
\strong{See Also:}\par
|
||||||
\def\seetext##1{\par{##1}}
|
\def\seetext##1{\par{##1}}
|
||||||
\let\seemodule=\py@seemodule
|
\let\seemodule=\py@seemodule
|
||||||
\let\seerfc=\py@seerfc
|
\let\seerfc=\py@seerfc
|
||||||
|
\let\seeurl=\py@seeurl
|
||||||
}{\par}
|
}{\par}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue