3

I'd like to use genealogytree with a slightly modified "traditional" template (no box around cells). The slight modification is to allow comments. My code works, but a period is automatically added right after the comment. I don't want this period.

My MWE:

\documentclass[varwidth,margin=10pt]{standalone}
\usepackage[all]{genealogytree}

\gtrset{mytree/.style={
    template=database traditional,
    database format=medium no marriage,
  }
}

\begin{document}
\begin{tikzpicture}
  \genealogytree[mytree]{
    parent{
      g{name=Son, comment=Prince of the Valley}
      p{name=Father, comment=King of the Hill}
    }
  }
\end{tikzpicture}
\end{document}

How can I prevent the period?

enter image description here

dedded
  • 2,236

1 Answers1

2

After digging around in the grtcore.node.code.tex, I found an info separators-key, that seems to affect it. It is defined as

\gtrset{info separators={\par}{. }{.}{}} Removing the second period seems to solve the problem. It's described on page 186 in the manual),

\documentclass[varwidth,margin=10pt]{standalone}
\usepackage[all]{genealogytree}

\gtrset{mytree/.style={
    template=database traditional,
    database format=medium no marriage,
    info separators={\par}{. }{}{}, %<- Removed period from third {} in here
  }
}

\begin{document}
\begin{tikzpicture}
  \genealogytree[mytree]{
    parent{
      g{name=Son, comment=Prince of the Valley}
      p{name=Father, comment=King of the Hill}
    }
  }
\end{tikzpicture}
\end{document}