Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Make all numbers after a "." superscript

Guru ,
Nov 07, 2017 Nov 07, 2017

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

5.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 07, 2017 Nov 07, 2017

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.

Screenshot 2017-11-07 11.33.04.png

Translate
Community Expert ,
Nov 07, 2017 Nov 07, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

ok, yes, that works, however, it only reads the first digit, see attached screenshot. Screen Shot 2017-11-07 at 12.25.55 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

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.

Screenshot 2017-11-07 11.33.04.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

Yes, that would be a good fit.

i have the references all at the end in their own page, see below. 

Screen Shot 2017-11-07 at 1.20.18 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

And you numbered those using InDesign's auto-numbers right? If so:

  1. Place your cursor where you want to put the first reference. (According to your screen shot, at the end of the paragraph that ends with "in these patients".
  2. Type > Hyperlinks and Cross-References > Insert Cross-Reference
  3. Use these settings:
    1. Link to Paragraph
    2. Pick the file with the references
    3. Pick the ¶ tag for the notes
    4. Pick the specific note you want to reference.
    5. Format=Paragraph Number
    6. Click the Pencil button to edit the format
      Screenshot 2017-11-07 13.24.56.png
    7. Refine the X-ref format (just do this once):
      1. Add a Name for the X-ref format (i.e., Notes)
      2. Add a superscript character style, OK, OK
        Screenshot 2017-11-07 13.25.58.png
    8. Now that the format is set up, just add the rest of the x-refs from the first dialog box.
  4. Use Window > Type & Tables > Cross Reference panel to make sure the links are up to date. Use the update button the bottom to refresh the links.

    Screenshot 2017-11-07 13.31.45.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

the reference will auto number as a list, that is what i set up, as a style, but i have yet to typeset that section. I had typeset 10 pages and they swap files on me

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

Hi,

I followed the steps, feel like i  am almost there. but my subscript reference shows the entire reference. how do i display only the entry number?

Screen Shot 2017-11-07 at 3.28.01 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

got it to work. thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

Hi Barb,

First time doing crossreferences, is the a video i should watch? or just follow the steps below?

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

just notice is does not read two digit number in the attached it missed "22"

Screen Shot 2017-11-07 at 12.29.53 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

The first problem is because it's not a digit after a ".", there is a comma there. The second is because it's not a digit, there is a ":" there.

Expanding the GREP to catch more punctuation:

(?<=[.:,])\d+

(The chance on errors gets higher too. This will now also catch full decimals such as "1,205.15". My advice on not using a GREP style remains.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Nov 07, 2017 Nov 07, 2017

What about this one?

\D[[:punct:]]\K[,\d]+(?=\s)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

this also does the trick but it changed it in locations where the numbers were after a "/"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

Sorry Jonathan. I'm teaching today so checking in quickly on breaks. It sounds like you have it mostly figured out, but I don't understand your final post. Nevermind. It was for Wintem. Glad you got it working!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

i got it to work. the issue i had was with reference that are to read :"2,4-6". don't know to set something like that up.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

The same way.

Reference note 2, add a comma, note 4, add the en dash and then note 6. If you add a new note 1 and update the x-refs, they will roll from 2,4–6 to 3, 5–7. If you add a new note 5, they will roll from 2,4–6 to 2,4-7.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

ahhh. i did that but i notice other reference that had a single number change, one that was"2" rad "2," when i did that manually. may i see a screenshot?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 07, 2017 Nov 07, 2017

hi, if i understand you right i would insert the reference from the panel, but i have to manually type the "," and "-" before and after I insert references correct?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

Correct.

Reference note 2, add a comma, note 4, add the en dash and then note 6. If you add a new note 1 and update the x-refs, they will roll from 2,4–6 to 3, 5–7. If you add a new note 5, they will roll from 2,4–6 to 2,4-7.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 09, 2017 Nov 09, 2017

hey Barb,

editorial sent me a whole new document for typesetting. and the references all changed. i copy from the word document text for the references and replaced the list i notice copy in my indesign layout, the corssreference panel exploded with red flag icons.  I did an "undo".. lol

Would it be better to edit the references from indesign  one at the time instead of what i tried to to?

i had the same word document replaced 3 times in one week as i am typesetting often. how would you tackle that?

thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 09, 2017 Nov 09, 2017

Let's start with the last question. I have two jobs—I work as a trainer and I take on freelance layout projects. I don't accept files for layout unless they are already in final form, and I charge a considerable amount for correcting the mistakes that were in the files that were delivered. (I don't charge for formatting updates—if I made a layout mistakes that's on me.) By being very clear about this upfront, I have successfully eliminated the workflow the you are in right now—where you are laying out the same file three times in a row.

Now, you have two options to replace the references. You can copy and paste to replace each reference, leaving the link intact, or replace the entire list and use Relink Cross-References in the panel menu, much like relinking images in the Links panel. Knowing how to do both is valuable, but of course after you understand how they work, pick the workflow that you can complete more quickly.

Since this all new to you, I'd also recommend taking advantage of your Lynda subscription to watch the courses on Cross-References (and perhaps the rest on the long document workflow).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 09, 2017 Nov 09, 2017
LATEST

ok, thanks. will look at it. thanks for the advice

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines