Hi Angel,

On Mon, May 11, 2026 at 14:57 (+0200), Angel M Alganza wrote:

> 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).

The TikZ code created by Graphic is certainly tedious to create by hand,
which is one of the reasons for that tool's existence.  It may appear
complicated at first glance, but I don't think it is too complex.

> Do you think it could be used/adapted to such pedigree graphics?

I have no doubt TikZ can be used for that sort of thing.  If you google
        tikz examples pedigree chart
you will see some examples.  (I only looked at the first few, and none were
exactly like your diagrams, but that may only mean I didn't search hard
enough.)

In terms of the program I mentioned (Graphic), it isn't designed for
pedigree sorts of diagrams, and my gut tells me that adapting it to do such
diagrams would be a sufficiently large amount of work that it doesn't make
sense to try it; rather, a whole new program would probably be better.

Perhaps someone here will comment on how you can "easily" draw those
diagrams with MetaPost.

                                Jim
___________________________________________________________________________________
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