summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-27 14:54:06 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-27 14:54:06 (GMT)
commit4f56f2d64668b37f8b36545dee3960f10047af28 (patch)
treeac42ecb8313adf19d9e7c63ca791251dd25b9860
parent13452644d59a5c9d4d39d4418b94250d4e1e68c1 (diff)
downloadcpython-4f56f2d64668b37f8b36545dee3960f10047af28.zip
cpython-4f56f2d64668b37f8b36545dee3960f10047af28.tar.gz
cpython-4f56f2d64668b37f8b36545dee3960f10047af28.tar.bz2
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.
-rw-r--r--Doc/myformat.sty8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty
index ef194a4..e7d8499 100644
--- a/Doc/myformat.sty
+++ b/Doc/myformat.sty
@@ -275,6 +275,7 @@
% Add the defining entry for a module
\newcommand{\defmodindex}[2]{%
\index{#1@{\idxcode{#1}} (#2module)|textbf}%
+ \setindexsubitem{(in module #1)}%
\write\modindexfile{#1 \thepage}}
% built-in & Python modules in the main distribution
@@ -616,3 +617,10 @@
% Tell TeX about pathological hyphenation cases:
\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}
+}{}