Skip Style: Format First Lines in Index Sections
Apply a paragraph style to index entries that start a new letter. Optionally insert section headings.
This script is part of the Indexes and Concordances collection. See the full collection 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
Drop Digits (Number-Span Elision)
Drop digits in number ranges (a.k.a. number-span elision; condensing inclusive n...
This Week in InDesign Articles, Number 23
It's a deluge of articles and videos and good InDesign stuff to dive into!
