![是否可以构建“genealogytree”命令来构建至第 7 代?](https://linux22.com/image/470656/%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E6%9E%84%E5%BB%BA%E2%80%9Cgenealogytree%E2%80%9D%E5%91%BD%E4%BB%A4%E6%9D%A5%E6%9E%84%E5%BB%BA%E8%87%B3%E7%AC%AC%207%20%E4%BB%A3%EF%BC%9F.png)
我非常清楚这parent{}
有很大帮助,但是它不允许我添加叔叔或阿姨的配偶,以及他们的孩子等。当然我可以创建很多genealogytree[]{}
,但它迫使我不断地改变xshift
位置,这很乏味。
只能child{}
提供帮助,但我不知道是否可以制作多个后缀。我知道如何child{}
用父亲和母亲的家谱制作,就像我在https://tex.stackexchange.com/a/466112/172831。
但我想添加我祖父的母系和父系的曾祖父母,以及我祖母的曾祖父母。我还想添加曾祖父母的母系和父系的父母,即我的第三次曾祖父母。
假设我有 8 位三世曾祖父母,10 位四世曾祖父母和五世曾祖父母,以及 8 位六世曾祖父母。
有可能genealogytree
吗child{}
?
我匆忙而愚蠢地复制粘贴了相同的代码,并改编了一个关于我祖母的家谱的小代码:
\documentclass[a4paper,landscape]{article}
\usepackage[top = 4.5cm, bottom = 4.5cm, left = 1cm, right = 1cm]{geometry}
\usepackage[all]{genealogytree}
\begin{document}
\resizebox{\textwidth}{!}
{
\begin{tikzpicture}
\genealogytree
[template = signpost, id suffix = @p ]
{
child
{
g[male]{paternal great-grandfather}
p[female]{paternal great-grandmother}
child
{
g[male]{paternal grandfather}
p[female id = diva ]{paternal grandmother}
child
{
g[male]{paternal uncle}
c[male]{cousin}
child
{
g[female]{cousin}
}
}
child
{
g[female]{paternal aunt}
c[male]{cousin}
child
{
g[female]{cousin}
}
}
child[phantom*]
{
g[male,id=father]{father}
p[female]{mother}
child
{
g[male]{brother}
c[male]{nephew}
child
{
g[female]{niece}
}
}
child
{
g{\textsc{ego}}
c[male]{son}
child
{
g[female]{daughter}
}
}
child
{
g[female]{sister}
c[male]{nephew}
child
{
g[female]{niece}
}
}
}
} % end of child: paternal grandparents
}
}
\genealogytree[template = signpost, id suffix = @m, set position = father@m at father@p]
{
child
{
g[male]{maternal grandfather}
p[female]{maternal grandmother}
child
{
p[male, id = father]{father}
g[female]{mother}
child
{
g[male]{brother}
c[male]{nephew}
child
{
g[female]{niece}
}
}
child
{
g{\textsc{ego}}
c[male]{son}
child
{
g[female]{daughter}
}
}
child
{
g[female]{sister}
c[male]{nephew}
child
{
g[female]{niece}
}
}
}
child
{
g[male]{maternal uncle}
c[male]{cousin}
c[female]{cousin}
}
child
{
g[female]{maternal aunt}
c[male]{cousin}
c[female]{cousin}
}
}
}
\genealogytree[template = signpost, id suffix = @d, set position = diva@d at diva@p]
{
child
{
g[male]{paternal great-grandfather}
p[female]{paternal great-grandmother}
child
{
g[female, id = diva]{paternal grandmother}
}
}
}
\end{tikzpicture}
}
\end{document}