Paragraph Numbering Fix
Paragraph numbering works fine within stories, but across stories, numbering is often off. The script fixes that.
This script is part of the Type and Text collection. See the full collection here.
InDesign’s paragraph numbering works fine within stories, but across stories it all goes haywire. When numbered paragraphs are in different stories InDesign numbers them not according to their position in the document, but in the order in which they were created.
So when you add a new story between the first and the second one, and all three stories contain paragraphs using the same numbered paragraph style, the numbering will be off. The numbering can be corrected by the script described here (link at the foot of this page).
The script
The script has no interface. Place the cursor in an instance of a numbered paragraph and run the script from the Scripts panel. The script targets only the instances of the selected paragraph style. So if you use paragraph numbering for figure and table captions, and these two types of caption use different paragraph styles, you’ll have to run the script twice: once for the figure captions and once for the table captions.
Any cross-references to these paragraph numbers are preserved and are updated automatically. If you add or remove paragraphs using the numbered style you’ll need to run the script again.
Background
The idea behind the script is simple: at each instance of the numbered paragraph style, set its start number. In the interface you can set a number in the Bullets and Numbering window (Type > Paragraph, then select Bullets and Numbering…’ from the Paragraph panel’s fly-out menu):

Note that it’s still InDesign that numbers the paragraphs, the script doesn’t add numbers. Therefore cross-references to any of the numbers continue to work.
Note: Make sure that you enable ‘Continue numbers across stories’ in the list used in the paragraph style:

Version history
26 Oct 2024: First 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 December 16, 2025
Commenting is easier and faster when you're logged in!
Recommended for you
To Double-Space or Not to Double-Space…
Learn the history of the double word space…and whether or not it's a true type c...
Some Great Places to Find Free—and Legal!—Fonts
Type lovers on a budget can find high-quality fonts at no cost.
Moving Text From Word to InDesign
While some InDesign users focus on getting great-looking graphics into their lay...
