I found this related topic but it didn't seem to fix my problem: How to fix symbol index entry?
I was using good old \|\cdot\|
for norms but my index wasn't liking it. So then I did the new command \norm
to be \|
. This works great except in subscripts. To be specific I have something like this:
{\index[symbols]{$B_{\norm\cdot\norm}(x,r)$}}
And it appears in the index as $B_{weird stuff}(x,r)$
. More specifically, going into the index file I see it's recorded as this:
$B_{\delimiter 026B30D \cdot \delimiter 026B30D }(x,r)$
Any ideas?
`
, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it).\DeclareRobustCommand*{\norm}{\|}
? (to be used in math mode)