Commit 06f35838 authored by Fred Drake's avatar Fred Drake

When "declaring" a module using \*modindex{}, and * doesn't start with "ref",

set up the indexsubitem to "(in module #1)" automatically.  This reduces the
amount of markup needed in the module docs and, more importantly, makes it
o.k. to leave out in simple sections.  \setindexsubitem{} can still be used
to change or reset it.
parent aa382e6e
...@@ -275,6 +275,7 @@ ...@@ -275,6 +275,7 @@
% Add the defining entry for a module % Add the defining entry for a module
\newcommand{\defmodindex}[2]{% \newcommand{\defmodindex}[2]{%
\index{#1@{\idxcode{#1}} (#2module)|textbf}% \index{#1@{\idxcode{#1}} (#2module)|textbf}%
\setindexsubitem{(in module #1)}%
\write\modindexfile{#1 \thepage}} \write\modindexfile{#1 \thepage}}
% built-in & Python modules in the main distribution % built-in & Python modules in the main distribution
...@@ -616,3 +617,10 @@ ...@@ -616,3 +617,10 @@
% Tell TeX about pathological hyphenation cases: % Tell TeX about pathological hyphenation cases:
\hyphenation{Base-HTTP-Re-quest-Hand-ler} \hyphenation{Base-HTTP-Re-quest-Hand-ler}
% Don't use this at this time.
% Should probably do a little more, and will get moved around as the
% document classes get defined.
\newenvironment{howto}{
\chapter{\@title}
}{}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment