From: Mohammad Hossein Bateni <bateni@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: textext within ConTeXt
Date: Sun, 3 Mar 2019 12:52:53 -0500 [thread overview]
Message-ID: <CAMHZ1dY0yHopYtf-MA4xEE139uHpZ5iVXSy=WrXbeCFvQ2xnag@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1054 bytes --]
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:
.....test.tex: ! Missing number, treated as zero
<to be read again>
<argument> \number "
& "12" & "
\romannumerals #1->\clf_romannumerals \numexpr #1
\relax
<argument> ... draw textext("\convertnumber {r}{" & "12" & "}
");
\meta_process_graphic ...currentMPformat }data {#1
;}initializations
{\meta_f...
\page_fitting_stop_command ...eter \c!command {#1}
\page_fitting_stop_normal
Is there a workaround here? Ultimately I want to replace "12" with a loop
variable in MetaPost.
Thanks,
~MHB
[-- Attachment #1.2: Type: text/html, Size: 5903 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
___________________________________________________________________________________
next reply other threads:[~2019-03-03 17:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-03 17:52 Mohammad Hossein Bateni [this message]
2019-03-03 18:12 ` Alan Braslau
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='CAMHZ1dY0yHopYtf-MA4xEE139uHpZ5iVXSy=WrXbeCFvQ2xnag@mail.gmail.com' \
--to=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).