Number Style Overrides in Books
Number style override settings are ignored for indexes that are generated from Book files. This script fixes that.
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 Type and Text collection. See the full collection here.ย
This script is part of the Book and Long Document Composition/Production collection. See the full collection here.ย
This script is part of the Book Panel collection. See the full collection here.ย
Return to Index Fixes page.
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. The script (link at the bottom of this page) 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 September 5, 2026
This article was first published on February 5, 2026
Commenting is easier and faster when you're logged in!
Recommended for you
Using InDesign and XML to Visualize the COVID-19 Data
The COVID-19 Pandemic is something that has touched us all in one way or another...
Fix Page References After Tables
Tables inflict mayhem on scripts that insert index markers. This script fixes it...
