文章预览
有网友提问,如何制作族谱里的结构树状图: 第一个方案使用 tikz-qtree 更多实战案例可以参考这里: TikZ-qtree 宏包实战案例 - 决策树,家谱图,组织图,分类树的绝佳宏包 。 绘制效果图如下: 代码如下: \documentclass[margin=3pt]{standalone} \usepackage{tikz} \usepackage{ctex} \usepackage{tikz-qtree} \usetikzlibrary{trees} \usepackage{setspace} \renewcommand{\baselinestretch}{ 1.0 } \begin{document} \tikzset{grow'= 0 , level distance =6em, sibling distance =0em, execute at begin node=\strut, every tree node/.style={%red, % draw=gray! 80 !black, % line width= 0 .6pt, text width= 0 .6cm, % rounded corners=2pt, % anchor = west, % fill=white, % minimum width=4mm, % inner sep=2pt, align=center, font = {\bfseries\ CJKfontspec {华文中宋}}}, edge from parent/.style= {draw, edge from parent path={(\tikzparentnode.south) -- +( 0 ,-8pt) -| (\tikzc
………………………………