Copy link to clipboard
Copied
Hi,
when generating an index InDesign always writes only one page number for multiple entries on the same page. This is what is normally expected and wanted. But if page numbers have a special formatting, say bold or italics, these should be written to the index in addition to other entries on the same page.
Example:
Index markers in index panel:
Keidanz, Hermann 4 -> Number Style Override, character style: italic
Keidanz, Hermann 4
Keidanz, Hermann 9
Keidanz, Hermann 19 -> Number Style Override, character style: bold
Keidanz, Hermann 25 -> Number Style Override, character style: bold
Generated Index:
Keidanz, Hermann, 4, 9, 19, 25
Correct Index would be:
Keidanz, Hermann, 4, 4, 9, 19, 25
Does there exist a scripting solution to prevent this failure?
Best regards,
Ulrich
Copy link to clipboard
Copied
Why not post this in the Scripting forum for InDesign?
Copy link to clipboard
Copied
Moving discussion to InDesign Scripting
Copy link to clipboard
Copied
Hi,
Doable after Index generation with a script!
(^/)
[Can I have the "10-points" for this "correct answer"? Thanks!]
Copy link to clipboard
Copied
How should this be possible after index generation? When the index is generated the first entry in my example had been deleted.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
First I still don't understand you!
After index generation the text reads:
Keidanz, Hermann, 4, 9, 19, 25
How can a script which is applied to this text know that there was another entry for page 4 -- but which was discarded during index generation -- which should be formatted according to a character style?
Second How could your knowledge solve my problem if you keep it secret?
Copy link to clipboard
Copied
First, all you need for making this other "page 4" entry "visible in the Index list" is in the topic creation panel!
Secondly, what you say is false: in my sample, the entries haven't been discarded during the index generation! [see first point]
Thirdly, I've not said I'll fix your problem! I've only said it's doable by script! [read post#3]. That means for you that you can pay someone* for that if you want because I've studied that point and I know it's doable [ * I don't talk about me, I'm totally newbie in Javascript! ].
Fourthly, you've posted your question 2 weeks ago without getting answers! So, keep cool! [and maybe a "Hi" could be nice! …]
(^/)