Skip to main content
Participant
July 8, 2020
Answered

Endnotes within footnotes

  • July 8, 2020
  • 4 replies
  • 461 views

I need to insert an endnote within a footnote. It seems that it's not possible to do it automatically... Is there any way to do it?

 

Thank you very much.

This topic has been closed for replies.
Correct answer Laubender

Ah. Read your question again. You need to insert an endnote in a footnote text, right?

Sorry. This is a different code:

app.selection[0].createEndnote();

Same as before. Select the insertion point before you run the ExtendScript script.
And yes, this is working. By scripting, only.

 

Regards,
Uwe Laubender

( ACP )

4 replies

Community Expert
July 10, 2020

Hi Marta,

well, yes.

But be cautious.

An endnote in a footnote text is uncharted territory.

 

Regards,
Uwe Laubender

( ACP )

 

Community Expert
July 8, 2020

Same cautions needed as with a footnote in an endnote text:

Because this is a thing one cannot do in the user interface test the document very well.

Export to PDF: Is the endnote visible?

Export to EPUB: Is the endnote visible?

Publish Online: Is the endnote visible?

Also export to IDML, open the IDML file as document and see if the endnote in the footnote text is still intact.

 

Regards,
Uwe Laubender

( ACP )

 

// EDITED

mvallriAuthor
Participant
July 10, 2020

Hi Uwe,

 

I've tried this and it works perfectly! Thank you very much!

 

Regards,
Marta

LaubenderCommunity ExpertCorrect answer
Community Expert
July 8, 2020

Ah. Read your question again. You need to insert an endnote in a footnote text, right?

Sorry. This is a different code:

app.selection[0].createEndnote();

Same as before. Select the insertion point before you run the ExtendScript script.
And yes, this is working. By scripting, only.

 

Regards,
Uwe Laubender

( ACP )

Community Expert
July 8, 2020

Hi mvallri,

not with InDesign's footnote feature as presented with a menu in the user interface.

To my surprise it was possible using a script.

 

Try the following.

Select the insertion point where you want to insert the footnote and run the following ExtendScript (JavaScript) code:

app.selection[0].footnotes.add();

 

How to save ExtendScript code to a script file, how to install and run the script file see:

https://www.indiscripts.com/pages/help#hd0sb2

 

Because this is a thing one cannot do in the user interface test the document very well.

Export to PDF: Is the footnote visible?

Export to EPUB: Is the footnote visible?

Publish Online: Is the footnote visible?

Also export to IDML, open the IDML file as document and see if the footnote in the endnote is still intact.

 

Regards,
Uwe Laubender

( ACP )

Participant
November 9, 2023

Huge thanks to you! The script worked, much appreciated. I used Text Edit to create a JS file and saved it to the scripts folder using your indiscripts link.