Replace Text with Superscript Style in Footnote
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
- // create footnote markers
- app.findGrepPreferences.findWhat = "\\[\\d+\\]";
- mMarkers = mStory.findGrep();
- len = mMarkers.length;
- while (len-->0) {
- cIP = mMarkers[len].insertionPoints[0].index;
- mMarkers[len].remove();
- mStory.footnotes.add( LocationOptions.AFTER, mStory.insertionPoints[cIP] );
- }
Perhaps the change should take place in the code above, but I'm not sure. Any help would be greatly appreciated.
Thank you.
—
Adriano
