我想为下面显示的家谱中的叔叔添加一位妻子,并添加他们的孩子(自己的堂兄)。虽然这看起来是一项非常简单的任务,但我一直努力却没有成功。
我的MWE代码如下:
\documentclass{article}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
\genealogytree[template=signpost,
highlight/.style={pivot,box={colback=yellow!20,no shadow,fuzzy halo}}
]{
parent{
g[female]{sister}
c[highlight,male]{Self}
c[male]{brother}
c[female]{sister}
parent{
c[male]{uncle}
g[highlight,male]{father}
parent
{
g[highlight,male]{grandfather}
p[highlight,male]{great grandfather}
p[female]{great grandmother}
}
parent{
g[female]{grandmother}
}
}
parent
{
g[female]{mother}
}
}
}
\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{ggf} p{ggm}
child{ g{gf} p{gm}
child{ g{father}p{mother}
c{sister}c{self}c{brother}c{sister}}
child{ g{uncle}p{uncle wife}
c{child1}c{child2}c{child3}}}}}
\end{tikzpicture}
\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}}
]{
child{ g[male, highlight]{great gramps} p[female]{great grandma}
child{ g[male, highlight]{gramps} p[female]{grandma}
child{ g[male, highlight]{father}p[female]{mother}
c[female]{sister}c[male, highlight]{self}c[male]{brother}c[female]{sister}}
child{ g[male]{uncle}p[female]{uncle wife}
c[male]{cousin1}c[male]{cousin2}c[female]{cousin3}}}}}
\end{tikzpicture}
\end{document}