有人能给我提示一下如何画出以下没有边交点的情况(3 次婚姻)吗?示例取自手动的,第 233 页。
答案1
\documentclass{article}
\usepackage[all]{genealogytree}
\usepackage{tikz}
\usetikzlibrary{calc, positioning}
\begin{document}
\begin{genealogypicture}[template=signpost,
after tree={
\draw[red,ultra thick](wife)--++(0,-1)-|(hus2);
\draw[blue,ultra thick]($(wife.south)+(-0.3,0)$)--++(0,-0.5)-|(hus3);
}]
child[edges down by=2 of 4]{
p{Husband1}
g[id=wife]{Wife} c{Child1} c{Child2} c{Child3} c{Child4}
union[edges up by=1 of 4]{ p[disconnect, id=hus2]{Husband2} }
union[edges up by=1 of 4]{ p[disconnect, id=hus3]{Husband3} }
}
\end{genealogypicture}
\end{document}