On Wed, Nov 8, 2017 at 12:40 PM, Otared Kavian <ota...@gmail.com> wrote:

> Hi Mikael,
>
> I learned the following from Aditya some time ago, on his website Random
> Determinism: maybe you can adapt it to your needs.
>
> \defineconversion[myset][\star,{\star\star},{\star\star\star}]
> \defineformula[star][numberconversion=myset]
>
> \starttext
> \placeformula
> \startstarformula
> a^4 + b^4 = c^4.
> \stopstarformula
>
> \placeformula
> \startstarformula
> a^5 + b^5 = c^5.
> \stopstarformula
>
> \placeformula
> \startstarformula
> a^6 + b^6 = c^6.
> \stopstarformula
>
> \stoptext
>
> Best regrads: OK
>
> On 8 Nov 2017, at 07:43, Mikael P. Sundqvist <mic...@gmail.com> wrote:
>
> Hi!
>
> Is there a way to tag a displayed formula with arbitrary text?
>
> As far as I can remember it was possible to use \eqno before, but that
> does not seem to be the case anymore.
>
> For my use case I do not need the possibility to cite the equation, if
> that helps.
>
> I asked the same question at stackexchange (see
> https://tex.stackexchange.com/questions/400257/tag-equation-
> in-context-with-arbitrary-text), but was redirected here.
>
> I'm thinking of a minimal non-working example like:
>
> \startTEXpage[offset=2bp]
> \startformula
> 1+1=2\eqno{A}
> \stopformula
> \stopTEXpage
>
> /MIkael
>
> PS I use this when constructing exams. Then it is good to be able to put
> the points to the right. And sometimes this is done in displayed formulas.
> For an example of what I mean, made with LaTeX, see
> http://www.ctr.maths.lu.se/media/exams/funkteori/exam_2017-03-13.pdf
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________
>
>
>
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________
>

Thank you Otared, this indeed works, even though it is a bit cumbersome,
since one has to update the list when a new "case" is added.

I see that this has been asked before, so maybe the best solution would be
to have a \tag command. That would solve the issue once and for all, I
imagine.

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

Reply via email to