Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

Replace Text with Superscript Style in Footnote

Community Beginner ,
Nov 12, 2017 Nov 12, 2017

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

TOPICS
Scripting
862
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 12, 2017 Nov 12, 2017

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

Translate
Community Expert ,
Nov 12, 2017 Nov 12, 2017

Moving to InDesign Scripting forum

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 12, 2017 Nov 12, 2017

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

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 Beginner ,
Nov 12, 2017 Nov 12, 2017
LATEST

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

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