* Nodes module for commutative diagrams etc
@ 2020-03-29 19:02 Weber, Matthias
2020-03-29 19:16 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Weber, Matthias @ 2020-03-29 19:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear list,
I need to typeset a handful of simple commutative diagrams like the one below, and I found the nodes manual by Alan that has exactly what I want.
But what is the incantation to load the module, or am I missing something else?
Thanks,
Matthias
\starttext
\startMPcode
path p ;
p := fullsquare scaled 3cm ;
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Nodes module for commutative diagrams etc
2020-03-29 19:02 Nodes module for commutative diagrams etc Weber, Matthias
@ 2020-03-29 19:16 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2020-03-29 19:16 UTC (permalink / raw)
To: mailing list for ConTeXt users, Weber, Matthias
Weber, Matthias schrieb am 29.03.2020 um 21:02:
> Dear list,
>
> I need to typeset a handful of simple commutative diagrams like the one below, and I found the nodes manual by Alan that has exactly what I want.
>
> But what is the incantation to load the module, or am I missing something else?
>
> Thanks,
>
> Matthias
>
> \starttext
> \startMPcode
> path p ;
> p := fullsquare scaled 3cm ;
> 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
The code is loaded by default but you have to change the \nodeSmall
command to \smallnode, I guess the command name has changed after the
manual was written.
@Alan: Even after this fix there is something wrong with the module
because I get no output from the MetaPost graphic while the TeX example
in the manual works.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-29 19:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-29 19:02 Nodes module for commutative diagrams etc Weber, Matthias
2020-03-29 19:16 ` Wolfgang Schuster
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).