A screenshot! …
From The Prince, by Nicolo Machiavelli.
In the above screen shot, the smaller text is already found and tagged as "footnote" and it is always inline with the flow of paragraphs right after the preceding paragraph with the footnote (workaround) marker.
It seems difficult to have the footnote marker in the correct place in the paragraph, but it would be enough to have the marker at the beginning or end of the paragraph, because it would be little work to drag it into the correct position within the paragraph. Awesome if a script exists that can find the correct marker position in the preceding paragraph.
Know of such an existing script?
Just a question: Are there char enrichments in the note text?
I don't know of a script like that.
It is certainly scriptable, and there shouldn't be any problem inserting the footnotes in the exact place where they're indicated.
? Are there ever two footnote indicators in a single paragraph?
? Do footnotes ever consist of more than a single paragraph?
1 person found this helpful
If not enrichment, It's doable with this regex and "ReFootNotes.jsx" written 6 years ago by Marc Autret!
Error in the regex: (\[\*\])(.+\r)(\[\*\]\h)(.+)(\r)
If enrichments (in the note and the text part between the note call and the note para, I use another way with 2 scripts* written in 2010 and 2012 by Peter Kahrel [ ] (The 2nd script I use is a modified version of Peter's one):
1/ I collect all the "Notes" paras and paste them at the doc. end, using for that "GrepQueryManager.jsx".
2/ I launch my version of "Endnotes2Footnotes.jsx" [I've just replaced [*] by "1" (+ char style)].
… So, Yes, it's possible! Even if I need more than one script, it's … fast!
In my project, the footnote text has no character styles in it. Just straight text controlled by the footnote paragraph style.
Yes, in some places there are two footnotes in the same paragraph.
Usually the footnote is one paragraph long.
I googled, but failed to locate Marc Autret's ReFootNote.jsx. Anyone have a link for it?
Mike, If you have several note calls in paras with different note paras below, just play it with Multi-Find/Change of our other great friend Martinho Da Gloria: a set where you duplicate e.g. 10 times the regex I propose you!
So, 2 clicks [MFC + ReFootNote.jsx] and It's done!
Ooh! Awesome! Should the GREP look more like this?
... so that the hard return doesn't disturb the next paragraph style?
In my sample, I don't use different styles. So my regex is relevant!
If difference styles, yours [A] is better and you'll need to add a simple regex to delete the blank line [B].
So, in MFC, you'll have: A, then B, then A, then B, …
If you have enrichments in the para text part between the note call and the end of the para, we'll have a problem! (you 'll need to use the second way with Peter's scripts).
You have set me up for a wonderful lost weekend while I try getting this one just right!