Dear Matthias,
You can inspect
".../texmf-context/metapost/context/base/mpxl/metafun.mpxl".
where you will find that mp-node.mpxl is included in metafun.mpxl.
Since metafun is out-of-the-box, mp-node is offered immediately.
However, to run the excerpt of MetaPost, you are required to finish
following steps.
First, Macros `\node` and `\nodesmall` are to be defined in the given
example.
Second, `clearnodepath` is merely `save nodepath; path nodepath`.
```
\starttext
\defineframed [node] [frame=off, offset=1pt]
\defineframed [nodeSmall] [node] [foregroundstyle=small]
\startMPcode
path p ; p := fullsquare scaled 3cm ;
clearnodepath ;
nodepath = p ;
draw node(0,"\node{$G(X)$}") ;
draw node(1,"\node{$G(Y)$}") ;
draw node(2,"\node{$F(Y)$}") ;
draw node(3,"\node{$F(X)$}") ;
drawarrow fromto.bot(0,0,1, "\nodeSmall{$G(f)$}") ;
drawarrow fromto.top(0,3,2, "\nodeSmall{$F(f)$}") ;
drawarrow fromto.rt (0,2,1, "\nodeSmall{$η_Y$}") ;
drawarrow fromto.lft(0,3,0, "\nodeSmall{$η_X$}") ;
\stopMPcode
\stoptext
```
I hope it would be of some help.
Scerac.
--
北風其涼、雨雪其雱
___________________________________________________________________________________
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
___________________________________________________________________________________