Good morning all How is it possible to retrieve the information from the anchor text (make text anchor in source paragraph.) That the table of contents insert when the option is checked?
I have nothing on the command:
and no longer on:
Bonjour à Tous
Comment est-il possible de recupé les informations de l'ancre de texte (make text anchor in source paragraph.) que le table des matière inser quand l'option est coché ?
je n'ai rien sur la commande :
et non plus sur:
merci à vous
I'm a little confused. What exactly are you after?
Could you post a screenshot showing that part of a TOC with invisible characters and the Story Editor window?
What information do you want to retrieve?
( ACP )
I am trying to retrieve the information on the text anchors that the table of contents when the option is selected: "Create a text anchor in the source paragraph", retrieve the information on these Anchors which links them with the table.
Je cherche à récupérer les informations sur les ancres de textes que la table des matièrs quand l'option est selectioné : " Créer une ancre de texte dans le paragraphe source", récupérer les information sur ces Ancres qui les lie avec la table.
are you sure that you are really after the option
"Make text anchor in source paragraph" ?
That feature was introduced with InDesign version 9. The first version of Creative Cloud.
Before, e.g. with InDesign CS6 version 8, this feature did not exist.
Nevertheless, InDesign's TOC feature added hyperlinks to a document when the TOC was built in CS6.
With text anchors in the source paragraphs. And this is still the case with InDesign CC 2021.
should give you the needed information.
And you will see, that:
returns false in the case of a hyperlink that was added with the TOC functionality of InDesign.
will return a HyperlinkPageDestination.
You now know the building blocks of a Table Of Contents in a document.
"Make text anchor in source paragraph" is an option, it is part of a TOCStyle and was, as I already said, introduced with InDesign version 9. In the ExtendScript DOM you can turn that option on and off with:
Set makeAnchor to true or false. It has no influence on adding hyperlinks to the document when a TOC is added or updated.
What's left? Hm…
What is the real purpose of option "Make text anchor in source paragraph" in a TOC style?
My guess is, this is for an output format like EPUB perhaps. Documentation does not mention this option at all:
And DOM documentation does not tell a bit more:
Maybe I detected a glimpse of information in James Wamser's New Features of InDesign pdf:
Adobe InDesign CC | June 17, 2013
New features make it easier to produce high-quality EPUB files from InDesign.
You have greater control over the table of contents and CSS export, and CSS editing is simpler.…
( ACP )
>What is the real purpose of option "Make text anchor in source paragraph" in a TOC style?
>My guess is, this is for an output format like EPUB perhaps
Correct: InDesign uses it to create a multi-level TOC when a document is exported to Epub.