ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mohammad Hossein Bateni <bateni@gmail.com>
To: Alan Braslau <braslau.list@comcast.net>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: textext within ConTeXt
Date: Sun, 3 Mar 2019 13:26:17 -0500	[thread overview]
Message-ID: <CAMHZ1dbVGwUynYVyGQFpbvmVkN2UmrHHxg6eLnstiH7arFG8Zg@mail.gmail.com> (raw)
In-Reply-To: <20190303111257.06e98a5e@comcast.net>


[-- Attachment #1.1: Type: text/plain, Size: 926 bytes --]

This is quite counterintuitive... It also happens if I define a string
variable, use concatenate operator to set its value, and then finally pass
the string to textext macro.

Is there a way to get around this issue?

On Sun, Mar 3, 2019, 1:13 PM Alan Braslau <braslau.list@comcast.net> wrote:

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

[-- Attachment #1.2: Type: text/html, Size: 1481 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

      reply	other threads:[~2019-03-03 18:26 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
2019-03-03 18:26   ` Mohammad Hossein Bateni [this message]

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=CAMHZ1dbVGwUynYVyGQFpbvmVkN2UmrHHxg6eLnstiH7arFG8Zg@mail.gmail.com \
    --to=bateni@gmail.com \
    --cc=braslau.list@comcast.net \
    --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).