Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.