From: Alan Braslau <braslau.list@comcast.net>
To: Mohammad Hossein Bateni <bateni@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: textext within ConTeXt
Date: Sun, 3 Mar 2019 11:12:57 -0700 [thread overview]
Message-ID: <20190303111257.06e98a5e@comcast.net> (raw)
In-Reply-To: <CAMHZ1dY0yHopYtf-MA4xEE139uHpZ5iVXSy=WrXbeCFvQ2xnag@mail.gmail.com>
On Sun, 3 Mar 2019 12:52:53 -0500
Mohammad Hossein Bateni <bateni@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2019-03-03 18:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-03 17:52 Mohammad Hossein Bateni
2019-03-03 18:12 ` Alan Braslau [this message]
2019-03-03 18:26 ` Mohammad Hossein Bateni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190303111257.06e98a5e@comcast.net \
--to=braslau.list@comcast.net \
--cc=bateni@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).