Register interaction (page references) [mkIV]
Hi, when I place an interactive register in mkIV, and then in the PDF click the pagenumber (in the index), it takes me to the wrong page; it seems to go to the absolute pdf page number(?). Example: \setupinteraction[state=start] \startsectionblockenvironment[bodypart] \setupuserpagenumber[number=1] \stopsectionblockenvironment \starttext \startfrontmatter \page[dummy] \page[dummy] \stopfrontmatter \startbodymatter \page[dummy] bla\index{bla} \stopbodymatter \placeregister[index] \stoptext Is there something new I have to configure to make it work? MkII works as expected. Thomas ConTeXt ver: 2010.05.13 12:15 MKIV fmt: 2010.5.18 int: english/english
On 18-5-2010 4:13, Thomas Floeren wrote:
\setupinteraction[state=start]
\startsectionblockenvironment[bodypart] \setupuserpagenumber[number=1] \stopsectionblockenvironment
\starttext \startfrontmatter \page[dummy] \page[dummy] \stopfrontmatter
\startbodymatter \page[dummy] bla\index{bla} \stopbodymatter
\placeregister[index] \stoptext
\unprotect \def\withregisterpagecommand#1#2#3% {\def\currentregisterpageindex{#1}% \iflocation \goto{\registerparameter\c!pagecommand{#3}}[internal(#1)]% \else \registerparameter\c!pagecommand{#3}% \fi} \protect ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Thomas Floeren