请问在latex里如何绘制这样的家谱和连线?谢谢!
用 TikZ 可以
效果:
效果
代码:
\documentclass{standalone}
\usepackage{ctex}
\usepackage{pifont} %\ding
\usepackage{tikz}
\usepackage{color}
\usetikzlibrary{positioning} % 相对放置 of
\usetikzlibrary{calc} % 计算两个节点
\usetikzlibrary{bending}
\usetikzlibrary{arrowsmeta}
\begin{document}
\begin{tikzpicture}
\node (a) at (0,0) {少典};
\node (b0) [right=of a] {\textcolor{red}{\ding{172}}};
\node (b) [right=-05em of b0] {轩辕};
\node (c) [right=of b] {昌意};
\node (d0) [right=of c] {\textcolor{red}{\ding{173}}};
\node (d) [right=-05em of d0] {颛顼高阳};
\node (e) [right=of d] {穷蝉};
\node (de) at ($(d)!05!(e)$) {};
\node (de1) [above=1ex of de] {};
\node (de2) [below=1ex of de] {};
\node (f) [right=of e] {敬康};
\node (g) [right=of f] {句望};
\node (h) [right=of g] {娇牛};
\node (i) [right=of h] {瞽叟};
\node (j0) [right=of i] {\textcolor{red}{\ding{177}}};
\node (j) [right=-05em of j0] {虞舜};
\node (ij) at ($(i)!05!(j0)$) {};
\node (k) [right=of j] {商均};
\node (e1) [above=1ex of e] {鲧};
\node (e2) [below=1ex of e] {女修};
\node (f10) [right=of e1] {\textcolor{red}{\ding{178}}};
\node (f1) [right=-05em of f10] {禹};
\node (j1) [below=1ex of j0] {象};
\node (l) [below=6ex of c] {青阳玄嚣};
\node (m) [right=of l] {蝺极};
\node (n0) [right=of m] {\textcolor{red}{\ding{174}}};
\node (n) [right=-05em of n0] {喾高辛};
\node (o0) [right=of n] {\textcolor{red}{\ding{175}}};
\node (o) [right=-05em of o0] {挚};
\node (bc) at ($(b)!05!(c)$) {};
\node (no) at ($(n)!05!(o0)$) {};
\node (o10) [above=1ex of o0] {\textcolor{red}{\ding{176}}};
\node (o1) [right=-05em of o10] {尧};
\node (o2) [below=1ex of o0] {契};
\node (o3) [below=1ex of o2] {后稷};
\node (ctrl1) at ($(f)!01!(g)$) {};
\node (ctrl2) at ($(o3)!05!(j0)$) {};
\draw (de) |- (e1)
(de) |- (e2)
($(de)-(0,5em)$) -- ($(de)+(0,5em)$)
(ij) |- (j1)
($(ij)-(0,5em)$) -- ($(i)!05!(j0)$)
(bc) |- (l)
($(bc)-(0,5em)$) -- ($(b)!05!(c)$)
(no) |- (o10)
(no) |- (o2)
(no) |- (o3)
($(no)-(0,5em)$) -- ($(no)+(0,5em)$);
\path (a) edge (b0)
(b) edge (c)
(c) edge (d0)
(d) edge (e)
(e) edge (f)
(f) edge (g)
(g) edge (h)
(h) edge (i)
(i) edge (j0)
(j) edge (k)
(e1) edge (f10)
(l) edge (m)
(m) edge (n0)
(n) edge (o0)
;
\draw [red] (b0) to[bend left=50] (d0)
(d0) to[bend right=30] (n0)
(n0) to[bend right=30] (o0)
(o0) to (o10);
\draw [red] (o10) controls (ctrl1) and (ctrl2) (j0);
% (o10) to[bend left=10] (j0);
\draw[red, arrows={-Stealth[inset=0pt, length=10pt, angle'=30]}] (j0) to[bend right] (f1);
\end{tikzpicture}
\end{document}
满族桂姓有很多,比如:唐古特氏,桂岳里氏、贵齐特氏、赫舍里氏、纽古录氏、瓜尔佳氏。
更多的情况是从名姓也就是某代祖先的名字当中有个 桂 字, 于是子孙就以 桂 字为姓。
您家也可能是从名姓。 建议您回老家找同姓同宗的老人问问,最好能找到家谱。
请问在latex里如何绘制这样的家谱和连线?谢谢!
本文2023-10-02 19:26:55发表“资讯”栏目。
本文链接:https://www.lezaizhuan.com/article/158832.html