ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] named destinations in /GoToR
@ 2023-11-13 16:25 Pablo Rodriguez via ntg-context
  2023-11-13 22:30 ` [NTG-context] " Michal Vlasák
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-11-13 16:25 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Pablo Rodriguez

Dear list,

imagine I have a PDF document (named "whatever.pdf") such as the one
generated from this source:

  \setupinteraction[state=start,
    focus=standard]
  \starttext
  \dorecurse{5}
    {\chapter[\recurselevel]{Chapter}
      \section[sec-\recurselevel]{Section}}
  \stoptext

This source only samples PDF documents not generated with ConTeXt. This
means that no .tuc file may be available and named destinations may
contain only digits.

Then I need to access some named destinations from a document such as:

  \setupinteraction[state=start,
    focus=standard]
  \starttext
  \dorecurse{5}
    {\goto{Chapter \recurselevel}[whatever.pdf::\recurselevel],
      \goto{section \recurselevel}[whatever.pdf::sec-\recurselevel]\par}
  \stoptext

Sorry, but after reading again lpdf-ano.mkxl I’m not sure whether I can
get named destinations (such as "/D (4)" or "/D (sec-3)") and how I
could get them.

With the previous code, the only destination reads in the PDF source:

  5 0 obj
  <<
    /D [ 0 /Fit ]
    /F (whatever.pdf)
    /S /GoToR
  >>
  endobj

Many thanks for your help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-14 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 16:25 [NTG-context] named destinations in /GoToR Pablo Rodriguez via ntg-context
2023-11-13 22:30 ` [NTG-context] " Michal Vlasák
2023-11-14 17:28   ` Pablo Rodriguez via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).