Skip to main content
Bedazzled532
Inspiring
May 26, 2022
Answered

Add a number to Footnotes automatically at the end

  • May 26, 2022
  • 1 reply
  • 315 views

Hi 

My document has footnotes. Format is :

1. This is Footnote number one

2. Footnote number two. Some footnotes are in multiple lines 

3. This is another footnote.

 

I want something like this only at the footnotes. Not in the references.

1. This is Footnote number one. 1

2. Footnote number two. Some footnotes are in multiple lines. 2

3. This is another footnote. 3

 

I want the same number at the end also. Is it possible through GREP or a script ?

Thanks.

This topic has been closed for replies.
Correct answer Bedazzled532

The issue is resolved. Thanks

1 reply

Bedazzled532
Inspiring
May 28, 2022

Ok I have managed to write my first script.Below is the script:

For some reason it is not working. There is not error of any sort. Its just not  executing the change grep I guess. Any help will be very much appreciated. Thanks

 

convert();
function convert()
{
	app.findGrepPreferences = null;
	app.findGrepPreferences.findWhat = "(~F)(~>.+)"
	var fn = app.activeDocument.findGrep();
	
	for (var i=1; i<= fn; i++){
	app.changeGrepPreferences.changeTo="$0" + i;
    app.activeDocument.changeGrep();}
	
}

Below 

Bedazzled532
Bedazzled532AuthorCorrect answer
Inspiring
June 3, 2022

The issue is resolved. Thanks