Renumbering static note reference numbers (GREP?)
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Renumbering static note reference numbers (GREP?)
- This topic has 5 replies, 4 voices, and was last updated 8 years, 4 months ago by Robert Wexler.
-
AuthorPosts
-
-
May 24, 2015 at 4:06 pm #75608David PeattieParticipant
I’ve been given an InD file with a large number of endnotes. These are static, endnotes, not linked in any way (cross references, etc.). The InD file is the second portion of a document and the endnotes (and corresponding endnote references in the text) need to start at 325, not 1, as is currently the case.
-
May 24, 2015 at 4:11 pm #75609David BlatnerKeymaster
You could probably use this script somehow: https://creativepro.com/free-script-to-change-all-numbers-in-a-document-using-math.php
For example, the script lets you target numbers in various ways, including with a grep expression, so you could find numbers that are immediately preceded by a letter in the text.
-
May 25, 2015 at 6:40 am #75618Theunis De JongMember
Are the endnote numbers marked in any way, such as superscripted? If so, with a manual override? With a Character Style? The most optimal case would actually be if they all had a character style named “endnote” – in that case, it can be scripted without fear of accidentally changing “a² + b² = c²” to “a<sup>326</sup> + b<sup>326</sup> = c<sup>326</sup>” (which would be a problem, mainly because there are no such values for ‘a’, ‘b’, and ‘c’!).
-
May 25, 2015 at 9:03 am #75621David PeattieParticipant
Thanks! I’ll check these out. (yes, the refs have char styles).
-
May 25, 2015 at 11:40 am #75628David PeattieParticipant
Script worked great! Thanks David!
-
November 18, 2015 at 10:34 am #79503Robert WexlerParticipant
I have a problem similar to this. I brought in a Word document with endnotes gathered at the end of the book. Numbering restarted with each chapter. InDesign (CS3) brought them in but numbered them consecutively, in the text reference and at the end. Not sure how to use that script because my grep skills are pretty nonexistent. I would like to choose a range for a chapter, say 24-30, and convert them to 1-7. Should be easy, if I knew how…
-
-
AuthorPosts
- You must be logged in to reply to this topic.