On 5/21/2021 4:37 PM, Aditya Mahajan wrote:
On Fri, 21 May 2021, Hans Hagen wrote:

I uploaded an lmtx update (only m-mathfun added).

Attached a short description of this (windy stormy friday afternoon) math
experiment. The question is, what similar features using this trickery come to
mind.

Personally, I can see occasionally making use of this instead of 
\ctxlua{myfunction(args)}. There is a similar library called pgfmath which is 
part of the tikz package, which is used quite heavily by the pgfplots package 
but also appears to be popular for other purposes:

https://tex.stackexchange.com/questions/tagged/pgfmath?tab=Votes
I guessed right that you would be the first to to react! Anyway, I suppose that you come up with additional demands like:

    \permanent\protected\def\randomized{\thewithproperty\plustwo}

so that we can do:

    $ \sin(x) = \randomized\sin{2pi} $

which i'm sure you can figure out by looking at the source.

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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