• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Add a number to Footnotes automatically at the end

Contributor ,
May 26, 2022 May 26, 2022

Copy link to clipboard

Copied

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.

TOPICS
How to

Views

60

Likes

Translate

Translate

Report

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

Contributor , Jun 03, 2022 Jun 03, 2022

The issue is resolved. Thanks

Likes

Translate

Translate
Contributor ,
May 27, 2022 May 27, 2022

Copy link to clipboard

Copied

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 

Likes

Translate

Translate

Report

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
Contributor ,
Jun 03, 2022 Jun 03, 2022

Copy link to clipboard

Copied

LATEST

The issue is resolved. Thanks

Likes

Translate

Translate

Report

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