已编辑(在@Torbjørn 评论之后):我想 通过父母联系d
并在一起。我该怎么做?c
a
\documentclass{article}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
\genealogytree[template=signpost]{
parent
{
g[id=b]{b}
parent
{
g[id=c]{c}
parent
{
g{k}
}
parent
{
g[id=a]{a}
}
}
parent
{
g[id=d]{d}
}
}
}
\draw[green] (a)|-(d);
\end{tikzpicture}
\end{document}
答案1
这应该足够了
平均能量损失
\documentclass{standalone}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
\genealogytree[template=signpost,
highlight/.style={pivot,box={colback=yellow!20,no shadow,fuzzy halo}}
]{
child{ g{k} p{a}
child{g{c} g{d}
c{b}}}}
\end{document}
编辑
按照父级配置进行配置
\documentclass{standalone}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
\genealogytree[template=signpost,
highlight/.style={pivot,box={colback=yellow!20,no shadow,fuzzy halo}}
]{
parent{ g{b}
parent{ g{c} g{d} p{k} p{a} }
}
}
\end{tikzpicture}
\end{document}
编辑2
为了达到对称目的,添加幻影节点 平均能量损失
\documentclass{standalone}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
\genealogytree[template=signpost,
highlight/.style={pivot,box={colback=yellow!20,no shadow,fuzzy halo}}
]{
parent{ c[phantom]{b} g{bb}
parent{ g{c} g{d} p{k} p{a} }
}
}
\end{tikzpicture}
\end{document}