mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
add new reference macro: \seelink
This commit is contained in:
parent
91f5cbe264
commit
4f687b3051
3 changed files with 33 additions and 1 deletions
|
|
@ -1160,6 +1160,14 @@
|
|||
}
|
||||
\fi
|
||||
|
||||
% \seelink{url}{link text}
|
||||
\newcommand{\py@seelink}[3]{%
|
||||
\par
|
||||
\begin{fulllineitems}
|
||||
\item[\ulink{#2}{#1}]
|
||||
#3
|
||||
\end{fulllineitems}
|
||||
}
|
||||
% \seetitle[url]{title}{why it's interesting}
|
||||
\newcommand{\py@seetitle}[3][\py@modulebadkey]{%
|
||||
\par
|
||||
|
|
@ -1204,6 +1212,7 @@
|
|||
\let\seerfc=\py@seerfc
|
||||
\let\seetitle=\py@seetitle
|
||||
\let\seeurl=\py@seeurl
|
||||
\let\seelink=\py@seelink
|
||||
}{\par}
|
||||
\newenvironment{seealso}{
|
||||
\par
|
||||
|
|
@ -1215,6 +1224,7 @@
|
|||
\let\seerfc=\py@seerfc
|
||||
\let\seetitle=\py@seetitle
|
||||
\let\seeurl=\py@seeurl
|
||||
\let\seelink=\py@seelink
|
||||
}{\par}
|
||||
|
||||
% Allow the Python release number to be specified independently of the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue