[NTG-context] textext within ConTeXt

Alan Braslau braslau.list at comcast.net
Sun Mar 3 19:12:57 CET 2019


On Sun, 3 Mar 2019 12:52:53 -0500
Mohammad Hossein Bateni <bateni at gmail.com> wrote:

> Hi,
> 
> I can't understand why the following code does not work.  Could someone
> help me out here?
> 
> \starttext
> \startMPpage
> draw textext("\convertnumber{r}{12}");
> draw textext("\convertnumber{r}{" & "12" & "}");
> \stopMPpage
> \stoptext
> 
> The first draw statement works perfectly.  But the second one throws out
> errors and complains as follows:

Because luatex intercepts and processes \convertnumber{r}{
and tries to pass this result to MP as a string, not the other way around.

Alan


More information about the ntg-context mailing list