You may want to take a look at the ConTeXt nodes module:
https://www.tug.org/TUGboat/tb39-1/tb121braslau-nodes.pdf
Alan
On Wed, 27 Nov 2019 15:42:43 +0000
Ursula Hermann
Hello everyone!
I have: \usemodule{tikz}
\starttext \starttikzpicture node {root} child {node {left}} child {node {right} child {node {child}} child {node {child}} } \stoptikzpicture \stoptext
Then after compiling I have the following mistake:
Command Line: context.exe --synctex=-1 "picture test.tex" Startup Folder: C:\Users\Hermann\Downloads\context-mswin\tex\texmf-context\doc\context\sources\general\manuals\nodes
resolvers | formats | executing runner 'run luametatex format': C:/Users/Hermann/Downloads/context-mswin/tex/texmf-mswin/bin/luametatex --jobname="picture test" --fmt=C:/Users/Hermann/Downloads/context-mswin/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=C:/Users/Hermann/Downloads/context-mswin/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./picture test.tex" --c:input="./picture test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" --c:texmfbinpath="C:/Users/Hermann/Downloads/context-mswin/tex/texmf-mswin/bin" This is LuaMetaTeX, Version 2.01.0 open source > level 1, order 1, name 'cont-yes.mkiv' system > system > ConTeXt ver: 2019.11.13 00:08 MKIV beta fmt: 2019.11.27 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source > level 2, order 2, name 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'picture test', input './picture test', result 'picture test' fonts > latin modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source > level 2, order 3, name './picture test.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded
tex error > tex error on line 5 in file ./picture test.tex: ! Undefined control sequence
l.5 \starttikzpicture
1 2 \usemodule{tikz} 3 4 \starttext 5 >> \starttikzpicture 6 node {root} 7 child {node {left}} 8 child {node {right} 9 child {node {child}} 10 child {node {child}} 11 } 12 \stoptikzpicture 13 \stoptext
The control sequence at the end of the top line of your error message was never \def'ed. You can just continue as I'll forget about whatever was undefined.
mtx-context | fatal error: return code: 1
_____________________________________________________________________
ConTeXt Compilation Report (Pages: 0)
Errors: 1 Warnings: 0 Bad Boxes: 0 What is the mistake here?
Many Thanks Uschi