Skip Style: Format First Lines in Index Sections
Apply a paragraph style to index entries that start a new letter. Optionally insert section headings.
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.
Take this list:
aardvark
ape
bear
beaver
cat
cheetah
cricket
The script applies a named paragraph style to all paragraphs whose first letter changes from that in the previous one. In this example, that would beย bear andย cat. The result would be this:
aardvark
ape
bear
beaver
cat
cheetah
cricket
You get this result by creating the paragraph style index_skip based on the level-1 index style and adding some space before.
You can add section letters so that the list would look like this:
aardvark
ape
B
bear
beaver
C
cat
cheetah
cricket
When you opt to insert headings (A, B, etc.), the paragraph style is applied to them.
Use
The script expects a paragraph style called index_skip. To change this, look for this line in the script:
var skip_style = 'index_skip';
and change index_skip to the name of the paragraph style you want to use. To have the script insert section headings, set insert_letter to true.
To run the script, select a story in the usual way (select a text frame or an insertion point in a story) and run the script from InDesign’s Scripts panel.
The script has no interface.
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 August 3, 2026
Commenting is easier and faster when you're logged in!
Recommended for you
How to Find Files Using Type1 PostScript Fonts in InDesign
Learn an easy way to find which files are using the soon-to-be-discontinued Type...
Indesign Basics: Numbering Pages
InDesign can number your pages, but a little bit of setup goes a long way, as Er...
Index Graph: Show the Distribution of Index Markers
To show how the index markers (page references) are distributed across the docum...
