From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Metafun "Structure-Trees"
Date: Mon, 18 Sep 2017 11:42:45 +0200 [thread overview]
Message-ID: <CAG5iGsCMpiWgVT4oMiTVLALUn8QuLAJSyRYt08ZoqeC4ODfYrA@mail.gmail.com> (raw)
In-Reply-To: <86b40986-ee14-0470-7f62-e14fcadc0139@wxs.nl>
On Mon, Sep 18, 2017 at 10:57 AM, Hans Hagen <pragma@wxs.nl> wrote:
> On 9/18/2017 10:25 AM, Ursula Hermann wrote:
>>
>> Hello!
>>
>> I have tried an example:
>>
>> 1 \starttext
>> 2 This is me
>> 3 \startMPcode
>> 4 u:=0.4cm;
>> 5 dirlabel:=90;
>> 6 abscoord:=true;
>> 7 endlabelspace:=0.5cm;
>> 8 draw startlable ("S")
>> 9 draw tree[1][1]((-5.5u,4u)(5.5u,8u)) ("NP","","VP",""]
>> 10 \stopMPcode
>> 11 \stoptext
>>
>> but there is somethin wrong, because the mistake says:
>
> Where does that example come from? How is startlable (or maybe startlabel)
> defined?
there is a startlabel macro
texmf-dist/metapost/mptrees/mptrees.mp
of the 2017 TeXLive
Supposing to compile with the TeXLive enabled,
this code works:
\starttext
This is me
\startMPcode
input mptrees;
u:=0.4cm;
dirlabel:=90;
abscoord:=true;
endlabelspace:=0.5cm;
draw startlabel("$S$");
draw tree[1][1]((-5.5u,4u),(5.5u,8u))("NP","","VP","");
\stopMPcode
\stoptext
--
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2017-09-18 9:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-13 10:43 Ursula Hermann
2017-09-13 18:26 ` Alan Braslau
2017-09-14 7:47 ` Ursula Hermann
2017-09-18 8:25 ` Ursula Hermann
2017-09-18 8:57 ` Hans Hagen
2017-09-18 9:42 ` luigi scarso [this message]
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=CAG5iGsCMpiWgVT4oMiTVLALUn8QuLAJSyRYt08ZoqeC4ODfYrA@mail.gmail.com \
--to=luigi.scarso@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).