ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Jeong Dal <haksan@me.com>
Subject: Re: \startMPcode and \startMPpage
Date: Thu, 16 Apr 2020 22:01:45 +0200	[thread overview]
Message-ID: <7ab50daa-08d4-1b00-bc43-75c196f9d723@xs4all.nl> (raw)
In-Reply-To: <13A38269-86D9-4E7A-87C1-C1512B657BD4@me.com>

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 “$” 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=doublefun]

\stopMPpage

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


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2020-04-16 20:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16 18:36 Jeong Dal
2020-04-16 20:01 ` Hans Hagen [this message]
2020-04-16 22:56   ` Jeong Dal

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=7ab50daa-08d4-1b00-bc43-75c196f9d723@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=haksan@me.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).