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.
Oops, youโre not logged in!
Login or sign up for a free account.
This script is part of the Indexes and Concordances collection. See the full collection here.ย For more information about working with indexes and concordances in InDesign, see 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.

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
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.
This article was last modified on August 22, 2026
This article was first published on January 29, 2026
Commenting is easier and faster when you're logged in!
Recommended for you
How to Modify or Configure These Scripts
Scripts are plain-text files and can be edited in any plain-text editor (Notepad...
How to Improve Data Merge with Scripts in InDesign
Learn how to harness more power from InDesign's data merge feature by using scri...
TypeTalk: Hung Punctuation & Optical Margin Alignment
Learn how to create the appearance of a more optically-aligned edge for your tex...
