Re: [NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Pablo Rodriguez
On 4/11/20 2:53 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 11.04.2020 um 13:54:
>> [...]
>> I really need that, since the document I’m composing needs chapter and
>> part page numbering independent from the whole document page numbering.
>>
>> Am I missing something or have I hit a bug?
>
> You can show the realpage value but there is no proper interface setting
> (e.g. \setuplist[chapter][pagenumber=realpage]) for this yet and I think
> it's better to do this.

Many thanks for your reply, Wolfgang.

In that case, which would be the way to get the realpage value?

Or is there any way to get a page counter that can be restarted, as
userpage is? (I already use subpage for other purposes.)

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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
___


Re: [NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 11.04.2020 um 13:54:

Dear list,

here you have the following sample:

 \setuppapersize[A6]
 \setupuserpagenumber[way=chapter]
 \starttext
 \placelist[chapter][counter=realpage]
 \dorecurse{5}{\chapter{Chapter}}
 \stoptext

Why doesn’t \placelist[chapter] use the realpage counter?

According to i-context.pdf, \placelist inherits from \setuplist (which
also inherits from \setupcounter).


While \setuplist inherits values from \setupcounter doesn't mean it 
supports all of them and keys like "counter" work only when you create a 
new instance which uses the counter of another instance, e.g. you create 
two enumerations but both of them share one counter.


Another problem is that you assume counter refers to the page value 
while it would make more sense to link it to the section value (or float 
number for figures or tables).



I really need that, since the document I’m composing needs chapter and
part page numbering independent from the whole document page numbering.

Am I missing something or have I hit a bug?


You can show the realpage value but there is no proper interface setting 
(e.g. \setuplist[chapter][pagenumber=realpage]) for this yet and I think 
it's better to do this.


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
___