I would like to make an symbol index which is sorted by occurence of symbol.
For example: Something like
... $\omega$\index{$\omega$} ... $A^P_k$\index{$A^P_k$} ... $\{\}$\index{$\{\}$}
should produce an index which first mentions $\omega$ then $A^P_k$ and then $\{\}$.
I did not find any option for makeidx, so I tried to use a workaround and define a command which does that for me:
\newcounter{occurrence}
\newcommand{\is}[1]{\index{\arabic{occurrence}@{#1}}\addtocounter{occurrence}{1}}
In fact this works to some extend but some symbols get rejected (I do not know which one) and some will not be printed appropriate for example \is{$\langle \rangle$} results in the entry "hAB".
.ilgfile. – egreg Jan 15 '12 at 10:12