I'm building a family tree using the genealogytree
package, and I have bumped into a small problem. Perhaps this is a bug, or there is a workaround.
The grandfather of c3 had three wives. c3 is a descendant of the child (c1) of the third wife (bb1). I want to draw a path connecting the great grandfather (a1) to c3.
Here's an MWE:
\documentclass[]{standalone}
\usepackage[all]{genealogytree}
\begin{document}
\begin{genealogypicture}[
template=formal graph,
extra edges prepend for families={
x={famA}{a1}{b1},
x={famB}{b1}{c1},
x={famC}{c1}{c3},
}{
foreground={red!25!yellow,line width=5pt},no background}
]
child[id=famA]{%
g[id=a1]{a1}
p[id=a2]{a2}
child[id=famB]{%
g[id=b1]{b1}
p[id=b2]{b2}
c[id=b3]{b3}
union[id=famBa]{%
p[id=ba1]{ba1}
c[id=ba2]{ba2}
}
union[id=famBb]{%
p[id=bb1]{bb1}
child[id=famC]{%
g[id=c1]{c1}
p[id=c2]{c2}
c[id=c3]{c3}
}
}
}
}
\end{genealogypicture}
\end{document}
The problem is along the path x={famB}{b1}{c1}
, the yellow line connects to c1 along the wrong path. Is there a way to fix this, or is it a bug?
x={famB}{b1}{c1}
as @pst wrote. But, maybe, rearranging like @cfr did is also an alternative for you. – Thomas F. Sturm Oct 23 '15 at 7:12