I am using the makeidx indexing package.

I am trying to make an index and I want to group similar names, like say {continious function, differential function, etc} together, i.e. so that it displays it like

functions, continious, ... p.10
           differential, . p.20 


I tried \index{&functions&, continious} but that does not work. Sorry I could not find anything on the web. Cheers.

  • 2
    Are you after \index{functions!continuous} and \index{functions!differential}? Dec 28, 2015 at 20:00
  • take a look at the documentation for makeindex:, the program that does the sorting. that's where the input is described. texdoc makeindex` if you're working on a tex live installation. Dec 28, 2015 at 20:00
  • cheers mate. the ! was exactly what I was looking for.
    – I.P
    Dec 28, 2015 at 20:18
  • @ChristianHupfer I'll answer if we can't find a duplicate. Did you find one? I've been unsuccessful in searching so far. Dec 28, 2015 at 20:59
  • 1
    @barbarabeeton texdoc works also for miktex.
    – touhami
    Dec 28, 2015 at 21:22

1 Answer 1


Groups like these are known as subentries in makeindex terminology. You can create them using the ! character in your index command to create the nesting structure; for example:


Sub-subentries are also allowed, by using two exclamation points:


however, deeper nesting is not supported by LaTeX and makeindex.

The makeindex manual describes the usage of these and other special characters for handling index entries in detail.

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.