From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106903 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: Re: \startMPcode and \startMPpage Date: Fri, 17 Apr 2020 07:56:25 +0900 Message-ID: References: <13A38269-86D9-4E7A-87C1-C1512B657BD4@me.com> <7ab50daa-08d4-1b00-bc43-75c196f9d723@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: multipart/mixed; boundary="===============3509568274407639613==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="30913"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 17 00:57:05 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPDRR-0007xT-71 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 17 Apr 2020 00:57:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 48C28182AEA; Fri, 17 Apr 2020 00:56:38 +0200 (CEST) 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 ldlKc-cccTdZ; Fri, 17 Apr 2020 00:56:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6FB32182971; Fri, 17 Apr 2020 00:56:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 96975182971 for ; Fri, 17 Apr 2020 00:56:35 +0200 (CEST) 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 sXTVSXzlywC6 for ; Fri, 17 Apr 2020 00:56:34 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.46; helo=pv50p00im-zteg10021301.me.com; envelope-from=haksan@me.com; receiver= Original-Received: from pv50p00im-zteg10021301.me.com (pv50p00im-zteg10021301.me.com [17.58.6.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 541241827EC for ; Fri, 17 Apr 2020 00:56:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1587077792; bh=OQfBmk25qJp1Fg1pMy3OxoofKiB2W4dI+LgsfGtMqKQ=; h=From:Message-Id:Content-Type:Subject:Date:To; b=aRUumyaFOTaEd3RhQBjOjXhLjWuj1e9S87SNU6guSZ0pxtUGaQHg/mEB6vE7U4ij8 yOtk/i/8rMzeb8PT8iY3LQZ7vurc6dKtoQ93Svt0qJOU1jGufPHCMSwErxtW94x/1X KyMy6HrlxxcnxyY4dgvT22L2WOkkef9r3EQJmCYfz/9fb+EGcNdN1tA1RHjM2qsnQf n4uJJUuqMmrKTjG0ODcSWlkgrHPzq4+Hn4kbzZTs2xJKvVCwcoVhQixfNk65C/Rx+1 g+n661q8uq7fvAFVnKZljQqxE90tZfOaY3MsxiBH4Y6a5p4dZihBoZ80AjgrxQvF7h YaGhxQe/8ScIA== Original-Received: from [10.0.1.6] (unknown [222.232.154.22]) by pv50p00im-zteg10021301.me.com (Postfix) with ESMTPSA id 43B4E5805DE; Thu, 16 Apr 2020 22:56:27 +0000 (UTC) In-Reply-To: <7ab50daa-08d4-1b00-bc43-75c196f9d723@xs4all.nl> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-04-16_10:2020-04-14, 2020-04-16 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2002250000 definitions=main-2004160158 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.io gmane.comp.tex.context:106903 Archived-At: --===============3509568274407639613== Content-Type: multipart/alternative; boundary="Apple-Mail=_90BFA39B-4CBC-41F3-ADD7-98C02A4EA87F" --Apple-Mail=_90BFA39B-4CBC-41F3-ADD7-98C02A4EA87F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Hans, Thank you for the reply. Since \startMPcode =E2=80=A6 \stopMPcode form is used in the manual, I = think that it is OK to use it for all cases. Thank you again. Best regards, Dalyoung > 2020. 4. 17. =EC=98=A4=EC=A0=84 5:01, Hans Hagen = =EC=9E=91=EC=84=B1: >=20 > On 4/16/2020 8:36 PM, Jeong Dal wrote: >> Hi, >> The following sample code is working well in the \startMPpage ~ = \stopMPpage, but is not working in the \startMPcode ~ \stopMPcode. >> The error message is >> \textfont0 is undefined (character 63) >> l.6 \setstrut\strut $A$ >> If I remove =E2=80=9C$=E2=80=9D from the code, it is also working in = \startMPcode ~ \stopMPcode. >> Is there anything which I have to set for \startMPcode? >=20 > \starttext ... \stoptext >=20 > or >=20 > \startMPpage[instance=3Ddoublefun] >=20 > \stopMPpage >=20 >> Best regards, >> Dalyoung >> %%%%%%%% >> \startMPcode{doublefun} >> %\startMPpage >> numeric count, temp[], tt, minus, u; u :=3D 1cm; >> path p,q,r; >> pair A,B,C,D; >> string varName, ss, pos[]; >> p :=3D unitsquare xyscaled (8u,3.5u); >> *draw p;* >> * >> * >> pos[0] :=3D "bot"; >> pos[1] :=3D "rt"; >> pos[2] :=3D "top"; >> pos[3] :=3D "lft"; >> varName :=3D "yxwz"; >> count :=3D 0; >> pickup pencircle scaled 5pt; >> for i =3D 0 upto 3: >> drawdot (point i of p); >> draw lmt_text[ >> text =3D "$" & char(65+i) & "$", >> anchor =3D pos[i], >> offset =3D 2pt, >> position =3D point i of p, >> ]; >> endfor; >> %\stopMPpage >> \stopMPcode >> = __________________________________________________________________________= _________ >> 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 >> = __________________________________________________________________________= _________ >=20 >=20 > --=20 >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl = | www.pragma-pod.nl = > ----------------------------------------------------------------- --Apple-Mail=_90BFA39B-4CBC-41F3-ADD7-98C02A4EA87F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = Hans,

Thank you for = the reply.
Since  \startMPcode =E2=80=A6 = \stopMPcode form is used in the manual, I think that it is OK to use it = for all cases.

Thank you again.

Best regards,

Dalyoung


2020. 4. = 17. =EC=98=A4=EC=A0=84 5:01, Hans Hagen <j.hagen@xs4all.nl> = =EC=9E=91=EC=84=B1:

On 4/16/2020 8:36 PM, Jeong Dal wrote:
Hi,
The following = sample code is working well in the \startMPpage ~ \stopMPpage, but is = not working in the \startMPcode ~ \stopMPcode.
The error = message is
\textfont0 is undefined (character 63)
l.6 \setstrut\strut $A$
If I remove =E2=80=9C$=E2= =80=9D from the code, it is also working in \startMPcode ~ = \stopMPcode.
Is there anything which I have to set for = \startMPcode?

\starttext = ... \stoptext

or

\startMPpage[instance=3Ddoublefun]

\stopMPpage

Best = regards,
Dalyoung
%%%%%%%%
\startMPcode{doublefun}
%\startMPpage
numeric count, temp[], tt, minus, u; u :=3D 1cm;
path p,q,r;
pair A,B,C,D;
string = varName, ss, pos[];
p :=3D unitsquare xyscaled = (8u,3.5u);
*draw p;*
*
*
pos[0] :=3D "bot";
pos[1] :=3D "rt";
pos[2] :=3D "top";
pos[3] :=3D "lft";
varName :=3D "yxwz";
count :=3D 0;
pickup pencircle scaled 5pt;
for i =3D 0 upto = 3:
drawdot (point i of p);
draw lmt_text[
text =3D "$" & char(65+i) & "$",
anchor = =3D pos[i],
offset =3D 2pt,
position =3D = point i of p,
];
endfor;
%\stopMPpage
\stopMPcode
_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________


-- 
---------------------------------------------------------------= --
          &nb= sp;            = ;            &= nbsp;     Hans Hagen | PRAGMA ADE
          &nb= sp;  Ridderstraat 27 | 8061 GH Hasselt | The = Netherlands
      tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
---------------------------------------------------------------= --

= --Apple-Mail=_90BFA39B-4CBC-41F3-ADD7-98C02A4EA87F-- --===============3509568274407639613== 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== --===============3509568274407639613==--