To make a donation, please press the button below. (Thanks to Martin Fischer for pointing out the shortcoming.)Ĭonsider making a donation. The script now also removes story-trailing white space and inserts a heading "Notes" between the text and the notes.ġ4 June 2010: added support for multiple stories and multiple paragraphs per note. 2012: endnote numbering didn't always start at 1 (usually because of existing numbered lists) fixed. 2012: (1) trailing returns in footnotes created problems during the conversion: fixed (2) the script now tries to use the current footnote character and paragraph styles if they're in the document.Ģ3 Jan. 2014: for the numbers in the endnotes, the script now uses the numbering style (Arabic, Roman, etc.) set in the footnote options.ġ2 Nov. : updated the script to deal with a changed default in InDesign CC.ġ4 Aug. 2017: Added a reminder to the return linker that it is a destructive script. Do not save the document after adding the return link. So the approach is as follows: complete the job and save it (and take a copy to be on the safe side) add the return links export to Epub, PDF, etc. The script displays a warning to remind you. You must therefore save your text before you add the return links. To this end, the script converts the automatic paragraph numbers to plain text. The return linker needs the note numbers as literal text so that there's something to highlight. You can see the result in the Hyperlinks panel, and you can test the results there. You're prompted to select the character style used for the note references and the paragraph style applied to the notes. Epubs) you need an additional script (it's linked below). The cross-references created by the script create hyperlinks from the note reference to the endnote. The script described here is for single documents only, or for end-of-chapter notes in a book.
Then you can select that story and run the script.Ģ. You can run the script again only if all the footnotes are in a separate story. If it's not possible to convert a story's footnotes to endnotes, then add more footnotes to the same story and run the script again. Open the document that contains the notes you want to convert and run the script. To convert the notes in just one story, select one of the story's text frames or just click in that story, then run the script.
If a story becomes overset you'll need to resolve this manually. With nothing selected in the document, the script processes all stories and places the notes at the end of each story.
The numbering style (Roman, Arabic, etc.) set in the footnote options is used in the paragraph style for the endnotes. If you had set a style in the Footnote Option window, say, Footnote Text, the script adds a new style Footnote Text numbered for the first, numbered, paragraph in a note and bases it on Footnote Text. The new style uses the formatting set in the Footnote Option window at Position in the Footnote Reference Number in Text panel.īecause the endnote paragraph style is numbered, the script needs two paragraph styles: one numbered style for the first note, a second style for all subsequent paragraphs in the same note. Similarly, if a character style has been set in the Footnote Option window for the note references, that style is used by the script if no character style was set, a new character style ( endnote_marker) is created for the references. If a paragraph style is set in the Footnote Option window, the script uses that for the endnotes if a footnote style has not been set, the script creates a new paragraph style ( endnote) and uses that. To add and delete dynamic notes after you've used the script to convert the notes, see Adding and deleting notes: managing cross-references. The numbering style used in the endnotes is the same as that set in the footnote options.
The endnotes are numbered using InDesign's paragraph number feature the note references are cross-references linked to the notes. The notes are placed at the end of the story in which they occur. The script converts InDesign footnotes to dynamic endnotes. Convert footnotes to endnotes (pre-CC2018)