如何將譜系樹中的線條樣式變更為箭頭?

如何將譜系樹中的線條樣式變更為箭頭?

在瀏覽包譜樹時,我無法找到箭頭形式的線條樣式。我不知道在家譜樹選項中傳遞密鑰的想法。這是一個 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 節。

相關內容