6 Replies Latest reply on Feb 1, 2016 10:08 AM by rob day

    Progressive Leading in InDesign

    billypostle

      Hi I hope someone can help, I have an idea I am finding hard to execute in InDesign, I have around 12000 words that I want to have progressively smaller leading all the way down the page to the point that lines are actually overlapping (legibility is not a factor here). On an A1 page I currently have around 200 lines of text. Is there anyway of telling InDesign to reduce the leading on every new line of text or am I going to have to do this myself? I have attached a screenshot that may help explain what I am trying to do. Hope someone can help!!

      Thanks!

      Screen Shot 2016-02-01 at 13.30.24.png

        • 1. Re: Progressive Leading in InDesign
          John Mensinger Adobe Community Professional & MVP

          I don't think you'll find a way to get InDesign to do this for your with any existing features, but I do suspect it might be possible to script. Reposting this in the Scripting forum is probably your best bet. InDesign Scripting

          • 2. Re: Progressive Leading in InDesign
            rob day Adobe Community Professional & MVP

            If you are using OSX try this AppleScript:

             

            tell application "Adobe InDesign CC 2014"

                set use paragraph leading of text preferences to false

                set x to object reference of every line of selection

                set c to count of x

                set l to leading of item 1 of x

                set p to (1 / c) * l

                repeat with i from c to 1 by -1

                    set leading of item i of x to (c - i) * p

                end repeat

            end tell

            • 3. Re: Progressive Leading in InDesign
              billypostle Level 1

              You sir are a gentle and a scholar, worked an absolute dream!!

              THANK YOU!

              • 4. Re: Progressive Leading in InDesign
                rob day Adobe Community Professional & MVP

                Glad to hear it worked. This version might be better:

                 

                tell application "Adobe InDesign CC 2014"

                    set use paragraph leading of text preferences of active document to false

                    set x to object reference of every line of selection

                    set c to count of x

                    set lding to leading of item 1 of x

                    set p to (1 / c) * lding

                    repeat with i from 2 to c

                        set leading of item i of x to lding - (p * i)

                    end repeat

                end tell

                • 5. Re: Progressive Leading in InDesign
                  billypostle Level 1

                  Thats a tad less dramatic which actually maybe a good thing. Could you tell me what variable I can adjust to lessen/increase the effect please.

                  At the moment I have something looking like this and I would prefer the text to be slightly more spaced towards the bottom.

                  Screen Shot 2016-02-01 at 17.32.15.png

                  • 6. Re: Progressive Leading in InDesign
                    rob day Adobe Community Professional & MVP

                    See if this helps. The e variable can be adjusted—should be between .5 and .9—the lower the number the more space:

                     

                    ---------------------------

                    tell application "Adobe InDesign CC 2014"

                        --an ease adjustment. Number must be less than 1

                        set e to 0.9

                       

                        set use paragraph leading of text preferences of active document to false

                        set x to object reference of every line of selection

                        set lding to leading of item 1 of x

                        set c to count of x

                        set p to (1 / c) * lding

                        repeat with i from 1 to c

                            try

                                set leading of item i of x to lding - ((p * i) * e)

                            end try

                        end repeat

                    end tell

                    ----------------------------

                     

                    .6 on the left, .9 on the right

                     

                    Screen Shot 2016-02-01 at 1.06.42 PM.png