ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Overriding the number on a float
Date: Mon, 24 Aug 2020 15:29:48 +0200	[thread overview]
Message-ID: <F6C1C8FF-2372-42C6-9BE9-BFD51D1F7AC9@fiee.net> (raw)
In-Reply-To: <CAN8fp9Ur_bZcNkXpgk01aDVqc6+HKv6-TUTUEKeOgqpai1PYeA@mail.gmail.com>



> Am 23.08.2020 um 11:25 schrieb Duncan Hothersall <dh@capdm.com>:
> 
> I think there was a question on this very recently but I don;t think it got an answer and I can't find it to reply to, so apologies for the extra noise. I have a large text with floats numbered sequentially by chapter and then figure/table number, but at the last minute I've had a request for two figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 and 27.2. It's not a combination - they are separate figures on different pages.
> 
> I've experimented with the options I can see, but it's not obvious if there is a facility to override the numbering of two figures in a stream of normally numbered figures like this. I was thinking of the equivalent of the old \sym{symbol} command that used to work as a way to override a single item in an otherwise sequential list.
> 
> I guess there's a brute force method of setting up a new type of figure with the label "Figure 27.1" and having them numbered as lowercase alpha, but if there's an easier way that would be great.

I’m also interested in overriding automatical numbering, e.g. of chapters or itemization items.

E.g. in my songbook, I’d like to have the verses numbered but interrupted by a chorus numbered as "C" (i.e. "R" in German).
Similarly the paragraphs of some (by)laws that were changed a lot and use a numbering like 1, 2, 3, 3a, 4, 7...

Something like
\startitem[number={R}]
or
\startsection[number={3a}]
would be nice.
If I set it to an integer, ConTeXt should set the counter accordingly, otherwise continue counting from the previous calculated number. Would that be possible?

BTW do sections, items and floats all use counters (\setnumber/\getnumber) or other mechanisms?


Hraban
___________________________________________________________________________________
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-08-24 13:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-23  9:25 Duncan Hothersall
2020-08-24 13:29 ` Henning Hraban Ramm [this message]
2020-08-24 15:36   ` Wolfgang Schuster
2020-08-24 17:37     ` Henning Hraban Ramm
2020-08-24 17:59       ` Wolfgang Schuster
2020-08-24 21:51         ` Taco Hoekwater
2020-08-25  7:34           ` Duncan Hothersall
2020-08-25  8:24           ` Aditya Mahajan
2020-08-24 20:46       ` Otared Kavian

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=F6C1C8FF-2372-42C6-9BE9-BFD51D1F7AC9@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /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).