From: Fred Drake Date: Wed, 4 Feb 1998 14:43:36 +0000 (+0000) Subject: \modindex{}: New macro; index module without declaring it "built-in" or X-Git-Tag: v1.5.1~866 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b19274704f44ab2000ef10cf4c683e7d84738da9;p=thirdparty%2FPython%2Fcpython.git \modindex{}: New macro; index module without declaring it "built-in" or "standard". This is mostly for documentation of modules outside the standard library. --- diff --git a/Doc/myformat.sty b/Doc/myformat.sty index d5d5a3188cf5..0261387bfb86 100644 --- a/Doc/myformat.sty +++ b/Doc/myformat.sty @@ -114,6 +114,7 @@ % Add the defining entry for a module \newcommand{\defmodindex}[2]{\index{#1@{\codefont#1} (#2module)|textbf}% \write\modindexfile{#1 \thepage}} +\newcommand{\modindex}[1]{\defmodindex{#1}{}} \newcommand{\bimodindex}[1]{\defmodindex{#1}{built-in }} \newcommand{\stmodindex}[1]{\defmodindex{#1}{standard }}