ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Pablo Rodriguez <oinos@gmx.es>
Subject: Re: \placelist[chapter][counter=realpage] not working
Date: Sat, 11 Apr 2020 14:53:37 +0200	[thread overview]
Message-ID: <cbf923a1-39f8-f385-3497-0062abd3499f@gmail.com> (raw)
In-Reply-To: <d6b7c53c-d58b-114f-ea06-ce8de4abcbd0@gmx.es>

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
___________________________________________________________________________________

  reply	other threads:[~2020-04-11 12:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-11 11:54 Pablo Rodriguez
2020-04-11 12:53 ` Wolfgang Schuster [this message]
2020-04-11 13:54   ` Pablo Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cbf923a1-39f8-f385-3497-0062abd3499f@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).