ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: [NTG-context] Re: (again) wrong destination types?
Date: Wed, 6 Dec 2023 20:05:33 +0100	[thread overview]
Message-ID: <5046642f-3bf2-f30f-9717-bbfa3535bedb@gmx.es> (raw)
In-Reply-To: <692E0D4F-9658-4C69-8C5E-CFAECAC6A643@scorecrow.com>

On 12/5/23 00:21, Bruce Horrocks wrote:
>> On 3 Dec 2023, at 15:26, Pablo Rodriguez via ntg-context wrote:
>> […]
>> My issue is that I cannot avoid having "page=name" for links to external
>> documents, but this breaks footnotes and other special operation links.
>
> What are you using for links to external documents? If just a single
> command such as \goto then you might be able to get away with defining a
> wrapper (e.g. \myGoto) that does
> \setupinteraction[state=start,page=name,focus=standard] then the \goto
> command then \setupinteraction[state=start,page=fit,focus=standard]
> afterwards.

Many thanks for your reply, Bruce.

The following code seems to solve my issues:

  \def\MyGoTo#1[#2]{\setupinteraction[state=start, style=,
      display=new, color=, contrastcolor=,
      page={auto,name},
      focus=standard]%
    \goto{#1}[#2]}
  \setupinteraction[state=start, style=,
      display=new, color=, contrastcolor=,
      page={no},
      focus=standard]

I didn’t thought this issue would be so easy to be solved.

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
___________________________________________________________________________________

      reply	other threads:[~2023-12-06 19:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-20 18:01 [NTG-context] " Pablo Rodriguez via ntg-context
2023-11-21 23:06 ` [NTG-context] " Bruce Horrocks
2023-12-03 15:26   ` Pablo Rodriguez via ntg-context
2023-12-04 23:21     ` Bruce Horrocks
2023-12-06 19:05       ` Pablo Rodriguez via ntg-context [this message]

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=5046642f-3bf2-f30f-9717-bbfa3535bedb@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).