Copy link to clipboard
Copied
Good morning everyone,
is it possible to include the section number in the cross-references? I can't find the option in the drop-down menu when I create the cross-reference format.
Copy link to clipboard
Copied
Use paragraph number, it's used for sections as well:
Unless you're using chapter numbers as section numbers, in which case you can add it from the fly-out menu by pressing the +:
Copy link to clipboard
Copied
Thank you for the reply, but perhaps I didn’t explain myself well (or I simply didn’t understand how to do it).
A brief premise: I am using InDesign in Italian and maybe some objects have different names. By “section” I mean this (see highlight in the figure)
and I would like to add it to the reference format (only the indicator).
Is this possible? Like "see para. 8.2 on section II"
Copy link to clipboard
Copied
I see. No, unfortunately that's not possible, the only cross-reference targets are those in the screenshots I posted.
Copy link to clipboard
Copied
Thank you very much anyway.
Copy link to clipboard
Copied
Hi Peter,
Applying a specific char style to the cross-ref., a simple script could simply find the variable corresponding to the section numbering (of the cross-ref.) and convert it to text.
Including a grep style to make the "-page number" invisible, the op will get what he tries to play.
(^/) The Jedi
Copy link to clipboard
Copied
Yes, but you'd have to override the section marker and apply the style (or a text anchor). Then you need to undo it when the document changes.
Copy link to clipboard
Copied
Not exactly!
Thinking a little more : the char style is directly applied in the cross-ref. settings, the script just searches the right variable with this applied char style, converts the variable to text and, instead of using a grep style, runs this simplistic regex:
Find: Section \u+\K-\d+ with char style / Replace by nothing.
So, if the layout moves, the Script will just need to firts update the cross-ref. and play the process above again.
(^/)
Copy link to clipboard
Copied
There is no variable in the sense of text variable. A script could go to the first page of a section, read the section market's content, add a text frame on the page, add a text anchor named for the section marker. Then create a cross-ref to that anchor.
Copy link to clipboard
Copied
Peter,
This simple regex is relevant to play the game:
(^/)
Copy link to clipboard
Copied
So you see, @Dario DBZ Zanfardin , there's a way to do it, preferably with a script.
Copy link to clipboard
Copied
Thank you very much @Peter Kahrel @FRIdNGE
Find more inspiration, events, and resources on the new Adobe Community
Explore Now