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: Command Line: context.exe --synctex=-1 "graphic.tex" Startup Folder: D:\My Documents mtx-context | run 1: luatex --fmt="C:/Users/Ursula/.texlive2017/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en" --jobname="graphic" --lua="C:/Users/Ursula/.texlive2017/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui" --no-parse-first-line --synctex=-1 --c:currentrun=1 --c:directives="system.synctex=-1" --c:fulljobname="./graphic.tex" --c:input="./graphic.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" "cont-yes.mkiv" This is LuaTeX, Version 1.0.4 (TeX Live 2017/W32TeX) system commands enabled. system > synctex functionality is enabled (-1), expect runtime overhead! open source > level 1, order 1, name 'C:/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2017.05.15 21:48 MKIV beta fmt: 2017.8.8 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name 'C:/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' close source > level 2, order 2, name 'C:/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'graphic', input './graphic', result 'graphic' fonts > latin modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled (-1), expect runtime overhead! open source > level 2, order 3, name 'D:/My Documents/graphic.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded metapost > initializing instance 'metafun' using format 'metafun' metapost > loading 'metafun' as 'C:/texlive/2017/texmf-dist/metapost/context/base/mpiv/metafun.mpiv' using method 'default' metapost > initializing number mode 'scaled' tex error > mp error on line 10 in file D:/My Documents/graphic.tex: >> abscoord >> true ! Equation cannot be performed (numeric=boolean). <to be read again> ; <*> u:=0.4cm; dirlabel:=90; abscoord:=true; endlabelspace:=0.5cm; draw start... I'm sorry, but I don't know how to make such things equal. (See the two expressions just above the error message.) >> startlable ! Improper `addto'. <to be read again> withpen draw->...:also(EXPR0)else:doublepath(EXPR0)withpen .currentpen.fi._op_ <to be read again> ( <*> ...ue; endlabelspace:=0.5cm; draw startlable ( "S") draw tree[1][1]((-5.5... This expression should have specified a known path. So I'll not change anything just now. ! Extra tokens will be flushed. <to be read again> ( <*> ...ue; endlabelspace:=0.5cm; draw startlable ( "S") draw tree[1][1]((-5.5... I've just read as much of that statement as I could fathom, so a semicolon should have been next. It's very puzzling... but I'll try to get myself back together, by ignoring everything up to the next `;'. Please insert a semicolon now in front of anything that you don't want me to delete. (See Chapter 27 of The METAFONTbook for an example.) [1] 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 12 ? -----Ursprüngliche Nachricht----- Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula Hermann Gesendet: Donnerstag, 14. September 2017 09:47 An: 'mailing list for ConTeXt users' Betreff: Re: [NTG-context] Metafun "Structure-Trees" Hallo! I have put a Document here. It is an PDF with 2 Pages. Can one look at the Trees and tell me how i can do this with Metapost? Thank you -----Ursprüngliche Nachricht----- Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Alan Braslau Gesendet: Mittwoch, 13. September 2017 20:26 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Metafun "Structure-Trees" What exactly do you mean? (we can build tree diagrams with Metapost) Alan > On 13 Sep 2017, at 12:43, Ursula Hermann <ursula.herm...@univie.ac.at> wrote: > > Hello! > > My question is: Is it possible to make „Structure Trees“ for English > Sentences with „Categorial Grammar“? Sorry, I have no example. > > Thanks > > Uschi Hermann > ______________________________________________________________________ > _____________ 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 > ______________________________________________________________________ > _____________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________