I'm making an index where certain entries start with the math symbols $k$, $\mathcal{C}$, $\ast$-a.... In the first two cases, I want them to appear in the index as if they start with k and c respectively. In the last case I want the index to ignore $\ast$- and treat the word as if it begins with the letter a.

How might I go about doing that?

  • 6
    \index{k@$k$} and \index{c@$\mathcal{C}$}
    – egreg
    Aug 22, 2012 at 13:28
  • @egreg: why don't you post this as an answer?
    – bodo
    Aug 22, 2012 at 13:29

1 Answer 1


you need to give these entries a sort field. you've actually chosen the easiest approach, sorting them in with the alphabetic entries. egreg has provided good examples for the first two:

\index{k@$k$} and \index{c@$\mathcal{C}$}

my suggestion for the * is

\index{a sterisk@$\ast$}

including a space after the a to make sure it sorts at the beginning.

i've been compiling a set of notes on how to prepare a "clean" index, presenting tactics for avoiding all the problems i've seen in my experience as author technical support for the ams; when it's ready for general consumption, it will be posted on the ams web site for general reference, and i'll update this answer with a link.

(1) Regarding the index sort: Remember that the sorting is parallel at each level, so if a symbol is subsidiary to another entry, a sort field needs to be provided at the relevant level. Say you have this two-level entry with multiple sub-entries at the second level:

  First sub-entry
  Omega (the symbol)

Assuming you want the sub-entries in alphabetical order, you should enter the second sub-entry as


otherwise it will be sorted before the first sub-entry.

The same principle applies at the third level, if your index entries are nested that deeply.

(2) Between the time of the original answer and this addendum, I have retired, and there is no longer any question that an answer might be the "official" position of my employer. Hence any posting by me will now be in "proper" upper- and lowercase.

There is another consequence implied here. The notes I was compiling on preparing a "clean" index weren't completed before I left AMS. I do intend to complete them, but it's not certain that they will be posted on the AMS web site. They will, however, be posted to CTAN and I'll give a link when this happens.

Although the notes I was preparing were not extended to cover all topics I had planned before my retirement from AMS, the document (which does cover quite a broad range of situations) has been rescued from near oblivion and posted on the AMS website at https://www.ams.org/arc/tex/howto/index/0index-notes.pdf . I do still intend to complete it, but believe what's there now should be helpful.

  • 1
    Makeindex knows a section for symbols before the letter A. Therefore I would start the sort key with a symbol, if the symbols should be sorted in the symbol section: \index{$asterisk@$\ast$}, \index{$colon@:}, … Aug 22, 2012 at 13:52
  • 4
    Were the notes ever published? Jun 26, 2015 at 7:20
  • 1
    @YiannisLazarides -- sadly, it's still on my "to do" list, er, pushdown stack. it'll come to the surface sometime, but right now, i can't predict when. Jun 26, 2015 at 12:25
  • 2
    @barbarabeeton Will be looking forward to it :) Jun 26, 2015 at 12:35
  • 1
    @EivindDahl -- still working; new developments in the glossaries area have caused me to rethink this area. (please keep nagging.) Jun 1, 2018 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.