ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Register interaction (page references) [mkIV]
@ 2010-05-18 14:13 Thomas Floeren
  2010-05-20  9:19 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Floeren @ 2010-05-18 14:13 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

 
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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Register interaction (page references) [mkIV]
  2010-05-18 14:13 Register interaction (page references) [mkIV] Thomas Floeren
@ 2010-05-20  9:19 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2010-05-20  9:19 UTC (permalink / raw)
  To: thomas.floeren, mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-20  9:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-18 14:13 Register interaction (page references) [mkIV] Thomas Floeren
2010-05-20  9:19 ` Hans Hagen

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).