I am using imakeidx
to make multiple indices for my report, but I ran into a problem where I get an "Undefined Control Sequence" error when I try to compile. The problem is shown below.
When I open the specified .ind
file, I see this.
Considering I've never had to worry about .ind
files before, I did not modify this file. The code that produces that index entry is here.
I'm not quite sure what is wrong with this declaration, since I've never had problems with imakeidx
before.
\AT
which I never heard about.\ AT
ie a control-space followed by AT, that one you have\AT
which is an undefined commandimakeidx
package we should blame @egreg.\index
item in the LaTeX, I specify\index{P00-F120DG-AA | AT-101-042}
, so I'm not sure how that turns into\item P00-F120DG-AA , \hyperindexformat{\AT-101-042}{29}
. In fact, looking at a test file I made, the IND line should be:\item P00-F120DG, \ AT-101-042{29}
. I'm confused whyimakeidx
is formatting is strangely.|
symbol has a special meaning in any*makeidx
context -- it is the substitute for a backslash to control commands like\see
. instead of a literal|
, substitute\vert\
(there is a space at the end). and it might be helpful to check some documentation formakeidx
orimakeidx
. there is an example of the use of|
in the latter documentation, in section 5.2.5:{...{#1|innote}}
. (there are probably better references, but i haven't time to look just now.)