ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \placelist[chapter][counter=realpage] not working
@ 2020-04-11 11:54 Pablo Rodriguez
  2020-04-11 12:53 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2020-04-11 11:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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?

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
___________________________________________________________________________________

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

* Re: \placelist[chapter][counter=realpage] not working
  2020-04-11 11:54 \placelist[chapter][counter=realpage] not working Pablo Rodriguez
@ 2020-04-11 12:53 ` Wolfgang Schuster
  2020-04-11 13:54   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2020-04-11 12:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

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
___________________________________________________________________________________

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

* Re: \placelist[chapter][counter=realpage] not working
  2020-04-11 12:53 ` Wolfgang Schuster
@ 2020-04-11 13:54   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2020-04-11 13:54 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-04-11 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-11 11:54 \placelist[chapter][counter=realpage] not working Pablo Rodriguez
2020-04-11 12:53 ` Wolfgang Schuster
2020-04-11 13:54   ` Pablo Rodriguez

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