ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Otared Kavian <otared@gmail.com>
Subject: Re: Bug in interaction and button?
Date: Sat, 27 Jan 2018 11:30:05 +0100	[thread overview]
Message-ID: <4843dd5a-cf60-e0e6-2a05-63ace899f15b@wxs.nl> (raw)
In-Reply-To: <90DA376B-1E91-4FA2-9927-9B6B9F96EB07@gmail.com>

On 1/27/2018 11:09 AM, Otared Kavian wrote:
> Hi Hans,
> 
> While experimenting with \button according to your suggestions, I noticed that there might be a bug somewhere between interaction and the button command: the following code (sent by you some years ago…) works fine as expected in mkii but does not work in mkiv (neither the most recent beta, nor the stable one from TeXLive 2017). The link to jump to the figure works fine, but the one to jump back (PreviousJump) does not work in mkiv.
> 
> Thanks for your attention: OK
> 
> %% begin go-back-tofig.tex
> \setupinteraction[state=start]
> 
> \starttext
> 
> \dorecurse {2} {
>     See \in{figure}[fig:#1].\par \input knuth.tex \page
>     \placefigure
>     [here]
>     [fig:#1]
>     {}
>     {\button[offset=overlay]{\externalfigure[cow.pdf]}[PreviousJump]}
> 	\input ward.tex \page}

try this

{\hbox{\gotobox{\externalfigure[cow.pdf]}[PreviousJump]}}%

> \stoptext
> %% end go-back-tofig.tex
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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-01-27 10:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-27 10:09 Otared Kavian
2018-01-27 10:30 ` Hans Hagen [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=4843dd5a-cf60-e0e6-2a05-63ace899f15b@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=otared@gmail.com \
    /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).