当我使用 genealogytree 的节点转换功能时,节点文本内的任何 \ref{}。如果我删除该行,node={ turn=right},
它将正常工作。但我需要它,有什么方法可以在节点转换时做到这一点?
我的代码:
\documentclass{report}
\usepackage{genealogytree}
\usepackage{hyperref}
\usepackage{pdflscape}
\begin{document}
\chapter{Sample chapter}
\section{Sample section} \label{sectionA}
% \begin{landscape}
\begin{figure}[b]
% \noindent\resizebox{\linewidth}{!}{
\begin{genealogypicture}[
processing=database,database format=full,
info separators={\tcbline}{\tcbline}{}{},
node size=3cm,level size=3cm,
mark/.style={box={colback=red!20}},
requirement/.style={box={colback=green!20}},
edges={foreground={line width=1pt,black,->,},background={line width=2pt,white}, }, %swing,
box={fit basedim=8pt,boxsep=5pt,segmentation style=solid,halign=center,valign=center,before upper=\parskip2pt,\gtrDBsex,{colback=gray!20}},%halign=center
node={ turn=right}, % when this is used
]
child{
g{name={\textbf{Test}}}
child{
g{name={\textbf{Application Based}}, comment= {Test}}
child{
g{name={\textbf{Test}}, comment= {See Section \ref{sectionA} }}
}
child{
g{name={\textbf{Test2}}, comment= {See Section \ref{sectionA} }}
}
}
}
\end{genealogypicture}
% }
\end{figure}
% \end{landscape}
\end{document}