Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51313f1

Browse files
committed
Define \seeurl in the seealso environment. Two parameters: url, why.
1 parent ef4d111 commit 51313f1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/texinputs/python.sty

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,12 +922,21 @@
922922
#3
923923
\end{fulllineitems}
924924
}
925+
% \seeurl{url}{why it's interesting}
926+
\newcommand{\py@seeurl}[2]{%
927+
\par%
928+
\begin{fulllineitems}
929+
\item[\url{#1}]
930+
#2
931+
\end{fulllineitems}
932+
}
925933
\newenvironment{seealso}[0]{
926934
\par
927935
\strong{See Also:}\par
928936
\def\seetext##1{\par{##1}}
929937
\let\seemodule=\py@seemodule
930938
\let\seerfc=\py@seerfc
939+
\let\seeurl=\py@seeurl
931940
}{\par}
932941

933942

0 commit comments

Comments
 (0)