Meta(post)/(fun) macro with label position
Dear list, Is there a way in a Meta(post)/(fun) macro to specify the label position as an argument? def labelT(expr pos)(text t) = ... enddef; Thanks a lot in advance, Alex
Dear Alex, I don’t know what you want exactly. I hope that it may help. \startMPpage def myLabel(expr xpos, ypos)(text t) = dotlabel.top(textext(t),(xpos,ypos)); enddef; myLabel(1cm, 1cm, "Position"); \stoppage Good luck. Best regards, Dalyoung
Thank you so much Alan, that was exactly what I was looking for.
Le ven. 20 janv. 2023 à 01:56, Alan Braslau
On Thu, 19 Jan 2023 22:40:13 +0100 Alexandre Christe via ntg-context
wrote: def labelT(expr pos)(text t) = ... enddef;
vardef labelT@#(text t) = ... enddef ;
Then you can pass on the "suffix" @#
Alan
participants (3)
-
Alan Braslau
-
Alexandre Christe
-
Jeong Dal