Mercurial > cpython-lru_cache-weakref
comparison Doc/texinputs/python.sty @ 14521:9fed4eebc586 legacy-trunk
\seetitle: New macro for building reference list content.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 12 Sep 2000 17:52:33 +0000 |
| parents | f78f287b3add |
| children | 219e00221c84 |
comparison
equal
deleted
inserted
replaced
| 14520:addaba991077 | 14521:9fed4eebc586 |
|---|---|
| 920 (section \ref{module-\py@modulekey}):] | 920 (section \ref{module-\py@modulekey}):] |
| 921 #3 | 921 #3 |
| 922 \end{fulllineitems} | 922 \end{fulllineitems} |
| 923 } | 923 } |
| 924 } | 924 } |
| 925 % \seetitle[url]{title}{why it's interesting} | |
| 926 \newcommand{\py@seetitle}[3][\py@modulebadkey]{% | |
| 927 \par | |
| 928 \begin{fulllineitems} | |
| 929 \item[\citetitle{#2}] | |
| 930 \ifx\py@modulebadkey#1\else | |
| 931 \item[{\small{(\url{#1})}}] | |
| 932 \fi | |
| 933 #3 | |
| 934 \end{fulllineitems} | |
| 935 } | |
| 925 % \seepep{number}{title}{why it's interesting} | 936 % \seepep{number}{title}{why it's interesting} |
| 926 \newcommand{\py@seepep}[3]{% | 937 \newcommand{\py@seepep}[3]{% |
| 927 \par% | 938 \par% |
| 928 \begin{fulllineitems} | 939 \begin{fulllineitems} |
| 929 \item[\pep{#1}, ``\emph{#2}''] | 940 \item[\pep{#1}, ``\emph{#2}''] |
| 949 \newenvironment{seealso}[0]{ | 960 \newenvironment{seealso}[0]{ |
| 950 \par | 961 \par |
| 951 \strong{See Also:}\par | 962 \strong{See Also:}\par |
| 952 \def\seetext##1{\par{##1}} | 963 \def\seetext##1{\par{##1}} |
| 953 \let\seemodule=\py@seemodule | 964 \let\seemodule=\py@seemodule |
| 965 \let\seepep=\py@seepep | |
| 954 \let\seerfc=\py@seerfc | 966 \let\seerfc=\py@seerfc |
| 967 \let\seetitle=\py@seetitle | |
| 955 \let\seeurl=\py@seeurl | 968 \let\seeurl=\py@seeurl |
| 956 }{\par} | 969 }{\par} |
| 957 | 970 |
| 958 | 971 |
| 959 % Allow the Python release number to be specified independently of the | 972 % Allow the Python release number to be specified independently of the |
