TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using imakeidx with makeindex and an .ist file. How can I forbid makeindex from creating page ranges (e.g. 3--5)?

share|improve this question
Use the -r option: \makeindex[...,options=-r -s myindex.ist] – egreg Sep 20 '12 at 10:15
Perfect, thank you! – ℝaphink Sep 20 '12 at 10:17
up vote 8 down vote accepted

The page range formation is disabled via a command line option, rather than an instruction in the .ist file. So the solution is to call makeindex with the -r option; with imakeidx this can be specified in the value for the option key; the simplest call would be

\makeindex[options= -r]

if no other setting for the (main) index is needed. In your case, denoting with ... other keywords or command line options, something like

\makeindex[... , options= -r -s myindex.ist ... , ...]

Note This is imakeidx specific. If one doesn't use this package, the call from the command line should be

makeindex -r -s myindex.ist filename
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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