InDesign Q

Out of context: Reply #4

  • Started
  • Last post
  • 19 Responses
  • rascuache0

    Yeah thought it might. Try this instead.

    http://indesigning.net/creating-…

    Javascript to draw a box on a separate layer around a given paragraph style. Not very well documented and a bit flaky when setting padding around the text (via crop amount in the box's object style), but gives you the option to do absolutely anything with the box behind the text.

    You'll need to use a hard return after each line for it to draw one box per line, though.

    • once fettled they work fine, I've used this on a few 400+ page technical books to highlight passages of code...rascuache
    • Yes JavaScript is the answer.ItalianStallion
    • But you don't need to build a box for every line of text you can duplicate the text boxes and apply an object style when you're sure thext is okItalianStallion
    • you're sure text is ok.ItalianStallion
    • multiple text boxes sounds like a massive pain in the arse, what if you want to adjust leading?rascuache
    • Yes, that's why you nedd to work with your text frames as usual and when you've finished editing text youcan launch a JavaScript that automatically duplicate any text frame and apply an object styleItalianStallion
    • script that duplicate any text frame and apply an object style.ItalianStallion
    • Obviously it's worth if you have an huge amount of text...ItalianStallion

View thread