* referencing both real and user pagenumbers
@ 2020-05-28 22:13 Alan Bowen
2020-05-29 10:46 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Alan Bowen @ 2020-05-28 22:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 528 bytes --]
I have a collection of papers printed previously that are to go into a
single volume so that, while the papers retain their original pagination
and internal cross-referencing, they are also paginated continuously. I
have managed to do this using userpagenumbers for the individual papers and
realpagenumbers for the volume as a whole.
Re cross-referencing: \at and \in etc. return userpagenumbers (which I
need). But I also need them (or something like them) to
return realpagenumbers as well. Is there a way to do this?
Alan
[-- Attachment #1.2: Type: text/html, Size: 1109 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: referencing both real and user pagenumbers
2020-05-28 22:13 referencing both real and user pagenumbers Alan Bowen
@ 2020-05-29 10:46 ` Wolfgang Schuster
[not found] ` <CAFMOkGXO7ZmUxn9bhsaGp=dA12zk4mU6VByYJsXD2b4+j_V9mg@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2020-05-29 10:46 UTC (permalink / raw)
To: mailing list for ConTeXt users, Alan Bowen
[-- Attachment #1.1: Type: text/plain, Size: 648 bytes --]
Alan Bowen schrieb am 29.05.2020 um 00:13:
> I have a collection of papers printed previously that are to go into a
> single volume so that, while the papers retain their original
> pagination and internal cross-referencing, they are also paginated
> continuously. I have managed to do this using userpagenumbers for the
> individual papers and realpagenumbers for the volume as a whole.
>
> Re cross-referencing: \at and \in etc. return userpagenumbers (which I
> need). But I also need them (or something like them) to
> return realpagenumbers as well. Is there a way to do this?
\getreference [realpage] [<reference>]
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1273 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: referencing both real and user pagenumbers
[not found] ` <CAFMOkGXO7ZmUxn9bhsaGp=dA12zk4mU6VByYJsXD2b4+j_V9mg@mail.gmail.com>
@ 2020-05-29 15:23 ` Wolfgang Schuster
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2020-05-29 15:23 UTC (permalink / raw)
To: Alan Bowen; +Cc: NTG-Context ConTeXt users
Alan Bowen schrieb am 29.05.2020 um 16:53:
> Thank you, Wolfgang. That works nicely.
>
> One small detail left: the reference is not interactive.
>
> I have tried \setupreferencing [state=start, interaction=all] but that
> does not seem to be the way.
>
> minimal file:
> \setupinteraction[state=start]
> \starttext
> \chapter[title=My first,
> reference=First]
> \page
> in chapter 1 on page \getreference[realpage][First]
> \stoptext
Create a new reference command with
\definereferenceformat [getrealpage] [type=realpage]
and use it (e.g. \getrealpage[First]) to show the page number.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-29 15:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 22:13 referencing both real and user pagenumbers Alan Bowen
2020-05-29 10:46 ` Wolfgang Schuster
[not found] ` <CAFMOkGXO7ZmUxn9bhsaGp=dA12zk4mU6VByYJsXD2b4+j_V9mg@mail.gmail.com>
2020-05-29 15:23 ` Wolfgang Schuster
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).