From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103561 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: textext within ConTeXt Date: Sun, 3 Mar 2019 12:52:53 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7661172874111505900==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="179695"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 03 18:53:34 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h0VIr-000kcb-UP for gctc-ntg-context-518@m.gmane.org; Sun, 03 Mar 2019 18:53:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4B3A4F79AD; Sun, 3 Mar 2019 18:53:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3misw9U8OkAR; Sun, 3 Mar 2019 18:53:08 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ED627F79A8; Sun, 3 Mar 2019 18:53:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A658F79A6 for ; Sun, 3 Mar 2019 18:53:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1Iy6EFMtQ9ZJ for ; Sun, 3 Mar 2019 18:53:06 +0100 (CET) Original-Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9C3B5F79A5 for ; Sun, 3 Mar 2019 18:53:06 +0100 (CET) Original-Received: by mail-oi1-f177.google.com with SMTP id j10so2067120oij.13 for ; Sun, 03 Mar 2019 09:53:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=afbJ5zPS1fIDLxhWAwDJzU7y4uaUY/mg/eA8g/n2PzU=; b=sVJEB0qhuCIRX5827Xdd1egPZUziw3382hdv4RnNx+WAyOsxf073O3WIZP/M5aZd8q r4pjieKJcBG5UsNuNw74AeQkA4FdXhUcHl8dm0f5pZe+IEzq2lWwM4fV1h5aFTAsVSmO HCVdXjMdF8s6KXOG6cLyboJoGIvpXgIzBtRyuG+tHERf+ABXqw11x/EPKB9zH5WZKZBe iZr7eL9cqzPxLlA3Ps+yz4NwaYnnyJ+uHOxMt8OWmT1Yd4KlxDnbBupCWNcTwK24V+Bj NwVyc2q+8mOtPc/XB7V2uIg2n4mqDxxlAlc5gV7vsTkkkNuFVWPB2Zb19Kmx48afNzRX cemw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=afbJ5zPS1fIDLxhWAwDJzU7y4uaUY/mg/eA8g/n2PzU=; b=kFmY16T9DMLDZuHyN51snxOIGv/pYSNAyXHAYuy9rNNYRaIjgWaFnX8kZzAqAXvTgm V3ADcq48NkYIC3xLBZMkI2L2IY6nln5PIjvcc5oW6/ygYhImQyKksto0jMb6nkifjZ8O 6HBAErNwtR5wq3kN93V2TOlkmpJ9UaHlCGdXUxazL0zbxMRmKXu1EtCgsEvarBZ2xLSd 7wLHL6VrT/0Cx2Sh3g35P6QjVzO+NYGwuChxfQa9vQngsTXGQZDy3AJ9A6IemzwCV4ka KFFG2V4atdx8ov5U4PMhF9/dNTjPvEMizYJz5u8r0xo0f/8aOMya/D0K/1h4EUTuYl0l YzBw== X-Gm-Message-State: AHQUAubyghLbjzhl6JxpHGrWh2FSBp/juhAqxPrElDV8qeO4IPhnL8z/ 4CtKhc6yOuXiaayEooHJob8u6MokK2Ovx37m+Fm4sOHoWx4= X-Google-Smtp-Source: AHgI3IYyFmHF5686+D4fOR/JktUtHm35BWt+CEi1T5U4X79V2SuDCDapPG4/3VWIyrOwRE6Lk3yS7tI+yqFvWvSuBOk= X-Received: by 2002:aca:bd85:: with SMTP id n127mr9787671oif.53.1551635584444; Sun, 03 Mar 2019 09:53:04 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:103561 Archived-At: --===============7661172874111505900== Content-Type: multipart/alternative; boundary="000000000000d4f1d30583344fcc" --000000000000d4f1d30583344fcc Content-Type: text/plain; charset="UTF-8" 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 \number " & "12" & " \romannumerals #1->\clf_romannumerals \numexpr #1 \relax ... 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 --000000000000d4f1d30583344fcc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

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

\starttext
\startMPpage
draw textext("\convertnumbe= r{r}{12}");
draw textext("\convertnumber{r}{" & "= ;12" & "}");
\stopMPpage
\stoptext

<= div>The first draw statement works perfectly.=C2=A0 But the second one thro= ws out errors and complains as follows:

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


<to be read again>=C2=A0

=C2=A0

<argument> \number "= =C2=A0

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 & "12"= & "

\romannumerals #1->\clf_roma= nnumerals \numexpr #1

=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \relax=C2=A0

<argument> ... draw texte= xt("\convertnumber {r}{" & "12" & "}

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ");=C2=A0

\meta_process_graphic ...curren= tMPformat }data {#1

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;}initializations {\meta_f...=

\page_fitting_stop_command ...e= ter \c!command {#1}

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \page_fitting_stop_normal=C2=A0

=
Is there a workaround here?=C2=A0 Ultimately I want to repla= ce "12" with a loop variable in MetaPost.

Thanks,
~MHB
--000000000000d4f1d30583344fcc-- --===============7661172874111505900== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7661172874111505900==--