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

Footnotes convert to endnote and place before every chapter in book document

Explorer ,
Aug 27, 2021 Aug 27, 2021

Copy link to clipboard

Copied

HI,

 

I hvae a single indesign file which is followed footnotes i wnat to change below stpes.

  1. Convert footnotes to endnote.
  2. Converted footnotes will be placed end of the every chapter in a single document.
TOPICS
Scripting

Views

133

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 2 Correct answers

Community Expert , Aug 30, 2021 Aug 30, 2021

Hi sriscript,

let's see into DOM documentation. There is no direct way to convert a footnote to endnote by scripting.

So what to do? Add a new endnote at the position of every footnote. Duplicate the footnote's texts to the first insertion point of the endnote texts and remove the footnote.

 

The placement of the endnotes can be controlled with property scopeValue of the document's endnoteOptions.

 

See DOM documentation compiled by Gregor Fellenz:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Footnote.html

...

Votes

Translate

Translate
Community Expert , Aug 30, 2021 Aug 30, 2021

Ah! You want to place the text frames of the endnote stories before the chapter?

Then add pages before the story and move the text frames of the endnote stories.

The scripting DOM has method add() and method move() :

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Pages.html#d1e205483__d1e205532

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#TextFrame.html#d1e526121__d1e529961

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate
LEGEND ,
Aug 29, 2021 Aug 29, 2021

Copy link to clipboard

Copied

Hi there,

 

Thanks for reaching out. Please check out the suggestions on this helpful community thread & the script shared here. Let us know if it helps.

 

Regards,

Ashutosh

Votes

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
Community Expert ,
Aug 30, 2021 Aug 30, 2021

Copy link to clipboard

Copied

Hi sriscript,

let's see into DOM documentation. There is no direct way to convert a footnote to endnote by scripting.

So what to do? Add a new endnote at the position of every footnote. Duplicate the footnote's texts to the first insertion point of the endnote texts and remove the footnote.

 

The placement of the endnotes can be controlled with property scopeValue of the document's endnoteOptions.

 

See DOM documentation compiled by Gregor Fellenz:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Footnote.html

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Endnote.html

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#EndnoteOption.html

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#InsertionPoint.html#d1e517669__d1e524454

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#StoryTypes.html

 

Regards,
Uwe Laubender

( ACP )

Votes

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
Community Expert ,
Aug 30, 2021 Aug 30, 2021

Copy link to clipboard

Copied

LATEST

Ah! You want to place the text frames of the endnote stories before the chapter?

Then add pages before the story and move the text frames of the endnote stories.

The scripting DOM has method add() and method move() :

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Pages.html#d1e205483__d1e205532

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#TextFrame.html#d1e526121__d1e529961

 

Regards,
Uwe Laubender

( ACP )

Votes

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