On Mon, 21 Jun 2021, Jeong Dal wrote:

> 
> Hi,
> 
> I defined a macro definition in metafun, and draw figures using 
> \startbuffer[] … \stopbuffer and \processMPbuffer[].
> As you see in the attached code, the same macro definition is used repeatedly 
> by changing the numeric argument. 
> Is there a better way to simplify the code, for example, using \dorecurse and 
> recurselevel?

See attached. The main idea is to store the repetitive bits in 
\startuseMPgraphic{...} and then reuse them using \includeMPgraphic. 

Aditya

Attachment: mp-test.tex
Description: TeX document

___________________________________________________________________________________
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