ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in counter
@ 2022-07-04 16:29 Johann Birnick via ntg-context
  2022-07-04 17:34 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Johann Birnick via ntg-context @ 2022-07-04 16:29 UTC (permalink / raw)
  To: ntg-context; +Cc: Johann Birnick

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

Hey there,

please consider:


\starttext
                                                    
\defineenumeration[definition][text=Definition, alternative=serried]
\setupnumber[definition][way=bysection, numbersection=yes]

\section{My section 1}
\startdefinition
My fist definition
\stopdefinition

\section{My section 2}
\startdefinition
My second definition
\stopdefinition

\stoptext


It should number my definitions 1.1 and 2.1, but it doesn't. The prefix is
missing.

Any ideas?

Thank you and best regards,
Johann

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 10923 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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] 2+ messages in thread

* Re: Bug in counter
  2022-07-04 16:29 Bug in counter Johann Birnick via ntg-context
@ 2022-07-04 17:34 ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-07-04 17:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

Johann Birnick via ntg-context schrieb am 04.07.2022 um 18:29:
> Hey there,
>
> please consider:
>
>
> \starttext
>                                                      
> \defineenumeration[definition][text=Definition, alternative=serried]
> \setupnumber[definition][way=bysection, numbersection=yes]

\setupenumeration
   [definition]
   [way=bysection,
    prefix=yes,
    prefixsegments=section]

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] 2+ messages in thread

end of thread, other threads:[~2022-07-04 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04 16:29 Bug in counter Johann Birnick via ntg-context
2022-07-04 17:34 ` Wolfgang Schuster 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).