Index: Number Style Overrides in Books

Number style overrides are ignored when an index is generated in a separate document in a book file. The script fixes this.

This script is part of the Indexes and Concordances collection. See the full collection here.ย 

This script is part of the Book Panel collection. See the full collection here.ย 

Number style overrides set in the New Page Reference dialog (or the Page Reference Options dialog) work fine when the document’s index is generated in the document: the selected character style (Principal reference in the screenshot) is applied to all the relevant page numbers.

Setting a number style override for the index

However, when you generate the index in a separate document as part of a book file, the overrides are ignored: they aren’t applied in the book index. This script fixes that.

Use

The script has no interface, just run it from InDesign’s Scripts panel.

Open just one book file (scripts can’t tell which is the active book if two or more books are open). Generate the index in the index document as usual and save the index. You can have more than one index in the book โ€“ each in its own document, of course.

Run the script against the book. No documents need to be open, not even any index.

The script applies the requested character styles to all pages numbers in all indexes. When the script’s done the index document stays open, but it’s not saved.


Version history

23 Dec. 2025: Posted.


Peter Kahrel Script Repository
Hosted as a community service, and with deep appreciation, by CreativePro.com


Scripts by Topic | Script Index
Basic Script Installation and Use
How to Modify or Configure These Scripts
Resources for Scripting and Publishing Automation
About This Repository


Repository Home Page


Contact Peter Kahrel


Note to users: You run scripts at your own risk: CreativePro and the author accept no liability for anything that may be caused by any of these scripts. Always take the necessary precautions. We encourage you to save backups and test scripts on copies of your documents.

Bookmark
Please login to bookmark Close

This article was last modified on August 22, 2026

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading comments...