Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Possible to evenly distribute right tab aligned text over two lines?

Return to Member Forum

  • Author
    Posts
    • #96928
      Candace Cage
      Member

      I currently have a paragraph style I’m working with applied to listings for Name and Business Name, and separated by a tab in between. Name is left aligned, and Business Name is right aligned from the tab. Sometimes the business name is so long that it gets forced to the next line, which is fine. What I’m having a problem with, is when it’s a very long name, not only is it on it’s own second line, but it runs into a third line that usually consists of some runt text.

      I’m wondering if it’s possible to evenly distribute the Business Name text when it spans two lines on it’s own, since it’s creating some unattractive negative space.

      I tried adding in flush spacing where the tab was, to get it to evenly distribute. This mostly worked, except it then caused my Name to move inward, and no longer be aligned to the left side of the text box. Is there a way to anchor it there when the flush space is added in? And if so, will the flush space still work? Or is there a better way of accomplishing what I’m trying to do?

      See screen shots here for reference: https://imgur.com/a/SCeNw (The first is what I’m working with, and the second is sort of what I need with the flush space added)

      Thanks in advance!

    • #96964
      Masood Ahmad
      Participant

      I would suggest to make a few changes to your styles:

      1) First, stick to the Right Indent Tab to separate the two fields. In case you need more space between the two, you can add an additional En-Space before the Right Indent tab (but I think that won’t be necessary).

      2) Second, change the Paragraph Alignment to “Right Justify” under the ‘Indents and Spacing’ tab of the Paragraph Style Options dialog box. This will keep the last line, aligned to Right. The same is called “Justify with last line aligned right” in the Paragraph Palette.

      3) Third, add this GREP Style to your paragraph Style. This will keep the last two words of the paragraph together. You have to create a ‘NoBreak’ character Style with the ‘No Break’ attribute only under the ‘Basic Character Format’ in the ‘Character Style Options’ dialog box.

      GREP Styles:
      Apply Style: NoBreak
      To Text: (?<=.)(?=\w+[[:punct:]]*$)

      Hope this resolves your problem. If not, please share some portion of your file with me and I’ll try my luck.

      my email ID is masood.designs@gmail.com

Viewing 1 reply thread
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads