Script for chapter margin note number collating
I have a lengthy coffee table-style book where all footnotes are given as sidenotes (margin notes). These were manually arranged and do not have any automatic collating as note references are added or deleted. Each note number and reference number in the text was added manually. Such sidenote numbering is an ideal candidate for scripting to automatically recollate as notes are added or deleted. Numbering must restart from the beginning for each chapter.
Does a script for this exist?
