From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: ConTeXt users <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: [NTG-context] named destinations in /GoToR
Date: Mon, 13 Nov 2023 17:25:24 +0100 [thread overview]
Message-ID: <fbb0c3e9-fcee-de9b-1011-7d3bb0833540@gmx.es> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2023-11-13 16:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-13 16:25 Pablo Rodriguez via ntg-context [this message]
2023-11-13 22:30 ` [NTG-context] " Michal Vlasák
2023-11-14 17:28 ` Pablo Rodriguez via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fbb0c3e9-fcee-de9b-1011-7d3bb0833540@gmx.es \
--to=ntg-context@ntg.nl \
--cc=oinos@gmx.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).