Q:

genealogytree: How to reference children in other page

I have genealogy trees too large to fit to a single page but I should be able to break them down to smaller chunks and cross-reference to other pages. How do I typeset those references so that they do not use a bounding box and consume only the space needed for the text?
I have a source code and two pictures to explain what I need. The first picture shows what my example gets me. The second picture shows what I want:
1:

2:

This is the code that produces the first example:
\documentclass[a4]{book}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
\gtrset{
  template=database pole,
  level size=1cm,  
}
\genealogytree{
  child{
    g{male,name=father}
    p{female,name=mother}
    c{male,name=page~\pageref{nextpage}} % <== How to change this?
  }
}
\end{tikzpicture}
\clearpage
\label{nextpage}
\null
\end{document}

Very importantly, I need the reference to take up less vertical space than 
level size as it often fits to the bottom of the page where there's not enough room for another full-sized level.

A:

You can set a special style for these references, like this:
\documentclass[a4paper]{book}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
\gtrset{
  template=database pole,
  level size=1cm,  
  ref/.style={
    % partly from template database traditional
    node={box clear,
      box={blanker, top=1mm, bottom=1mm,
        halign=flush center,
        natural height}}},
}

\genealogytree{
  child{
    g{male,name=father}
    p{female,name=mother}
    c[ref]{name={page~\pageref{nextpage}}}
  }
}
\end{tikzpicture}

Next paragraph.

\clearpage
\label{nextpage}
\null
\end{document}

which yields

