I'm working on a book project using LaTeX and am stuck on a very fine point of style in the index. The publisher wants page ranges in the index to appear in the form 145--52 (rather than 145--152), page range elision. I have no idea how to to get a LaTeX indexing package to do this. At the moment I'm using imakeidx and the project has two indices (Names and Subjects). I've put together a minimal working example. I'd be grateful for any advice,


\title{Index elision problem}
\date{July 2019}


\makeindex[name = person,title=Name Index,columns=2]
\makeindex[name = subject,title=Subject Index,columns=2]



\index[person]{Mr. T}
\clearpage Space \clearpage filler \clearpage Space \clearpage filler \clearpage Space \clearpage filler \clearpage Space \clearpage filler \clearpage Space \clearpage 
Mr. T, vans
\index[person]{Mr. T|(}
\clearpage filler \clearpage Space \clearpage filler \clearpage Space \clearpage filler
Mr. T, vans
\index[person]{Mr. T|)}


  • 1
    And what should it be for 61--69?? – user187802 Jul 5 '19 at 13:58
  • 61—9. Just clip the digits that don’t add new information. 61—75 is fine. – Mathlete of the Year Jul 5 '19 at 13:59
  • I think there is already something like this on the site. – egreg Jul 5 '19 at 14:18
  • If you find it please let me know. I’ve been looking for a while. – Mathlete of the Year Jul 5 '19 at 14:18
  • 1
    tex.stackexchange.com/a/463434/4427 But tell your publisher that saving a few characters at the expense of clarity is a bit silly. – egreg Jul 5 '19 at 14:19

Browse other questions tagged or ask your own question.