Bug in interaction and button?
![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
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} \stoptext %% end go-back-tofig.tex
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Otared Kavian