jojomi / generations

Genealogytree generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generations

This tool can help you create beautiful genealogy tree diagrams.

Toolchain (What does it use?)

Installation (How do I get it?)

With a Go environment setup, you can just do this:

go get -u github.com/jojomi/generations/cmd

Make sure you have lualatex in your system's PATH, on Linux usually via TeXlive, on Windows via MikTeX. There is a package you might need to add, specifically texlive-pictures for the genealogytree code.

Usage (How do I use it?)

The schema for the database entries can be found in flat_person.go and models.go while the features of a document config is in cmd/database_config.go (with references to render_tree_options.go and render_person_options.go).

Examples (What does it look like?)

You can find an example database and a document config in the repository.

To render this, you execute:

generations --config-file example/config.yml
lualatex test.tex

The result should look like this (when converted to images):

page1

page2

(the real pdf)

FAQ

  1. What if I don't like LuaLaTeX?

You can compile with other TeX processors too, but you most likely will have to change the document template.

  1. How do I use Fraktur fonts?

Install ttf-unifraktur package, then in custom-head use this code:

\defaultfontfeatures{Ligatures=TeX}
\setmainfont{UnifrakturMaguntia}
\setsansfont{UnifrakturMaguntia}

More info: http://unifraktur.sourceforge.net/maguntia.html

  1. How do I help LaTeX with hyphenating?

In custom-head use this code:

\hyphenation{Spe-cial-town-name}

About

Genealogytree generator

License:GNU Affero General Public License v3.0


Languages

Language:Go 71.9%Language:TeX 21.3%Language:Smarty 6.0%Language:Shell 0.7%