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

Apply bold style GREP only to the end of a line

Return to Member Forum

  • Author
    Posts
    • #14334223
      Julie Gomes
      Participant

      I am working on a product catalog and would like to apply my bold character style only to end of the line, where the price is listed. So the grep would create the bold style from the “$” to the end of the line. I was able to use the nested style to bold the first portion of the line which has the SKU. The middle of the line sometimes has text and sometimes does not. See example below:

      SKU [tab] Optional description [tab] $XXX.XX unit [hard/soft return]

      The “SKU” is bold already and the “Optional description” is not bold. Now I need to bold all of the characters starting from the “$” up to the next hard/soft return.

      Any help is appreciated!

    • #14334224

      GREP is not necessary here.

      Assuming the paragraph style applied is using the roman/book font, and you’re using a bold character style to apply the bold style to the SKU (via a Nested style as you said), then just add a couple more nested character styles to that “price” style.

      Like this:
      1. Bold up to 1 tab [what you’re doing already]
      2. None up to $ [Enter that character in the right-most field]
      3. Bold up to 1 soft return [choose Forced Line Break from the right-most dropdown]

      You don’t need to have one for hard returns, because nested styles always end at the end of a paragraph. That is, if it can’t find a soft return, it’ll just apply to the remaining part of the paragraph until the hard return.

      AM

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