I started a Family tree using the genealogytree package. The tree starts from the bottom (from me) and goes up. However, my (maternal) grand-grand-father and my (maternal) grand-grand-mother share the same (paternal) grand-grand-father, who is my 5th grand-father, which means there is a cycle.
When I try to draw the Family tree it looks like this:
The person in the top is the same, but appears twice. is there any way how I can merge both entries into one entry so the person appears only once?
This is the code I used to generate the family tree:
\documentclass[]{standalone}
\usepackage[all]{genealogytree}
\begin{document}
\begin{genealogypicture}
[template=database portrait]
parent[]{
g[id=Said1990]{
male,
name = {\pref{Sa\"{i}d} \surn{Maanan}},
birth= {1990}{},
}
c[id=Ahmed1992]{
male,
name = {\pref{Ahmed} \surn{Maanan}},
birth= {1992}{},
}
parent{
g[id=Fatima1962]{
female,
name = {\pref{Fatima} \surn{Dasser}},
birth= {1962}{},
}
parent{
g[id=Kelt1938]{
female,
name = {\pref{Keltoum} \surn{Akheshkhush}},
birth= {1938}{},
}
parent{
g[id=Zah]{
female,
name = {\pref{Zahra} \surn{A\"{i}t Lmoudden}},
birth= {}{},
}
parent{
g[id=Fad]{
female,
name = {\pref{Fadma} \surn{A\"{i}t Oulidi}},
birth= {}{},
}
parent{
g[id=Bihi]{
male,
name = {\pref{Bihi} \surn{A\"{i}t Oulidi}},
birth= {}{},
}
}
}
parent{
g[id=SiH]{
male,
name = {\pref{Si Hmed} \surn{A\"{i}t Lmoudden}},
birth= {}{},
}
parent{
g[id=Mhen]{
male,
name = {\pref{Mhend} \surn{A\"{i}t Lmoudden}},
birth={}{},
}
parent{
g[id=abdellah]{
male,
name = {\pref{Abdellah} \surn{A\"{i}t Lmoudden}},
birth= {}{},
}
}
}
}
}
parent{
g[id=Brah]{
male,
name = {\pref{Brahim} \surn{Akheshkhush}},
birth= {}{},
}
parent{
g[id=Mhe]{
male,
name = {\pref{Mhend} \surn{A\"{i}t Lmoudden}},
birth= {}{},
}
parent{
g[id=ali]{
male,
name = {\pref{Ali} \surn{A\"{i}t Lmoudden}},
birth= {}{},
}
parent{
g[id=abdellah]{
male,
name = {\pref{Abdellah} \surn{A\"{i}t Lmoudden}},
birth= {}{},
}
}
}
}
parent{
g[id=ija]{
female,
name = {\pref{Ijja} \surn{N'A\"{i}t Tamr}},
birth= {}{},
}
}
}
}
parent{
g[id=Hmed1914]{
male,
name = {\pref{Ahmed} \surn{Dasser}},
birth= {1914}{},
}
}
}
parent{
g[id=Mohamed1947]{
male,
name = {\pref{Mohammed} \surn{Maanan}},
birth={1947}{},
}
}
}
\end{genealogypicture}
\end{document}