Skip to main content
Participant
Aug 12, 2024 2:38 PM UTC
Answered

How Do I Count Footnotes?

Hello,

I'm working on a book, and I need to find out how many footnotes I have. I hate to go through and count them all manually. Is there a place I can go to see how many footnotes the document has?

Peter Kahrel
Peter KahrelCorrect answer
Community Expert
Aug 12, 2024 2:46 PM UTC

There isn't, but this one-liner tells you how many footnotes your document has:

 

alert ('Footnotes: ' + app.activeDocument.stories.everyItem().footnotes.length);

8 replies

Peter Kahrel
Community Expert
Community Expert
Aug 12, 2024 10:12 PM UTC

True, find/replace can often be used to count things. But single-paragraph footnotes don't have the paragraph character, so you'd have to go for another character. Which is pretty scary.

Translate
James Gifford—NitroPress
Legend
Aug 12, 2024 10:32 PM UTC

Okay, then. It works really well for most item counts. 😛

Translate
James Gifford—NitroPress
Legend
Aug 12, 2024 5:09 PM UTC

A quick script is always a good solution, but one I've used on-the-fly (for a book in which I need to know how many short encyclopedia-like entries there are, for example) is to do a search and replace for the paragraph character on a key style. My example has one "date" paragraph in each entry, so if I F/R for the return using that style, it gives me an exact count.

 

If you've (properly) used a defined Footnote style, the same hacky-trick should give you an accurate count.

 

Or, you know, you could use a script, too. 🙂

Translate
Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
Aug 12, 2024 2:46 PM UTC

There isn't, but this one-liner tells you how many footnotes your document has:

 

alert ('Footnotes: ' + app.activeDocument.stories.everyItem().footnotes.length);
Translate
Participant
May 19, 2025 4:44 PM UTC

How to use this script? I am beginner.

Rasto

Translate
Robert at ID-Tasker
Legend
May 19, 2025 8:08 PM UTC
quote

How to use this script? I am beginner.

Rasto


By @Furko1951

 

https://creativepro.com/how-to-install-scripts-in-indesign/

 

Translate