On 11/13/23 23:30, Michal Vlasák wrote:
[…] With the previous code, the only destination reads in the PDF source:
5 0 obj << /D [ 0 /Fit ] /F (whatever.pdf) /S /GoToR
endobj
It seems that the default mode for outer (external file) references is the "auto" mode. This one seems to load the whatever.pdf file, check the named destinations and decide based on that.
Many thanks for your explanation, Michal. I was totally ignorant of the page key in \setupinteraction. It works fine now, with both the options you provided (and the patch, many thanks for both). I have accidentally discovered an issue in which users may run in an uninteded ways. If many destinations have the same identifier, only the first one is generated. Using the following sample: \setupinteraction[state=start, focus=standard] \starttext \dorecurse{5}{\dorecurse{5} {\chapter[\recurselevel]{Chapter} \section[sec-\recurselevel]{Section}}} \stoptext Of course, this kind of identifiers have to be unique to be useful, but I wonder whether they may be created adding something like: identifier identifier-1 identifier-2 identifier-3 … identifier-n This way (or a similar one) all named destinations are created. Of course, when linking with \goto, \in, \at, \about, the right identifier should be chosen. With links within the same document, correcting the identifier (or the link destination) is a trivial matter. With links from external documents, there may be no option to generate the external files again. If destinations are there, inspecting the external document is an option. Would it be possible that already given destination identifiers could automatically have another indentifier to generate a new destination? I hope my explanation is clear. Let me know if it isn’t and I try to ellaborate it further (in a clearer way 😅). Many thanks for your help again, Pablo