Advertisement


Paragraph "space after" shortcut - InDesign


Question

I'm looking for a keyboard shortcut to change spacing before and after paragraphs in InDesign CS6.

space after and space before

So far I haven't been able to find a default shortcut nor to setup a custom one (couldn't find this item inside the shortcut preferences).

Any ideas that don't involve creating paragraph styles for each spacing value?

2013/06/26
1
1
6/26/2013 11:40:00 AM

You can access the space after/before value via the scripting model. Depending on what you're after, you can change the value in the selected text or target the parent paragraph style.

I believe this is the value you're after (in javascript).

theParagraph.paragraphAttributes.spaceAfter = 12

theParagraph is a variable you define based on the target you're after.
12 is the value in points.

For your purposes, you want to increment the value up or down. You'll want to first retrieve the existing value then change it according to your increment of choice. That would look something like this:

theParagraph.paragraphAttributes.spaceAfter = ( currentValue - 2 )

When you add the scripts to InDesign's scripting palette you can assign a custom shortcut.

If you're a glutton for punishment, you can read about InDesign scripting all day long in this PDF from Adobe.

2013/07/30
3
7/30/2013 3:52:00 PM