* jump to PDF page
@ 2010-09-28 10:49 Steffen Wolfrum
2010-09-28 11:26 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Steffen Wolfrum @ 2010-09-28 10:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I there a command to "jump" to a specific pdf page?
Like \goto,\at, \in, \about ... only, in this case a page number should be given!
Any ideas?
Thanks,
Steffen
___________________________________________________________________________________
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 10:49 jump to PDF page Steffen Wolfrum
@ 2010-09-28 11:26 ` Hans Hagen
2010-09-28 11:54 ` Steffen Wolfrum
0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2010-09-28 11:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 28-9-2010 12:49, Steffen Wolfrum wrote:
> Hi,
>
> I there a command to "jump" to a specific pdf page?
>
>
> Like \goto,\at, \in, \about ... only, in this case a page number should be given!
>
>
> Any ideas?
\goto{someplace}[page(10)]
-----------------------------------------------------------------
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 11:26 ` Hans Hagen
@ 2010-09-28 11:54 ` Steffen Wolfrum
2010-09-28 12:22 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Steffen Wolfrum @ 2010-09-28 11:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 28.09.2010 um 13:26 schrieb Hans Hagen:
> On 28-9-2010 12:49, Steffen Wolfrum wrote:
>> Hi,
>>
>> I there a command to "jump" to a specific pdf page?
>>
>>
>> Like \goto,\at, \in, \about ... only, in this case a page number should be given!
>>
>>
>> Any ideas?
>
> \goto{someplace}[page(10)]
This uses the number of real page.
But if I need to use the numbers of userpage?
For example:
\setuppagenumber[number=5]
\setupinteraction[state=start]
\starttext
\dorecurse{10}{\input tufte \page}
Go to page \goto{6}[page(6)]
\stoptext
This link goes to userpage 10 (= realpage 6 ).
How do I say "go to realpage number 6"?
This would be the last missing step to solve all my register problems!!!
Steffen
___________________________________________________________________________________
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 11:54 ` Steffen Wolfrum
@ 2010-09-28 12:22 ` Hans Hagen
2010-09-28 12:28 ` Steffen Wolfrum
0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2010-09-28 12:22 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum
On 28-9-2010 1:54, Steffen Wolfrum wrote:
>
> Am 28.09.2010 um 13:26 schrieb Hans Hagen:
>
>> On 28-9-2010 12:49, Steffen Wolfrum wrote:
>>> Hi,
>>>
>>> I there a command to "jump" to a specific pdf page?
>>>
>>>
>>> Like \goto,\at, \in, \about ... only, in this case a page number should be given!
>>>
>>>
>>> Any ideas?
>>
>> \goto{someplace}[page(10)]
>
>
> This uses the number of real page.
> But if I need to use the numbers of userpage?
>
> For example:
>
> \setuppagenumber[number=5]
> \setupinteraction[state=start]
> \starttext
> \dorecurse{10}{\input tufte \page}
>
> Go to page \goto{6}[page(6)]
>
> \stoptext
>
>
> This link goes to userpage 10 (= realpage 6 ).
> How do I say "go to realpage number 6"?
what if we have several page 6's in one document (using hard coded page
numbers is a bad idea anyway)
Hans
-----------------------------------------------------------------
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 12:22 ` Hans Hagen
@ 2010-09-28 12:28 ` Steffen Wolfrum
2010-09-28 12:41 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Steffen Wolfrum @ 2010-09-28 12:28 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 28.09.2010 um 14:22 schrieb Hans Hagen:
> On 28-9-2010 1:54, Steffen Wolfrum wrote:
>>
>> Am 28.09.2010 um 13:26 schrieb Hans Hagen:
>>
>>> On 28-9-2010 12:49, Steffen Wolfrum wrote:
>>>> Hi,
>>>>
>>>> I there a command to "jump" to a specific pdf page?
>>>>
>>>>
>>>> Like \goto,\at, \in, \about ... only, in this case a page number should be given!
>>>>
>>>>
>>>> Any ideas?
>>>
>>> \goto{someplace}[page(10)]
>>
>>
>> This uses the number of real page.
>> But if I need to use the numbers of userpage?
>>
>> For example:
>>
>> \setuppagenumber[number=5]
>> \setupinteraction[state=start]
>> \starttext
>> \dorecurse{10}{\input tufte \page}
>>
>> Go to page \goto{6}[page(6)]
>>
>> \stoptext
>>
>>
>> This link goes to userpage 10 (= realpage 6 ).
>> How do I say "go to realpage number 6"?
>
> what if we have several page 6's in one document (using hard coded page numbers is a bad idea anyway)
ok. but in my book there is only on realpage 6.
I need it for building my own register by hand:
when I have "Stichwort 6" and I want add the link it would be great to say:
"Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a pagecommand, of course.
Steffen
___________________________________________________________________________________
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 12:28 ` Steffen Wolfrum
@ 2010-09-28 12:41 ` Hans Hagen
2010-09-28 13:27 ` Steffen Wolfrum
0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2010-09-28 12:41 UTC (permalink / raw)
To: Steffen Wolfrum; +Cc: mailing list for ConTeXt users
On 28-9-2010 2:28, Steffen Wolfrum wrote:
>
> Am 28.09.2010 um 14:22 schrieb Hans Hagen:
>
>> On 28-9-2010 1:54, Steffen Wolfrum wrote:
>>>
>>> Am 28.09.2010 um 13:26 schrieb Hans Hagen:
>>>
>>>> On 28-9-2010 12:49, Steffen Wolfrum wrote:
>>>>> Hi,
>>>>>
>>>>> I there a command to "jump" to a specific pdf page?
>>>>>
>>>>>
>>>>> Like \goto,\at, \in, \about ... only, in this case a page number should be given!
>>>>>
>>>>>
>>>>> Any ideas?
>>>>
>>>> \goto{someplace}[page(10)]
>>>
>>>
>>> This uses the number of real page.
>>> But if I need to use the numbers of userpage?
>>>
>>> For example:
>>>
>>> \setuppagenumber[number=5]
>>> \setupinteraction[state=start]
>>> \starttext
>>> \dorecurse{10}{\input tufte \page}
>>>
>>> Go to page \goto{6}[page(6)]
>>>
>>> \stoptext
>>>
>>>
>>> This link goes to userpage 10 (= realpage 6 ).
>>> How do I say "go to realpage number 6"?
>>
>> what if we have several page 6's in one document (using hard coded page numbers is a bad idea anyway)
>
>
>
> ok. but in my book there is only on realpage 6.
>
> I need it for building my own register by hand:
> when I have "Stichwort 6" and I want add the link it would be great to say:
>
> "Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a pagecommand, of course.
you can add this to lpdf-ano.lua and then use realpage(123)
function specials.realpage(var,actions)
return link(nil,nil,nil,var.operation,actions)
end
-----------------------------------------------------------------
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 12:41 ` Hans Hagen
@ 2010-09-28 13:27 ` Steffen Wolfrum
2010-09-28 14:13 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Steffen Wolfrum @ 2010-09-28 13:27 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 28.09.2010 um 14:41 schrieb Hans Hagen:
> On 28-9-2010 2:28, Steffen Wolfrum wrote:
>>
>> I need it for building my own register by hand:
>> when I have "Stichwort 6" and I want add the link it would be great to say:
>>
>> "Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a pagecommand, of course.
>
> you can add this to lpdf-ano.lua and then use realpage(123)
>
> function specials.realpage(var,actions)
> return link(nil,nil,nil,var.operation,actions)
> end
no, no, obviously the terms were mixed! sorry!!
this is what we already had (the link goes to userpage 10 = realpage 6).
I need a "function specials.realpage", so the link goes to userpage 6 !
Steffen
___________________________________________________________________________________
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 13:27 ` Steffen Wolfrum
@ 2010-09-28 14:13 ` Hans Hagen
2010-09-28 14:38 ` Hans Hagen
0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2010-09-28 14:13 UTC (permalink / raw)
To: Steffen Wolfrum; +Cc: mailing list for ConTeXt users
On 28-9-2010 3:27, Steffen Wolfrum wrote:
>
> Am 28.09.2010 um 14:41 schrieb Hans Hagen:
>
>> On 28-9-2010 2:28, Steffen Wolfrum wrote:
>>>
>>> I need it for building my own register by hand:
>>> when I have "Stichwort 6" and I want add the link it would be great to say:
>>>
>>> "Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a pagecommand, of course.
>>
>> you can add this to lpdf-ano.lua and then use realpage(123)
>>
>> function specials.realpage(var,actions)
>> return link(nil,nil,nil,var.operation,actions)
>> end
>
>
> no, no, obviously the terms were mixed! sorry!!
> this is what we already had (the link goes to userpage 10 = realpage 6).
>
> I need a "function specials.realpage", so the link goes to userpage 6 !
that's more work as we can have dup userpage entries
-----------------------------------------------------------------
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 14:13 ` Hans Hagen
@ 2010-09-28 14:38 ` Hans Hagen
2010-09-28 14:41 ` Steffen Wolfrum
2011-10-09 16:57 ` Steffen Wolfrum
0 siblings, 2 replies; 12+ messages in thread
From: Hans Hagen @ 2010-09-28 14:38 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum
On 28-9-2010 4:13, Hans Hagen wrote:
> On 28-9-2010 3:27, Steffen Wolfrum wrote:
>>
>> Am 28.09.2010 um 14:41 schrieb Hans Hagen:
>>
>>> On 28-9-2010 2:28, Steffen Wolfrum wrote:
>>>>
>>>> I need it for building my own register by hand:
>>>> when I have "Stichwort 6" and I want add the link it would be great
>>>> to say:
>>>>
>>>> "Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a
>>>> pagecommand, of course.
>>>
>>> you can add this to lpdf-ano.lua and then use realpage(123)
>>>
>>> function specials.realpage(var,actions)
>>> return link(nil,nil,nil,var.operation,actions)
>>> end
>>
>>
>> no, no, obviously the terms were mixed! sorry!!
>> this is what we already had (the link goes to userpage 10 = realpage 6).
>>
>> I need a "function specials.realpage", so the link goes to userpage 6 !
>
> that's more work as we can have dup userpage entries
I'll upload a beta that supports
\setupinteraction[state=start]
\starttext
\startstandardmakeup
no page
\stopstandardmakeup
one \goto{page 2}[page(2)]
one \goto{realpage 2}[realpage(2)]
one \goto{userpage 2}[userpage(2)]
\page
two \goto{page 1}[page(1)]
two \goto{realpage 1}[realpage(1)]
two \goto{userpage 1}[userpage(1)]
\stoptext
no more patched/extensions today
-----------------------------------------------------------------
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 14:38 ` Hans Hagen
@ 2010-09-28 14:41 ` Steffen Wolfrum
2011-10-09 16:57 ` Steffen Wolfrum
1 sibling, 0 replies; 12+ messages in thread
From: Steffen Wolfrum @ 2010-09-28 14:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 28.09.2010 um 16:38 schrieb Hans Hagen:
> On 28-9-2010 4:13, Hans Hagen wrote:
>> On 28-9-2010 3:27, Steffen Wolfrum wrote:
>>>
>>> Am 28.09.2010 um 14:41 schrieb Hans Hagen:
>>>
>>>> On 28-9-2010 2:28, Steffen Wolfrum wrote:
>>>>>
>>>>> I need it for building my own register by hand:
>>>>> when I have "Stichwort 6" and I want add the link it would be great
>>>>> to say:
>>>>>
>>>>> "Stichwort 6 (\goto{6}[page(6)])" ... with 6 being #1 in a
>>>>> pagecommand, of course.
>>>>
>>>> you can add this to lpdf-ano.lua and then use realpage(123)
>>>>
>>>> function specials.realpage(var,actions)
>>>> return link(nil,nil,nil,var.operation,actions)
>>>> end
>>>
>>>
>>> no, no, obviously the terms were mixed! sorry!!
>>> this is what we already had (the link goes to userpage 10 = realpage 6).
>>>
>>> I need a "function specials.realpage", so the link goes to userpage 6 !
>>
>> that's more work as we can have dup userpage entries
>
> I'll upload a beta that supports
>
> \setupinteraction[state=start]
>
> \starttext
> \startstandardmakeup
> no page
> \stopstandardmakeup
> one \goto{page 2}[page(2)]
> one \goto{realpage 2}[realpage(2)]
> one \goto{userpage 2}[userpage(2)]
> \page
> two \goto{page 1}[page(1)]
> two \goto{realpage 1}[realpage(1)]
> two \goto{userpage 1}[userpage(1)]
> \stoptext
great!
st.
___________________________________________________________________________________
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] 12+ messages in thread
* Re: jump to PDF page
2010-09-28 14:38 ` Hans Hagen
2010-09-28 14:41 ` Steffen Wolfrum
@ 2011-10-09 16:57 ` Steffen Wolfrum
2011-10-10 12:06 ` Hans Hagen
1 sibling, 1 reply; 12+ messages in thread
From: Steffen Wolfrum @ 2011-10-09 16:57 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 28.09.2010 um 16:38 schrieb Hans Hagen:
>
> I'll upload a beta that supports
>
> \setupinteraction[state=start]
>
> \starttext
> \startstandardmakeup
> no page
> \stopstandardmakeup
> one \goto{page 2}[page(2)]
> one \goto{realpage 2}[realpage(2)]
> one \goto{userpage 2}[userpage(2)]
> \page
> two \goto{page 1}[page(1)]
> two \goto{realpage 1}[realpage(1)]
> two \goto{userpage 1}[userpage(1)]
> \stoptext
The last one
\goto{...}[userpage(...)]
doesn't work anymore!
Steffen
___________________________________________________________________________________
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] 12+ messages in thread
* Re: jump to PDF page
2011-10-09 16:57 ` Steffen Wolfrum
@ 2011-10-10 12:06 ` Hans Hagen
0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2011-10-10 12:06 UTC (permalink / raw)
To: Steffen Wolfrum; +Cc: mailing list for ConTeXt users
On 9-10-2011 18:57, Steffen Wolfrum wrote:
>
> Am 28.09.2010 um 16:38 schrieb Hans Hagen:
>>
>> I'll upload a beta that supports
>>
>> \setupinteraction[state=start]
>>
>> \starttext
>> \startstandardmakeup
>> no page
>> \stopstandardmakeup
>> one \goto{page 2}[page(2)]
>> one \goto{realpage 2}[realpage(2)]
>> one \goto{userpage 2}[userpage(2)]
>> \page
>> two \goto{page 1}[page(1)]
>> two \goto{realpage 1}[realpage(1)]
>> two \goto{userpage 1}[userpage(1)]
>> \stoptext
>
>
>
> The last one
>
> \goto{...}[userpage(...)]
>
> doesn't work anymore!
fixed in next beta
-----------------------------------------------------------------
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] 12+ messages in thread
end of thread, other threads:[~2011-10-10 12:06 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-28 10:49 jump to PDF page Steffen Wolfrum
2010-09-28 11:26 ` Hans Hagen
2010-09-28 11:54 ` Steffen Wolfrum
2010-09-28 12:22 ` Hans Hagen
2010-09-28 12:28 ` Steffen Wolfrum
2010-09-28 12:41 ` Hans Hagen
2010-09-28 13:27 ` Steffen Wolfrum
2010-09-28 14:13 ` Hans Hagen
2010-09-28 14:38 ` Hans Hagen
2010-09-28 14:41 ` Steffen Wolfrum
2011-10-09 16:57 ` Steffen Wolfrum
2011-10-10 12:06 ` 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).