ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Weber, Matthias" <matweber@indiana.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Nodes module for commutative diagrams etc
Date: Sun, 29 Mar 2020 19:02:49 +0000	[thread overview]
Message-ID: <E7FD1804-F2AB-4D45-98C2-FA59FDBB0A6A@indiana.edu> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2020-03-29 19:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-29 19:02 Weber, Matthias [this message]
2020-03-29 19:16 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E7FD1804-F2AB-4D45-98C2-FA59FDBB0A6A@indiana.edu \
    --to=matweber@indiana.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).