The documentation for genealogytree says in section 7.1 (Database Concept):

The content producer could be a human person directly, but more presumably a machine like a genealogy program. The node content is written as a comma separated key-value list. This list is processed and its content formatted by a database processor.

But are there any examples of code for genealogy programs to output in a format suitable for genealogytree? I have used genealogytree several times and have really liked the output, but only with handwritten input. Now when I want to use data from a GEDCOM file (the most usual format for exchanging genealogical data) I thought that I remembered some (experimental?) code for importing data from a GEDCOM file that came with genealogytree, but it seems like I remember wrong (or it is no longer there).


Well, there is no program I know of that you could use (currently).

For private use, I do have a such a program which outputs genealogytree compatible code, but it is not based on GEDCOM and not suitable for publication. But you may take this information as proof of concept that an automatism could work, even if I know that this must be frustrating.

I strongly believe that there should be some software in future that transforms a GEDCOM file (with some selected proband) into genealogytree source code. I see the following paths:

  • Direct export out of a genealogy program. I had the (weak) hope that some author would implement such an export module into his/her software (hey, I can use this free tree drawing for my software), but I do not know of any yet.

  • Implementation of gedcom2latex as student thesis. Well, I did not find a student yet who is willing to do it (and provide the result as freeware or open source).

  • Implementation of gedcom2latex by you or anybody else who thinks: why does this tool not exist?

  • Implementation of gedcom2latex by myself. Actually, I don't need it, because I have my private solution, but I'm tempted to do it for eternal glory ;-) I did not have enough time to follow this path yet...

There in an open-source GEDCOM parser http://gedcom4j.org which could be used for gedcom2latex to build an internal tree which is to be exported as genealogytree source...

| improve this answer | |
  • Thanks! I only mentioned GEDCOM, but actually I use Gramps, and if I made something myself for my own needs that would be only for Gramps XML files. I have only looked very cursory on how they look, but it looks like it wouldn't be very hard. (Maybe just a sentence about the situation would be good in the documentation. Like "At the time of writing no such publicly available programs are known.") – pst Jul 7 '17 at 8:59

The OpenSource tool generations offers export to genealogytree compatible code with options like limiting the generations to consider or the type of data to include (no middlenames? sure! no dates of divorces? as you like! no images? your choice!). You can change the LaTeX templates used to create the output you need.

The database is a yml file, no GEDCOM support yet (but would technically be possible to develop).

Example for a single database entry:

- id: PachGerd1954
  gender: male
    - Gerd
    last: Pachowski
    date: "1954-07-04"
    place: Bottrop
  mom: PachGise1921
  dad: PachDiet1919
  - partner_id: "GöhlMela1954"
      date: "1975-07-01"
      date: "1990-03-09"

Generated genealogytree database entry:

    sex = male,
    name = {%
            \pref{Gerd}\ %
    birth = {1954-07-04}{Bottrop},
        marriage- = {1975-07-01},
        divorce- = {1990-03-09},

Feedback and MRs are welcome!

Disclaimer: I am the author of generations.

| improve this answer | |
  • Please include an example showing how your tool outputs compatible code. – TeXnician Nov 17 '18 at 12:57

As of the recently released version 4.2.7 Gramps has a new genealogytree report category which makes pdfs using genealogytree. It doesn't use all features of genealogytree, but you can take the generated LaTeX file and modify it.

| improve this answer | |
  • I was looking around for the LaTeX file accompanying the exported PDF but could not find it. Could you please post a hint how you intercepted it while exporting the report? I am using Gramps on Windows 10 if it is of any help... – sophros Jun 3 '18 at 7:08
  • @sophros Actually I've used a prerelease of this functionality. And then when a Gramps was released that had this I thought it was time to mention that here, but I've kept using the prerelease. – pst Jun 4 '18 at 6:59
  • I see. Now, could you please elaborate how to intercept the LaTeX file in the process of generation of the PDF? – sophros Jun 4 '18 at 15:08
  • There is a choice for format where you choose between "PDF" and "LaTeX file". – pst Nov 17 '18 at 14:41

I've been using Gramps for a while, despite its horrendously unusable user interface, simply because it seems to be relatively stable. I poked around in the menus but I couldn't find anything resembling a genealogytree report — is this a plugin or optional extra from someone?

So...I am thinking of starting work on an XSLT script to take the XML output of Gramps and generate the genealogytree file from that, instead of from GEDCOM data.

All suggestions to me by email rather than here.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.