答案1
作为起点可以提供以下例证(来自我的一本教科书):
\documentclass[border=3mm]{standalone}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
for tree={
% style of nodes in the tree
draw, rounded corners, semithick,
font = \scshape\linespread{.84}\selectfont,
top color = teal!10,
bottom color = teal!50,
minimum height = 11mm,
text width = 24mm, text badly centered,
inner sep = 2mm,
% style of tree (edges, distances, direction)
edge = {draw, semithick, -stealth},
anchor = north,
grow = south,
forked edge, % for forked edge
s sep = 8mm, % sibling distance
l sep = 8mm, % level distance
fork sep = 3.5mm, % distance from parent to branching point
}
[kanalsko kodiranje
[ponovno pošiljanje
[tekoče kodiranje]
[kodi s pomnjenjem]
]
[vnaprejšnje popravljanje napak]
]
\end{forest}
\end{document}
由于您的流程图实际上是树形图,因此在上面的 MWE 中用于绘制代码的是forest
包。上面的 MWE 产生:
节点中的真实文本我留给你了。插入它们应该很简单。