Copy link to clipboard
Copied
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.
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 )
Copy link to clipboard
Copied
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 )
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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 )
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hi Uwe,
I've tried this and it works perfectly! Thank you very much!
Regards,
Marta
Copy link to clipboard
Copied
Hi Marta,
well, yes.
But be cautious.
An endnote in a footnote text is uncharted territory.
Regards,
Uwe Laubender
( ACP )