家谱树,让离婚显现

家谱树,让离婚显现

晚上好,我刚刚发现了这个用于创建家谱的包,我正在尝试,但遇到了一个问题。我如何让离婚记录出现在我的家谱中?

我在软件包文档中看到了带有符号的“离婚”选项,但无法让它出现。

我尝试了很多变化:

  • 离婚(相对于结婚)
  • 离婚
  • 离婚
  • 离婚

但什么也没有。在我的 MWE 中,我开始使用 Friedrich Gauss 示例使用的模板。不要留意与母细胞重叠的图例,我会在第二次计算它。

\usepackage[utf8]{inputenc}

\usepackage{hyperref} % per i riferimenti ipertestuali

\usepackage[all]{genealogytree}
\usepackage{incgraph}
\usetikzlibrary{backgrounds}

\begin{document}

    \begin{genealogypicture}[
        processing=database,
        database format=medium marriage below,
        node size=2.4cm,
        level size=3.5cm,
        level distance=6mm,
        list separators hang,
        name font=\bfseries,
        surn code={\textcolor{red!50!black}{#1}},
        place text={\newline}{},
        date format=d.mon.yyyy,
        tcbset={male/.style={colframe=blue,colback=blue!5},
                female/.style={colframe=red,colback=red!5}
                },
        box={fit basedim=7pt,boxsep=2pt,segmentation style=solid,
            halign=flush left,before upper=\parskip1pt,
            \gtrDBsex,drop fuzzy shadow,
            if image defined={add to width=25mm,right=25mm,
                underlay={
                        \begin{tcbclipinterior}\path[fill overzoom DBimage]
                            ([xshift=-24mm]interior.south east) rectangle (interior.north east);
                        \end{tcbclipinterior}
                    },
                }{},
            },
        edges=rounded,
        symbols record reset,
        after tree={\node[font=\scriptsize\itshape,text width=1.8cm,below left,
            fill=white,fill opacity=0.4,text opacity=1]
            at (current bounding box.north east) {\gtrSymbolsLegend};
            },
        ]
        %input{my.Surname.graph}
        
        sandclock{
            child[id=padre]{
                g[id=TGJ30]{
                    male,
                    name={\pref{T} G \surn{mySurname}},
                    birth={1957-08-28}{pCity},
                    marriage={1986-08-08}{Tavenre},
        %            death={}{},
                }
                p[id=JJB59]{
                    female,
                    name={\pref{J} J \surn{maidSurname}},
                    birth={1959-05-15}{mCity},
                    marriage={1986-08-08}{wed-City},
                    divorce={2012-05-08}{cityDIV},
        %            death={}{},
                    comment={\textbf{maidSurname \ref{sec:maidSurname}}},
                }
                c[id=FTJ90]{
                    male,
                    name={\pref{F} T  \surn{mySurname}},
                    birth={1990-05-23}{City}
                }
                c[id=BMJ93]{
                    male,
                    name={\pref{B} M \surn{mySurname}},
                    birth={1993-11-05}{City}
                }
                c[id=CGJ93]{
                    male,
                    name={\pref{C} G \surn{mySurname}},
                    birth={1993-11-05}{City},
                }
            %parent[id=D32]
            }
        }
        
    \end{genealogypicture}

\end{document}

PS. 如果有办法将婚姻符号置于母亲和父亲之间的联系之上,将不胜感激。

在此处输入图片描述

答案1

用于database format=full marriage below,调出离婚符号。

C

\documentclass[12pt,a4paper]{article}

\usepackage[all]{genealogytree}

\begin{document}
    
    \begin{genealogypicture}[
        processing=database,
        database format= full marriage below,%changed <<<<<<<<
        node size=2.4cm,
        level size=3.5cm,
        level distance=6mm,
        list separators hang,
        name font=\bfseries,
        surn code={\textcolor{red!50!black}{#1}},
        place text={\newline}{},
        date format=d.mon.yyyy,
        tcbset={male/.style={colframe=blue,colback=blue!5},
            female/.style={colframe=red,colback=red!5}
        },
        list separators={\par}{ }{}{},
        box={fit basedim=7pt,boxsep=2pt,segmentation style=solid,
            halign=flush left,before upper=\parskip1pt,
            \gtrDBsex,drop fuzzy shadow,
            if image defined={add to width=25mm,right=25mm,
                underlay={
                    \begin{tcbclipinterior}\path[fill overzoom DBimage]
                        ([xshift=-24mm]interior.south east) rectangle (interior.north east);
                    \end{tcbclipinterior}
                },
            }{},
        },
        edges=rounded,
        symbols record reset,
        after tree={\node[font=\scriptsize\itshape, below right,
        fill=white,fill opacity=0.4,text opacity=1, anchor=center]
        at ([xshift=0.5mm, yshift=-1.2mm]TGJ30.south east) {\gtrsymMarried}; %changed <<<<<
        },
        ]   
        sandclock{
            child[id=padre]{
                g[id=TGJ30]{
                    male,
                    name={\pref{T} G \surn{mySurname}},
                    birth={1957-08-28}{pCity},
                    marriage={1986-08-08}{Tavenre},
                    %            death={}{},
                }
                p[id=JJB59]{
                    female,
                    name={\pref{J} J \surn{maidSurname}},
                    birth={1959-05-15}{mCity},
                    marriage={1986-08-08}{wed-City},
                    divorce={2012-05-08}{cityDIV},
                    %            death={}{},
                    comment={\textbf{maidSurname \ref{sec:maidSurname}}},
                }
                c[id=FTJ90]{
                    male,
                    name={\pref{F} T  \surn{mySurname}},
                    birth={1990-05-23}{City}
                }
                c[id=BMJ93]{
                    male,
                    name={\pref{B} M \surn{mySurname}},
                    birth={1993-11-05}{City}
                }
                c[id=CGJ93]{
                    male,
                    name={\pref{C} G \surn{mySurname}},
                    birth={1993-11-05}{City},
                }
                %parent[id=D32]
            }
        }
        
    \end{genealogypicture}
    
\end{document}

相关内容