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

Change brackets and its content to superscript

Return to Member Forum

  • Author
    Posts
    • #76675

      I need to change the brackets and its content to superscript. For example find [1] or [6,7] and change it to superscript. Any ideas?

    • #76678

      Sorry–that’s a GREP thing and I’m not good at that.

      Is for a job that is already done or for a new job?

      You could use nested character styles. For example, create a character style for superior. Then nest:

      1) none up to opening bracket
      2) superior character style through one closing bracket.

      That’s all I can think of as I’m not good with GREP.

    • #76691
      Masood Ahmad
      Participant

      Try these, both options are available i.e. through GREP Find/Change and through GREP Styles.

      GREP Styles:
      Apply Style: Superscript Character Style
      To Text: \[\d+[,\d]*\]

      GREP Find Change:
      Find what: \[\d+[,\d]*\]
      Change to Format: Superscript Character Style

    • #76701

      @Dwayne: It’s an existing document

      @Masood: Excellent Masood. The second option works great. Thank you.

    • #76704
      Masood Ahmad
      Participant

      Happy to help :)

      Guz, I suggest trying this through GREP Styles. This will reduce your extra effort of finding and replacing every time the text changes.

      Just give it a try. I have tested it and it works well too.

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