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.