-
Hi Tony,
Thank you for your answer... The function you have works really well for that particular document. But it doesn't work for general case.
In most of the document, there won't be any "Notes" line. The footnote is not always at the end of the document. It can be anywhere (end of document or end of page). Do you have any suggestion for the general case?
I actually came up with a slightly different logic:
After we are done reformatting the footnote, we will ask the user whether the referred footnotes are at the same document. If it is in a different document (which means it is a bibliography), we will ignore it and nothing will be done. If it is in the same document, we will move the referred footnote to a new paragraph bellow the paragraph that refers to it.
The mechanism of this process is started by searching for footnotes in the text, i.e.: any number with the format ( ### ). The search is done from the end of the document to the beginning of the document. Once we find it, there are a few steps to be done:
1.Create a unique bookmark # 1 on the place where we find the footnote.
2.Create another unique bookmark # 2 at the end of the paragraph.
3.Extract the number from the bracket.
4.Look for a paragraph in the text that is started with the same number as the extracted number.
5.Copy the paragraph.
6.Paste the paragraph at the bookmark # 2 .
7.Remove the bookmark # 2.
8.Place the cursor back to bookmark # 1.
9.Continue the search upward until the beginning of the paragraph.
But I'm not sure how to search upward one by one. I'm not an expert using find and replace.
And i'm not sure if it's the best way to do it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules