我正在尝试创建一个有点不寻常的家谱树。
问题是祖先有三个妻子,我想在家族树中显示这一点。
然而,我还是想明确一下哪一个家庭是重要的(对我来说)。
因此,我们的想法是将祖先和他的第三任妻子置于中心位置。
他们上面是他们的父母,下面是孩子。没什么不寻常的。
然而,在丈夫的左边,我想按从上到下的顺序显示以前的婚姻,包括前任配偶的父母。
我按照此处的示例添加了其他系列:
但它们会互相覆盖。
有没有办法让一个家庭的位置稍微向上移动一点,而第二个家庭的位置向下移动一点?
此外,我希望附加子树的方框更小。如果我尝试使用较小的方框,主人物也会得到较小的方框,这看起来不太好。
代码在这里:
\documentclass[9pt]{report}
\usepackage[a3paper,landscape,layoutoffset={0pt,0pt},hscale=0.85, vscale=0.9, inner=15mm, top=20mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage[swedish]{babel}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{xcolor}
\usepackage{epstopdf}
\usepackage[all]{genealogytree}
\begin{document}
\tcbset{male/.style={colframe=black, colback=blue!06, watermark text=\gtrSymbolsSetDraw{blue!16}\gtrsymMale}}
\tcbset{female/.style={colframe=black, colback=red!07, watermark text=\gtrSymbolsSetDraw{red!17}\gtrsymFemale}}
\gtrset{
box={colback=white},
edges={swing,no background,foreground=black!50},
}
\begin{tikzpicture}
% Adam Winklhofer and his third wife Susanna Urlhardt
\genealogytree[timeflow=down,
% tree offset=0.4 cm,
level size=3 cm,
node size=5 cm,
level distance=1.25 cm,
child distance=1.75 cm,
parent distance=2.5 cm,
further distance = 3 cm
]
{
sandclock
{% main couple
parent
{
g[male, id=I01254_1]{Adam Winklhofer}
}
parent
{
g[female, id=I01255_1]{Susanna Urlhardt}
}
c[male,id=I01301]{Thomas Winklhofer}
}
}
% Adam Winklhofer and his first wife Apollonia
\genealogytree[timeflow=down, set position=I01254_2 at I01254_1,
box={colback=white},
edges={swing,no background,foreground=black!50},
level size=3 cm,
node size=5 cm,
level distance=1.75 cm,
child distance=1.25 cm,
parent distance=0.1 cm,
further distance = 3 cm
]
{
sandclock
{% his family
parent
{%
g[female, id=I01271]{Apollonia NN}%
}
parent
{%
g[male, id=I01254_2]{Adam Winklhofer}%
}
child
{% Barbara
g[female,id=I01265]{Barbara Winklhofer}
}
}
}
% Adam Winklhofer and his second wife Maria Moser
\genealogytree[timeflow=down, set position=I01254_3 at I01254_1,
box={colback=white},
edges={swing,no background,foreground=black!50},
level distance=1.75 cm,
child distance=1.25 cm,
parent distance=0.1 cm,
further distance = 3 cm
]
{
sandclock
{% his family
parent
{%
g[female,id=I01262]{Maria Moser}%
parent {
g[male,id=I01264]{Wolfgang Moser}
}
parent {
g[female,id=I01429]{Rosina Kendmayr}
}
}
parent
{%
g[male, id=I01254_3]{Adam Winklhofer}%
}
child
{%
g[male,id=I01251]{Georg Winklhofer}
}
}
}
\end{tikzpicture}
\end{document}
答案1
我使用了一些xshift
来调整家庭成员的位置,并且在其他家庭成员之后绘制了主要家庭成员,以避免不必要的重叠。
我希望这或多或少就是你所寻找的。
\documentclass[9pt]{report}
\usepackage[a3paper,landscape,layoutoffset={0pt,0pt},hscale=0.85, vscale=0.9, inner=15mm, top=20mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage[swedish]{babel}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{xcolor}
\usepackage{epstopdf}
\usepackage[all]{genealogytree}
\begin{document}
\tcbset{male/.style={colframe=black, colback=blue!06, watermark text=\gtrSymbolsSetDraw{blue!16}\gtrsymMale}}
\tcbset{female/.style={colframe=black, colback=red!07, watermark text=\gtrSymbolsSetDraw{red!17}\gtrsymFemale}}
\gtrset{
box={colback=white},
edges={swing,no background,foreground=black!50},
}
\begin{tikzpicture}
% Adam Winklhofer and his first wife Apollonia
\genealogytree[timeflow=down,
box={colback=white},
edges={swing,no background,foreground=black!50},
level size=2 cm,
node size=4 cm,
level distance=3.5 cm,
child distance=1.25 cm,
parent distance=0.1 cm,
further distance = 3 cm
]
{
sandclock
{% his family
parent
{%
g[female, id=I01271,tikz={xshift=-2cm}]{Apollonia NN}%
}
parent
{%
g[male, id=I01254_2]{Adam Winklhofer}%
}
child
{% Barbara
g[female,id=I01265,tikz={xshift=-1cm}]{Barbara Winklhofer}
}
}
}
% Adam Winklhofer and his second wife Maria Moser
\genealogytree[timeflow=down, set position=I01254_3 at I01254_2,
box={colback=white},
edges={swing,no background,foreground=black!50},
level size=2 cm,
node size=4 cm,
level distance=3.5 cm,
child distance=1.25 cm,
parent distance=0.1 cm,
further distance = 3 cm
]
{
sandclock
{% his family
parent
{%
g[female,id=I01262,tikz={xshift=18cm}]{Maria Moser}%
parent {
g[male,id=I01264,tikz={xshift=18cm}]{Wolfgang Moser}
}
parent {
g[female,id=I01429,tikz={xshift=18cm}]{Rosina Kendmayr}
}
}
parent
{%
g[male, id=I01254_3]{Adam Winklhofer}%
}
child
{%
g[male,id=I01251,tikz={xshift=13cm}]{Georg Winklhofer}
}
}
}
% Adam Winklhofer and his third wife Susanna Urlhardt
\genealogytree[timeflow=down,
set position=I01254_1 at I01254_2,
level size=3 cm,
node size=5 cm,
level distance=2.5 cm,
child distance=1.75 cm,
parent distance=2.5 cm,
further distance = 3 cm,
]
{
sandclock
{% main couple
parent
{
g[male, id=I01254_1]{Adam Winklhofer}
}
parent
{
g[female, id=I01255_1]{Susanna Urlhardt}
}
c[male,id=I01301]{Thomas Winklhofer}
}
}
\end{tikzpicture}
\end{document}