Skip to main content
JonathanArias
Legend
November 7, 2017
Answered

Make all numbers after a "." superscript

  • November 7, 2017
  • 1 reply
  • 5175 views

Hi,

Looked this up in past post but i could not find the answer. Sorry if this has been asked before.

I am typesetting a 58 page document, editorial re-submitted the document and they added references numbers, i need to replace text and the new text has reference numbers all over at the end of sentences.

How do i have indesign automatically look for the numbers at the end of a sentence  and make those numbers superscript?

Thank you

    This topic has been closed for replies.
    Correct answer Barb Binder

    Jonathan, are you using x-refs for those numbers? If so, you can set up a character style to automatically make all the paragraph number-only references superscript. And of course, they will update automatically if the paragraph numbers change.

    1 reply

    Jongware
    Community Expert
    Community Expert
    November 7, 2017

    With a GREP style if you are sure if all numbers after a full stop ought to be superscript:

    – apply a character style containing Superscript to

    (?<=\.)\d+

    If this applies to too much digits (you may have a $0.00 amount somewhere, and this is an all or nothing deal), use Find/Change with the same GREP over your document. It's probably faster to check each occurrence than hunting down errors and adjusting the GREP for just those cases.

    JonathanArias
    Legend
    November 7, 2017

    ok, yes, that works, however, it only reads the first digit, see attached screenshot.

    Barb Binder
    Community Expert
    Community Expert
    November 7, 2017

    I am not using cross references, is that a better fit for what i am doing?


    It looks like you are referencing paragraph numbers from elsewhere in the file. If the numbers change, you have to remember to come back and change these references. X-refs will update the numbers after edits, and you can build superscript into the definition.

    Is it a better fit? It is for my documentation which is constantly being updated until it goes to print. I'd rather have InDesign update the references that having to remember to go back and update all of them myself.

    ~Barb at Rocky Mountain Training