0

I would like the dashed and solid edges into the "Wife box" to enter the other way around to avoid intersections.

\documentclass{article}
\usepackage[all]{genealogytree}             
\begin{document}
\gtrset{
    level 0/.style={level distance = 5mm},
    dashed/.style={family edges={foreground={black,very thick,dashed},xshift=-1cm}}
}
\begin{tikzpicture} 
\genealogytree[timeflow = right,box={height=5mm,width=25mm,halign=center}]{ % 
    child{
        union[dashed]{
                p[male,tikz={yshift=5mm}] {  A.N.Other }
                    c[female,tikz={yshift=2mm}] {  Out of wedlock }
            }
        g[female] {  Wife }
        p[male] {  Husband}
                    c[male] {  Child of marriage }
    }
   }
\end{tikzpicture}
\end{document}
dexteritas
  • 9,161
dfg
  • 1

1 Answers1

0
%The trick is to include a second "union" command
    \documentclass{article}
\usepackage[all]{genealogytree}             
\begin{document}
\gtrset{
    level 0/.style={level distance = 5mm},
    dashed/.style={family edges={foreground={black,very thick,dashed},xshift=-1cm}}
}

\subsection*{Original layout}

\begin{tikzpicture} 
\genealogytree[timeflow = right,box={height=5mm,width=25mm,halign=center}]{ % 
    child{
        union[dashed]{
                p[male,tikz={yshift=5mm}] {  A.N.Other }
                    c[female,tikz={yshift=2mm}] {  Out of wedlock }
            }
        g[female] {  Wife }
        p[male] {  Husband}
                    c[male] {  Child of marriage }
    }
   }
\end{tikzpicture}

\subsection*{Layout with second union command}
\begin{tikzpicture} 
\genealogytree[timeflow = right,box={height=5mm,width=25mm,halign=center}]{ % 
    child{
        union[dashed]{
                p[male,tikz={yshift=5mm}] {  A.N.Other }
                    c[female,tikz={yshift=2mm}] {  Out of wedlock }
            }
        g[female] {  Wife }
    union{
        p[male] {  Husband}
                    c[male] {  Child of marriage }
    }
    }
   }
\end{tikzpicture}

\end{document}

Original & corrected output

dfg
  • 1