On Sun, 10 May 2026, Jim via ntg-context wrote:
> At https://github.com/Ndolam/Graphic there is a Qt5-based tool which lets
> you create graph drawings of a number of built-in graph types, and lets you
> edit those as well as combine smaller drawings into larger ones. One of
> its export formats is ConTeXt-style TikZ.
>
> [...]
>
> A PDF (and .tex file) showing three of the built-in graph types is
> attached.
>From one of the examples:
\placefigure[nonumber]{A (3,3) Dutch windmill}{
\starttikzpicture[x=1in, y=1in, xscale=1, yscale=1,
n/.style={fill=white, draw=black, shape=circle,
minimum size=0.2in, inner sep=0, font={\switchtobodyfont[12pt]},
line width=0.0061in},
e/.style={draw=black, line width=0.0061in},
l/.style={font={\switchtobodyfont[12pt]}}]
\node (v0) at (-0.5117,0.0000) [n] {$$};
\node (v1) at (-0.3883,1.5588) [n] {$$};
\node (v2) at (-0.9000,0.6726) [n] {$$};
\node (v3) at (0.9000,0.6726) [n] {$$};
\node (v4) at (0.3883,1.5588) [n] {$$};
\node (v5) at (0.0000,0.7438) [n] {$$};
\node (v6) at (0.5117,0.0000) [n] {$$};
\path (v0) edge[e] node[l] {$$} (v2);
\path (v0) edge[e] node[l] {$$} (v5);
\path (v1) edge[e] node[l] {$$} (v4);
\path (v1) edge[e] node[l] {$$} (v5);
\path (v2) edge[e] node[l] {$$} (v5);
\path (v3) edge[e] node[l] {$$} (v6);
\path (v3) edge[e] node[l] {$$} (v5);
\path (v4) edge[e] node[l] {$$} (v5);
\path (v6) edge[e] node[l] {$$} (v5);
\stoptikzpicture
}
Note that
\placefigure[..]{...}{
\starttikzpicture
...
\stoptikzpicture
}
will introduce a spurious space: Better to use
\placefigure[..]{...}{%
\starttikzpicture
...
\stoptikzpicture
}
or
\placefigure[..]{...}
{\starttikzpicture
...
\stoptikzpicture}
Plus, I am surprised that
\path (v0) edge[e] node[l] {$$} (v2);
actually compiles!
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________