comparison Doc/texinputs/python.sty @ 9958:2750e1de6829 legacy-trunk

\py@modindex: Format the index entry for the module index more like that used in the "normal" index. No visual difference, but more easily processed by helper scripts.
author Fred Drake <fdrake@acm.org>
date Tue, 26 Jan 1999 19:23:09 +0000
parents a58f36352c4f
children 485502c42d89
comparison
equal deleted inserted replaced
9957:57bcc6ec638f 9958:2750e1de6829
255 \newcommand{\py@modindex}[2]{% 255 \newcommand{\py@modindex}[2]{%
256 \renewcommand{\py@thismodule}{#1} 256 \renewcommand{\py@thismodule}{#1}
257 \setindexsubitem{(in module #1)}% 257 \setindexsubitem{(in module #1)}%
258 \index{#1@{\py@idxcode{#1}} (#2module)|textbf}% 258 \index{#1@{\py@idxcode{#1}} (#2module)|textbf}%
259 \ifpy@UseModuleIndex% 259 \ifpy@UseModuleIndex%
260 \write\modindexfile{\protect\indexentry{#1@{\tt #1}}{\thepage}}% 260 \write\modindexfile{\protect\indexentry{#1@{\texttt {#1}}}{\thepage}}%
261 \fi% 261 \fi%
262 } 262 }
263 263
264 % built-in & Python modules in the main distribution 264 % built-in & Python modules in the main distribution
265 \newcommand{\bimodindex}[1]{\py@modindex{#1}{built-in }} 265 \newcommand{\bimodindex}[1]{\py@modindex{#1}{built-in }}