Re: Question about Metapost with lmtx
Fabrice Couvreur <[email protected]>
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <CACyK-epb2qodBZ60AM=MtsvjVkMHRsZ9HJtD2b5x=itrdyM4cw@mail.gmail.com> |
Hi, Thanks for your suggestions. Fabrice Le ven. 21 août 2026 à 16:18, Aditya Mahajan <[email protected]> a écrit : > > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________