Skip to main content
Participant
November 12, 2017
Answered

Replace Text with Superscript Style in Footnote

  • November 12, 2017
  • 2 replies
  • 867 views

Hello,

I'm using the script that Jarek wrote in Re: convert text to footnote . However, I'd like to change the style for each reference found in the text as superscript instead of normal text. I believe that the change shou

  1. // create footnote markers 
  2. app.findGrepPreferences.findWhat = "\\[\\d+\\]"; 
  3. mMarkers = mStory.findGrep(); 
  4. len = mMarkers.length; 
  5. while (len-->0) { 
  6.     cIP = mMarkers[len].insertionPoints[0].index; 
  7.     mMarkers[len].remove(); 
  8.     mStory.footnotes.add( LocationOptions.AFTER, mStory.insertionPoints[cIP] ); 
  9.     } 

Perhaps the change should take place in the code above, but I'm not sure. Any help would be greatly appreciated.

Thank you.

Adriano

This topic has been closed for replies.
Correct answer Jongware

It is easier to just set that option in the Document Footnote options. Have you tried that?

2 replies

Jongware
Community Expert
JongwareCommunity ExpertCorrect answer
Community Expert
November 12, 2017

It is easier to just set that option in the Document Footnote options. Have you tried that?

Participant
November 12, 2017

Actually, yes... it's a great idea... it's working just fine. Thanks a lot!

Steve Werner
Community Expert
Community Expert
November 12, 2017

Moving to InDesign Scripting forum