[NTG-context] textext within ConTeXt

Mohammad Hossein Bateni bateni at gmail.com
Sun Mar 3 18:52:53 CET 2019


I can't understand why the following code does not work.  Could someone
help me out here?

draw textext("\convertnumber{r}{12}");
draw textext("\convertnumber{r}{" & "12" & "}");

The first draw statement works perfectly.  But the second one throws out
errors and complains as follows:

.....test.tex: ! Missing number, treated as zero

<to be read again>

<argument> \number "

          & "12" & "

\romannumerals #1->\clf_romannumerals \numexpr #1


<argument> ... draw textext("\convertnumber {r}{" & "12" & "}


\meta_process_graphic ...currentMPformat }data {#1


\page_fitting_stop_command ...eter \c!command {#1}


Is there a workaround here?  Ultimately I want to replace "12" with a loop
variable in MetaPost.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190303/7752a9b3/attachment.html>

More information about the ntg-context mailing list