Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 207e57b

Browse files
committed
Added definitions of \refbimodindex{} and \refstmodindex{}, which should be
used to add index references for built-in and standard modules, respectively. Modified \bimodindex{} and \stmodindex{} to make the page number bold, to allow the defining instance of a module to stand out in the index. Check-ins which fix improper use of \bimodindex{} and \stmodindex{} will be made as fixes are applied. Misc. indexing updates will occur as a side effect in some cases.
1 parent d9dbfbd commit 207e57b

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Doc/myformat.sty

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,14 @@
9696
\newcommand{\bifuncindex}[1]{\index{#1@{\tt#1} (built-in function)}}
9797

9898
% Add an index entry for a module
99-
\newcommand{\modindex}[2]{\index{#1@{\tt#1} (#2module)}}
100-
\newcommand{\bimodindex}[1]{\modindex{#1}{built-in }}
101-
\newcommand{\stmodindex}[1]{\modindex{#1}{standard }}
99+
\newcommand{\refmodule}[2]{\index{#1@{\tt#1} (#2module)}}
100+
\newcommand{\refbimodindex}[1]{\refmodule{#1}{built-in }}
101+
\newcommand{\refstmodindex}[1]{\refmodule{#1}{standard }}
102+
103+
% Add the defining entry for a module
104+
\newcommand{\defmodindex}[2]{\index{#1@{\tt#1} (#2module)|textbf}}
105+
\newcommand{\bimodindex}[1]{\defmodindex{#1}{built-in }}
106+
\newcommand{\stmodindex}[1]{\defmodindex{#1}{standard }}
102107

103108
% Additional string for an index entry
104109
\newcommand{\indexsubitem}{}

0 commit comments

Comments
 (0)