On Fri, 21 Aug 2026, Wolfgang Schuster wrote:

> Am 21.08.2026 um 12:53 schrieb Fabrice Couvreur:
> > Hi,
> > Why doesn't the code below work unless I replace the instruction
> > TEX("$x$") with "\im{x}" ?
> 
> There is no TEX for MetaPost in ConTeXt and even plain MetPost requires tex.mp
> to use it. The ConTeXt way to create labels is textext(...).

Or just use label("...", ...);


\starttext
\startMPcode
   path xx, yy;
   xx = (left -- right) scaled 130;
   yy = (down -- up) scaled 80;
   drawarrow xx; label.rt("$x$", point 1 of xx);
   drawarrow yy; label.top("$y$", point 1 of yy);
 \stopMPcode
\stoptext


Aditya
___________________________________________________________________________________
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