ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lawrence Bell <lawrence.matthew.bell@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Reference links with focus=standard option
Date: Wed, 11 Apr 2018 15:35:23 +0100	[thread overview]
Message-ID: <dcefe3c9-578d-2311-6760-9f810d620349@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1571 bytes --]

Hi mailing list,

I'm having some trouble with (interactive) references. I had a quick
search of the mailing list and couldn't find any talk about this kind of
issue, so I'm asking now. Hoping you could help me out.

Consider the following example document.

\setupinteraction
  [
    state=start,
    % focus=standard,
  ]

\starttext
\startchapter[title=Some Title, reference=pt:ref]

Lorem ipsum dolor sit amet, \periods

\startplaceformula[reference=eq:ref]
  \startformula
    c^2 = a^2 + b^2.
  \stopformula
\stopplaceformula

Lorem ipsum dolor sit amet, \periods

\startitemize[r]
  \startitem[it:ref]
    Lorem ipsum dolor sit amet, \periods
  \stopitem
\stopitemize

And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and
item~\in[it:ref].

\page

And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and
item~\in[it:ref].

\stopchapter
\stoptext

All is well with the default setting for focus. I don't like that with
most (?) PDF viewers the default setting changes the zoom level, so I
usually turn on \setupinteraction[focus=standard] instead. But this
seems to break (some of) the interactive links. The links to the the
chapter and item still work, but the links to the formula are broken.

As an experiment, I just tried this with a couple different viewers
(Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting
\setupinteraction[focus=standard] back in) the link is indeed broken on
all of them, /except/ for Qpdfview which still seems to understand it.

What's going on here?

Thanks in advance, Lawrence


[-- Attachment #1.2: Type: text/html, Size: 2743 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2018-04-11 14:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-11 14:35 Lawrence Bell [this message]
2018-04-11 17:14 ` Pablo Rodriguez
2018-04-11 18:36   ` Pablo Rodriguez
2018-04-11 19:27     ` Lawrence Bell
2018-04-13  6:13 Christoph Reller
2018-04-13  6:31 ` Henri Menke
2018-04-13  9:45   ` Lawrence Bell
2018-04-13  9:48 ` Hans Hagen
2018-04-13 10:45 Christoph Reller

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=dcefe3c9-578d-2311-6760-9f810d620349@gmail.com \
    --to=lawrence.matthew.bell@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).