Did you ever wish InDesign had the ability to number your lines? Well now it does with a little script!
“Number Lines by Style” is a script which allows you to add line numbers to text of specific styles. I works by adding anchored text frames at the start of each line. The script will number lines on the current page only.
“Number Lines by Style” was written in its original form for Koren Publishers we thank them for their consent to share it!
- Place the script in your Scripts Panel folder
- Make sure the correct page is active
- Double click on the script in the Scripts Panel
- Select the style or styles to number and click OK.
Examples of Use
Here we have a shopping list of the most important things that you could possibly need.
We want to number the list items, so we run the script, and select the Numbered Lines paragraph style:
Which numbers our items:
Of course the example is kind of silly, because we can just use paragraph numbers. The one situation similar to this, where you might want to use this script, is when you’d need the numbers outside the text frame.
A more classic example would be a sitaution where you’d need every line numbered, and the paragraphs are more than one line long:
In this case, you’d run the script and select all the styles used in the essay:
Presto! numbered lines:
- The script uses an object style for the anchored text frames, as well as a paragraph style for the numbers within the frame. You can adjust these styles to tweak the positioning and formatting of the numbers.
Have fun!Tags: InDesign, Scripts