Genealogytree: 최소 모래시계 예제

Genealogytree: 최소 모래시계 예제

genealogytree 패키지와 문서 파일에 문제가 있습니다.CTAN에서 발견복잡한 것 같습니다.

누군가 나에게 모래시계 그래프(두 부모를 공유하고 각각 자녀를 갖는 두 형제)의 최소한의 예를 줄 수 있습니까?

답변1

\documentclass{article}
\usepackage[all]{genealogytree}
\begin{document}

\section{A rendition of the desired result}
minimal example of a sand clock graph \\two siblings \textbf{sonA, daughterB} \\sharing two parents \textbf{father, mother} \\and each having a child \textbf{sonA1, daughterA2, daughterB1, daughterB2}
\section{Things to keep in mind}
sandclock must have a \textbf{child} node\\there can be a \textbf{mix} of child and parent nodes\\every node with prefix \textbf{g, p} will render in the same row\\ every node with prefix \textbf{g,c} will render in the same row\\you have to finish the tree in \textbf{one sitting} else lose track of the flow\\

    \begin{genealogypicture}
            [template=formal graph]
            sandclock{ 
            child{
                g[male]{father}                 p[female]{mother}           
                child{
                    g[male]{sonA}
                    c[male]{sonA1}              c[female]{daughterA2}
                        }
                child{
                    g[female]{daughterB}
                    c[female]{daughterB1}   c[female]{daghterB2}
                        }
                    }
            parent{
            g[male]{grandfather}    
                        }
            parent{
            g[female]{grandmother}
                        }
        }
    \end{genealogypicture}




\end{document}

여기에 이미지 설명을 입력하세요

관련 정보