Hi,

does

\setupformula
  [numberstate=auto]

work for your purpose? You will need the latest release.

/Mikael

PS Something similar for the other question you posted. I think what I
wrote there went into the distribution.

On Tue, Sep 30, 2025 at 12:36 PM ANH DŨNG LÊ <[email protected]>
wrote:

> Hello,
>
> I have a tex file
>
> \setupinteraction[state=start,focus=standard]
> \definereferenceformat[eqref][left=(,right=),style=normal,color=blue]
>
> \starttext
>
> With \CONTEXT\ we could write maths. Equations can be referenced. For 
> example, see \eqref[eqn:famous-emc].
>
> \placeformula[eqn:famous-emc]
> \startformula
> E = mc^2
> \stopformula
> with
> \placeformula[eqn:def-m]
> \startformula
> m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
> \stopformula
>
> \stoptext
>
> [image: enter image description here] <https://i.sstatic.net/KnsIF4bG.png>
>
> I would like to turn off the numbering of equations that are not
> referenced. The corresponding option in LaTeX is
> \mathtoolsset{showonlyrefs}. An answer has been provided here
> <https://tex.stackexchange.com/a/751366/161639>. I hope that this
> functionality could be made into an option in the next release of ConTeXt.
>
> Best regards,
>
> Dung
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : [email protected] /
> 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 : [email protected] / 
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