ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
To: Fabrice Couvreur via ntg-context <ntg-context@ntg.nl>
Cc: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Special numbering
Date: Wed, 17 Aug 2022 11:47:53 -0400 (EDT)	[thread overview]
Message-ID: <nycvar.YAK.7.78.908.2208171147000.12734@nqv-guvaxcnq> (raw)
In-Reply-To: <CACyK-erjz5y12Tp1Z9+67RnF8=pPM=sho8GV-_54nkWb4gjXaA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 937 bytes --]

On Wed, 17 Aug 2022, Fabrice Couvreur via ntg-context wrote:

> Hello,
> how to get this
> Définition 1.1.
> Proposition 1.2.
> Définition 1.3.
> Proposition 1.4.
> 
> Thanks
> Fabrice
> 
> \setupenumerations
>   [before={\blank},
>    after={\blank},
>    alternative=serried,
>    distance=0.5em,
>    title=yes,
>    titleleft=,
>    titleright=,
>    titlestyle=normal,
>    prefix=yes,
>    prefixsegments=chapter,
>    way=bychapter,
>    headcommand=\groupedcommand{}{.},
>    numbercommand=\groupedcommand{}{},
>    titlecommand=\groupedcommand{(}{)},
>    width=broad]
> 
> \defineenumeration
>    [definition]
>    [text=Définition,
>     number=yes,
>     style=italic]
> 
> \defineenumeration
>    [proposition]
>    [text=Proposition,
>     number=yes,

Add:

      counter=definition,

>     style=italic]


Now, definition and proposition share the same counter.

Aditya

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-08-17 15:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-17 15:25 Fabrice Couvreur via ntg-context
2022-08-17 15:47 ` Aditya Mahajan via ntg-context [this message]
2022-08-17 17:12   ` Fabrice Couvreur via ntg-context

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=nycvar.YAK.7.78.908.2208171147000.12734@nqv-guvaxcnq \
    --to=ntg-context@ntg.nl \
    --cc=adityam@umich.edu \
    /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).