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

Automatic up or down arrows based on grep?

Return to Member Forum

  • Author
    Posts
    • #14361435
      Youn Le Goff
      Participant

      Hi,
      I have a magazine that I am redesigning with up, straight or down arrows next to the evolution of a stock, and right now I work wirth 3 different paragraphe styles. So if I have for example :
      -2.4% > i apply a paragraph style “down” that put as a bullet the down arrow (from wingding font)
      +0.3% > i apply a paragraph style “up” with the up arrow as a bullet
      0.0% > same but with horizontal arrow (or equal sign)

      I’m trying to find a clever way to only have 1 paragraph style (arrow) and the bullet changes based on the value (looking for the minus or + sign, then apply this character style). But that won’t work obviously because the bullet is not an attribute of a character style but a paragraph one.

      Any idea how else I could proceed to speed the process and not manually enter each paragraphe style?

      Thanks in advance for your ideas.

    • #14361436
      Dhafir Photo
      Participant

      If your paragraphs beginning with (+ & -) sign use this:

      in Find: ^[\x{2212}-][\d.]+
      in Change Format: paragraph style “down”

      in Find: ^[+][\d.]+
      in Change Format: paragraph style “up”

      in Find: ^[\d.]+
      in Change Format: paragraph style “horizontal arrow”

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