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 via email to