This tool can help you create beautiful genealogy tree diagrams.
- LuaLaTeX
- genealogytree package (code at https://github.com/T-F-S/genealogytree)
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.
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
).
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):
- 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.
- 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
- How do I help LaTeX with hyphenating?
In custom-head
use this code:
\hyphenation{Spe-cial-town-name}