• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Any way to format text with two stroke lines faster than going manually?

Engaged ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

Hi!
I am doing a magazine where the authors appear among two lines and the text varies in length according to the author name and has two strokes lines at a constant separation. Besides everything has to be center aligned. The way I do it now is going manually by each author and taking two rectangles as distance references. Considering sometimes there are more than 30 writers, it takes a white to do it right and also text boxes does not close exactly where a word ends. Is there any way I could do it with a Script or object Properties or else? 


Here is the design problem

 

Captura de Pantalla 2024-12-17 a la(s) 16.11.57.png

Thanks for your help. 😉
 

TOPICS
Feature request , How to , Scripting , Type

Views

263

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 18, 2024 Dec 18, 2024

Paragraph Rules - rule above and rule below, will handle this quite neatly. Rule above is set to Column Width, and Rule Below (in Paper color) is set to Text Width (this covers and obscures the black rule), with Left and Right Indents to offset the rule from the text. Screenshot 2024-12-18 at 8.41.00 AM.png

Votes

Translate

Translate
Community Expert ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

Hmm. A Paragraph Rule could be used to create the horizontal black stroke, and Paragraph Border to create the two magenta bars, but the problem is getting the horizontal line to break/hide behind the bars and text.

 

The only solution I can think of is to give the text a large white outer stroke and adjust things so that that outline blanks out the horizontal line.

 

Experimenting now...

 

JamesGiffordNitroPress_0-1734465775627.png

 

ETA: Shoot, this is as close as I can get with a single paragraph style. The yellow represents a (white) outline; the blue is Paragraph Shading. But no combination of settings, including "Overprint," will make that horizontal bar stop at the outer edges of the vertical bars. I also tried the Effect 'Outer Glow" but it affects all of the "text" objects at one.

 

ETA2: Underline and Strikethrough don't work well, either  — underline hides under the "white," strikethrough doesn't, but neither can be extended to the margins in any simple way.

 

Anyone have a trick, here? The only solution I can come up with is some second object (Para Style, Text Frame, etc.) which would be fussy to manage.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

Hi James,
Thanks for the fast reply and the experiment. It looks like a nice solution. I will try to follow your steps to see how to get the same result. 
By the way, the magenta bars are just for showing the separation, betwen the author name and the black strokes. This is how it goes when printing. 

 

Best 😉
Captura de Pantalla 2024-12-17 a la(s) 17.13.58.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

Title.gif

 

Just "Tab + Space + Your Text + Space + Tab"!

 

(^/)  The Jedi

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

I forgot: if the text is already placed, you just need this simple regex to play the game:

 

Capture d’écran 2024-12-17 à 22.04.02.pngCapture d’écran 2024-12-17 à 22.04.13.png

 

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

Yep, for just the background line on the paragraph, there are several ways to achieve it, including GREP and line styles. My bad for making the question more complex than it was meant to be.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

And, this works but it's a bit messy:

JamesGiffordNitroPress_0-1734466619632.png

I can post the actual settings, but —

  • Paragraph Style 1 is desired font and size, set to white, set horizontal stroke as desired (specify Black).
    • Set line spacing to zero.
    • Leave empty or use a hard space as placeholder.
  • Paragraph Style 2 is everything else: black text, line spacing as desired, side Borders, white Shading (shown in blue).
    • Use Baseline Shift to position the second paragraph atop the one with the horizontal bar.

 

Ah, I get it with the vertical bars. You should be able to just extend the Paragraph Shading to achieve that effect, no bars required.

 

Once set up, this should be stable and repeatable, but editing above and below this paired style will be a little wonky with the zero leading and baseline shift.

 

Ask if you can't sort out what I did here.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

quoteThe only solution I can think of is to give the text a large white outer stroke and adjust things so that that outline blanks out the horizontal line.

By @James Gifford—NitroPress

I'd use an underline rather than an outline, set to Paper, and adjusted for weight and offset to hide the black paragraph rule...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

Yeah, there is probably a simpler solution than mine; I misunderstood about the side bars. Just separating the text from a horizontal line is much simpler. Horizontal rule, heavy white text outline should do it. (Underline can't be made to go to the margins, unless I missed something.)


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

A combination od Paragraph rules, above and below and Paragraph Frames and Paragraph Shaddow filling wild do it.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2024 Dec 18, 2024

Copy link to clipboard

Copied

Paragraph Rules - rule above and rule below, will handle this quite neatly. Rule above is set to Column Width, and Rule Below (in Paper color) is set to Text Width (this covers and obscures the black rule), with Left and Right Indents to offset the rule from the text. Screenshot 2024-12-18 at 8.41.00 AM.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2024 Dec 18, 2024

Copy link to clipboard

Copied

Eh, brilliant! It never occurred to me that P Rules had a stacking order that could be exploited (or that both are, effectively, behind the text).

 

Only caveat is that it has to be set up for a fixed number of lines, but the OP says all of the instances are 2-line, and creating a 1-line variant would be trivial.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 18, 2024 Dec 18, 2024

Copy link to clipboard

Copied

Or course but not if text frame background color!

 

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2024 Dec 18, 2024

Copy link to clipboard

Copied

Well, of course the recipe is "adjust for document properties." If the background is pink, the Bottom Rule has to be pink... etc.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 18, 2024 Dec 18, 2024

Copy link to clipboard

Copied

... and if the background is a lovely photo of the Milky Way?  😜

 

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2024 Dec 18, 2024

Copy link to clipboard

Copied

...you learn not to get so go[shdar]n fancy. 🙂

 

Any such thing would be a case for one of the other solutions, like leadered tabs. But this line-stacking trick is a great one to keep in the toolbox for more ordinary layout needs.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 18, 2024 Dec 18, 2024

Copy link to clipboard

Copied

If you want to play (Just for fun!):

 

https://youtu.be/UXTTOO8UktU?si=OzurXmKbYLYxkZ0_

 

(^/)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 19, 2024 Dec 19, 2024

Copy link to clipboard

Copied

LATEST

Thanks SJRiegel for a great solution and also displaying visually how to do it. Best, 😉

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines