在浏览 genealogytree 包时,我找不到箭头这样的线条样式。我不知道在 genealogytree 选项中传递键的想法。这是一个 MWE
\documentclass{article}
\usepackage[all]{genealogytree}
\tcbset{male/.style={colframe=red,sharp corners},female/.style={colframe=blue,rounded corners}}
\begin{document}
\begin{tikzpicture}
\genealogytree[template=signpost,male={red},female={blue}]{ parent{
g[male]{first child}
c[female]{second child}
c[female]{third child}
p[male]{father}
p[female]{mother}
}}
\end{tikzpicture}
\end{document}
答案1
下面是在黄色背景上将边缘绘制为蓝色箭头的示例:
\documentclass{article}
\usepackage[all]{genealogytree}
\tcbset{male/.style={colframe=red,sharp corners},female/.style={colframe=blue,rounded corners}}
\begin{document}
\begin{tikzpicture}
\genealogytree[
template=signpost,
male={red},
female={blue},
edges={foreground={blue, thick,->},background={yellow, very thick}}
]{ parent{
g[male]{first child}
c[female]{second child}
c[female]{third child}
p[male]{father}
p[female]{mother}
}}
\end{tikzpicture}
\end{document}
请查看手册的第 8.3 节。