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

Highlighting text with Grep Styles?

Return to Member Forum

  • Author
    Posts
    • #56096
      rydesign
      Member

      I have been trying to figure out a way to simplify my styles in one of my catalog documents. So far no beans.

      Right now I have a Paragraph stlye for regular prices and a paragraph style for Special Prices.

      The “Special Prices” style is the exact same as the “Regular Prices” style except it adds a Yellow Paragraph Rule to “Highlight” the special.

      Currently special prices are denoted with an “*” after the price.

      Problem: I would like to apply a grep style that finds d+* and highlights the entire paragrah. I can only apply Character Syles with the Grep Stlye so my current way of highlighting won't work. If I accomplished this it would take out quite a bit of time from my work and Make the document much easier to update.

      *I have tried creating a Yellow underline in character styles to accoplish this but I have superscripted items in my text that cause choppy highlighting.

      Is there a better way to Highlight these lines with grep styles?

    • #56097

      If you cannot use a custom underline and you may have paragraphs of multiple lines, then alas: No.

      I have the same problem with underlining: if you have an underlined formula such as E = mc², you have to manually tweak it to get it “right” (for some value of “right”).

      ID CS5 still has no 'background color' for text. I sure could use it, every now and then. Honestly — it doesn't sound too difficult to add. If I remember correctly, one of the Plugin SDK samples for CS (yes — the one before CS2!) showed how to do it. They just never added this plugin to the distributed set …

    • #56098
      Roland
      Member

      I just made 1 paragraph style with 2 GREP styles and 3 character styles and it worked fine…

      Paragraph font size: 18pt
      Decimals character style font size: 11pt, baseline shift: 6pt
      Underline Decimals character style: underline 20pt, dashed (4 and 4), offset 0pt, gap & underline filled the same
      Underline character style: underline 20pt, dashed (4 and 4), offset -6pt, gap & underline filled the same

      Character style: Underline Decimals
      GREP: dd

      Chracter style: Underline
      GREP: € d+,

      The first GREP style finds two digits, the second finds the Euro sign followed by a space, any number of digits and a comma. Change it to $ d+. if you want to find US$ and use a period instead of a comma.
      Keep them in this order, otherwise the underline will mess up.

      By the way, I use the baseline shift option to create prices with decimals that've been “superscripted” to my own specs, not the font's. I then apply that style using Nested Styles in the paragraph.

    • #56128
      rydesign
      Member

      The custom “Super Scripting” was key. I finally am on my way to having these work automagically… ;). Now anything with the “*” after it gets highlighted and I have a seperate grep stlye the Hides the “*” All works pretty well so far. Still looking for those tiny exceptions before I Roll this new time saving style out to the whole team here. AWESOME!

      We are used to doing it this way when we get a new round of pricing

      starting in the find change Dialog

      1. change all the old highlighted styles to the normal style

      2. Add any new items with pricing

      3. find all the prices with asterix's in them and change them to the Highlighted style

      Now we don't even have to think about it. When we use autoprice to update the pricing the Asterix is already in the Excel file. So just press the update button and all styles are updated as well… This is GREAT!

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