I found out why it wasn't working: there was this
\setupformula[prefix=no] in one of my files that allows me to create my
styles. So, this works perfectly

\startplaceformula
     \setuplabeltext[equation][prefix=chapter]
     \placeformula
     \startformula
       (1+x)^n\geqslant 1+nx
     \stopformula
   \stopplaceformula

Le sam. 23 août 2025 à 14:50, Jonatán O. Perren <jonatan.per...@gmail.com>
a écrit :

> As far as I can see, when you are inside a chapter the format
> (chapter.equation) is implemented alone. Try
>
> \starttext
>   \startchapter{A chapter}
>      \placeformula
>      \startformula
>        (1+x)^n\geqslant 1+nx
>      \stopformula
>   \stopchapter
> \stoptext
>
> on https://context-on-web.eu/
>
> El sáb, 23 ago 2025 a las 9:32, Fabrice Couvreur (<
> fabrice1.couvr...@gmail.com>) escribió:
>
>> Hi Jonatàn,
>> Thanks for your suggestion, but this doesn't work, and the equation is
>> numbered (1) not (1.1)
>>
>> \startplaceformula
>>      \setuplabeltext[equation][prefix=chapter]
>>      \startformula
>>        (1+x)^n\geqslant 1+nx
>>      \stopformula
>>    \stopplaceformula
>>
>> Fabrice
>>
>>
>> Le sam. 23 août 2025 à 13:48, Jonatán O. Perren <jonatan.per...@gmail.com>
>> a écrit :
>>
>>> Hi, Fabrice. Just add
>>>
>>> \setuplabeltext[equation][prefix=chapter]
>>>
>>> Greetings!
>>>
>>> El sáb, 23 de ago de 2025, 8:15 a.m., Fabrice Couvreur <
>>> fabrice1.couvr...@gmail.com> escribió:
>>>
>>>> Hi,
>>>> I would like the equation numbers to be (1.1), (1.2), ... for the first
>>>> chapter; (2.1), (2.2), ... for the second chapter, etc.
>>>> Thank you for your help.
>>>> Fabrice
>>>>
>>>> \startplaceformula
>>>>      \startformula
>>>>        (1+x)^n\geqslant 1+nx
>>>>      \stopformula
>>>>  \stopplaceformula
>>>>
>>>> ___________________________________________________________________________________
>>>> If your question is of interest to others as well, please add an entry
>>>> to the Wiki!
>>>>
>>>> maillist : ntg-context@ntg.nl /
>>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>>>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net
>>>> (mirror)
>>>> archive  : https://github.com/contextgarden/context
>>>> wiki     : https://wiki.contextgarden.net
>>>>
>>>> ___________________________________________________________________________________
>>>>
>>>
>>> ___________________________________________________________________________________
>>> If your question is of interest to others as well, please add an entry
>>> to the Wiki!
>>>
>>> maillist : ntg-context@ntg.nl /
>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net
>>> (mirror)
>>> archive  : https://github.com/contextgarden/context
>>> wiki     : https://wiki.contextgarden.net
>>>
>>> ___________________________________________________________________________________
>>>
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net
>> (mirror)
>> archive  : https://github.com/contextgarden/context
>> wiki     : https://wiki.contextgarden.net
>>
>> ___________________________________________________________________________________
>>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to