I'm trying to write a command to create index entries, where a name
should appear in \tt in the index:
\newcommand{\ixm}[1]{%
\index{#1@\texttt{#1} macro}%
\index{macros!#1@\texttt{#1}}}
This works OK, unless I want to use it to define a page range:
\ixm{GOODFIT|(}
...
\ixm{GOODFIT)}