Yes, I understand how normal cross references operate. The cross reference list was preferable because I had a way to update it if, by chance, I had to bump an entry to a new page manually, and my book re-paginates. Indexes and TOCs are more of a “final step”, if you will. Xrefs are more dynamic, like hyperlinks. But Xrefs are buggy, bandwidth hogs, and the document I’d created to handle them in my book keeps crashing.
The TOC or Index method was not ideal, but Indexing seems to be the least difficult route. I also found this: https://creativepro.com/files/kahrel/indesign/index_from_wordlist.html (a script that makes index entries from a paragraph style). The issues I’m facing is that the directory I have is organized by geographic region whereas the Appendix is meant to be organized by service category. Thus far, my solution has been:
1. Create the index entry per the style (using the script, thank you Mr. Kahrel)
2. Copy/paste the index (which has each item with page number) into a spreadsheet and sort/manipulate/resort entries to pair the relevant entries (by title) with the relevant index reference (with page numbers)
3. Then recompile the entries by service category (which do not have/don’t need a link)
4. Re-import the text to serve as the index (now “dumb” because the index markers are eliminated)
If only I could search and replace, using GREP, all page numbers, e.g., find “123”, replace with “^I123^I” but thus far, it appears that it just gives me text (not a linked page marker), e.g., “^I123^I” that isn’t a link. ((and oddly enough, when I perform the S/R, I cannot undo it. It just leaves the markers as text (they are definitely not hidden text).))
I have not found a way to export the index (with the code associated with each page marker) and do a search and replace outside of InDesign, then import back in.
At present, I may have to just accept that the index will not have links to the page, but merely serve as an indication of the page to the reader of the PDF. The printed version is sufficiently served by this option, of course, but the PDF would not have links. I’m also hoping to investigate this: https://www.id-extras.com/products/liveindex/. Maybe it will be my last step to relink things?
I appreciatively welcome any other insights.
Regards, KC