Hello, hello,

On Sun, May 10, 2026 at 02:55:57PM -0300, Jim via ntg-context wrote:

I don't know if there are many people on this list who need to draw graphs

I will/would sooner than later, since I'm migrating all of my old LaTeX
documents to ConTeXt.  I need to draw genetic pedigrees of two kinds.
The classic type to show trait inheritance, like those:

https://www.goodscience.com.au/wp-content/uploads/2020/04/generations-and-individuals-pedigree.jpg

https://www.advancesinfamilypracticenursing.com/cms/attachment/bdc69a1e-62c7-4686-ad0a-568deb15a14f/gr1_lrg.jpg

And another kind we use to study inbreeding, like those:

http://messybeast.com/images/coefficients-of-inbreeding.jpg

The second kind I made using the LaTeX package xymatrix, like so:

        \begin{displaymath}
        \xymatrix{A \ar[d] \ar[drr]  && B \ar[d] \ar[dll] \\
                C \ar[dr] && D \ar[dl] \\
                & X & }
        \end{displaymath}

Which is easy and simple to use for that purpose.

But for the classic type, I haven't been able to find a solution yet,
not even for LaTeX.

At https://github.com/Ndolam/Graphic
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.

This sounds promissing, although the syntaxt to define the graphics
looks like a bit too complicated (to me).  Do you think it could be
used/adapted to such pedigree graphics?

Regards,
Ángel
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to