ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Special numbering
@ 2022-08-17 15:25 Fabrice Couvreur via ntg-context
  2022-08-17 15:47 ` Aditya Mahajan via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2022-08-17 15:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur


[-- Attachment #1.1: Type: text/plain, Size: 869 bytes --]

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,
    style=italic]

\starttext
\startchapter
  [title={First chapter}]
  \dorecurse{2}{
    \startdefinition

\stopdefinition
\startproposition

\stopproposition}
\stopchapter
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1745 bytes --]

[-- 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
___________________________________________________________________________________

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

* Re: Special numbering
  2022-08-17 15:25 Special numbering Fabrice Couvreur via ntg-context
@ 2022-08-17 15:47 ` Aditya Mahajan via ntg-context
  2022-08-17 17:12   ` Fabrice Couvreur via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan via ntg-context @ 2022-08-17 15:47 UTC (permalink / raw)
  To: Fabrice Couvreur via ntg-context; +Cc: Aditya Mahajan

[-- 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
___________________________________________________________________________________

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

* Re: Special numbering
  2022-08-17 15:47 ` Aditya Mahajan via ntg-context
@ 2022-08-17 17:12   ` Fabrice Couvreur via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2022-08-17 17:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur


[-- Attachment #1.1: Type: text/plain, Size: 1725 bytes --]

Hi  Aditya,
Thanks for your help, it works perfectly.
Fabrice

Le mer. 17 août 2022 à 17:48, Aditya Mahajan via ntg-context <
ntg-context@ntg.nl> a écrit :

> 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___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2967 bytes --]

[-- 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
___________________________________________________________________________________

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

end of thread, other threads:[~2022-08-17 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-17 15:25 Special numbering Fabrice Couvreur via ntg-context
2022-08-17 15:47 ` Aditya Mahajan via ntg-context
2022-08-17 17:12   ` Fabrice Couvreur via ntg-context

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