From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106898 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: \startMPcode and \startMPpage Date: Fri, 17 Apr 2020 03:36:07 +0900 Message-ID: <13A38269-86D9-4E7A-87C1-C1512B657BD4@me.com> 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="===============6348904372513243161==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="90444"; mail-complaints-to="usenet@ciao.gmane.io" To: "list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 16 20:36:59 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 1jP9Nj-000NSZ-Ku for gctc-ntg-context-518@m.gmane-mx.org; Thu, 16 Apr 2020 20:36:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7DF62181EB5; Thu, 16 Apr 2020 20:36:19 +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 oEfglWGCAYvS; Thu, 16 Apr 2020 20:36:18 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9AA1F182761; Thu, 16 Apr 2020 20:36:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7DA90182761 for ; Thu, 16 Apr 2020 20:36:17 +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 20Xv-5ywc4Dh for ; Thu, 16 Apr 2020 20:36:16 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.44; helo=pv50p00im-ztdg10021101.me.com; envelope-from=haksan@me.com; receiver= Original-Received: from pv50p00im-ztdg10021101.me.com (pv50p00im-ztdg10021101.me.com [17.58.6.44]) (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 03DCD181EB5 for ; Thu, 16 Apr 2020 20:36:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1587062174; bh=h3XMm6RzOn8xKTr8iGfzlmzyolJXl2YKZ8oP+8MAUZ8=; h=From:Content-Type:Subject:Message-Id:Date:To; b=NiKlIP3pVEaAXNWc/YdDQ/zz9Zsv4Tqke2q+j9yEaFka4x2w5aP3lLalQfVxn8ixK DjxwWMXaDaRpbwdZkLS7QJrAfKREW19PfMCl6XfNEU3T1EtY7iqoAg3jhlnauskDr4 HqQO48H1F1j7D2clmu+CGBdeyvNkiDzFhEDNjkAOwDP/hjQkZR9TD52MXWsNe2/xWK vo+GosrHeOvrFHWCR0IBA5sov2y2avZXmHnxwzUVIHJjtul/MPQMdpU3MPlv0QOOFK ZJ6t/m0MTRpiCJRGwAR891SgXBA67MsGZmLa0HoBCgXNa2D+q/hrU8iIAa+xxIHrXi weClDbnSFVyAg== Original-Received: from [10.0.1.6] (unknown [222.232.154.22]) by pv50p00im-ztdg10021101.me.com (Postfix) with ESMTPSA id 9E9421807E3 for ; Thu, 16 Apr 2020 18:36:10 +0000 (UTC) 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_08: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=811 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2002250000 definitions=main-2004160131 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:106898 Archived-At: --===============6348904372513243161== Content-Type: multipart/alternative; boundary="Apple-Mail=_4CAA3AF7-8495-4361-8183-2B492D49D122" --Apple-Mail=_4CAA3AF7-8495-4361-8183-2B492D49D122 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, The following sample code is working well in the \startMPpage ~ = \stopMPpage, but is not working in the \startMPcode ~ \stopMPcode. The error message is=20 \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? 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:=20 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, =20 ]; endfor; %\stopMPpage \stopMPcode --Apple-Mail=_4CAA3AF7-8495-4361-8183-2B492D49D122 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
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?

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


= --Apple-Mail=_4CAA3AF7-8495-4361-8183-2B492D49D122-- --===============6348904372513243161== 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== --===============6348904372513243161==--