我正在使用 {forest} 制作一棵简单的树,我希望所有节点的边缘都是比正常尺寸更大的实心箭头(向南方向)(这样我创建的图像在缩小时可以很好地调整大小)。我已经指定了箭头,但遇到了困难...我如何将小箭头转换为漂亮的大实心箭头?
\begin{forest}
for tree={edge=->}
[{\textbf{Footbridge Dilemma}}, circle, draw, text width = 5em, text centered
[{\textbf{Push \\Man}}, circle, draw, text width = 5em, text centered
[{\textbf{Man \\Dies}}, circle, draw, text width = 5em, text centered
[{\textbf{Workmen \\Saved}}, circle, draw, text width = 5em, text centered]
]
]
[{\textbf{Don't Push}}, circle, draw, text width = 5em, text centered
[{\textbf{Man \\Lives}}, circle, draw, text width = 5em, text centered
[{\textbf{Workmen Die}}, circle, draw, text width = 5em, text centered]
]
]
]
\end{forest}
答案1
可以line width
给edge
参数添加一个参数:
\documentclass{article}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={edge={->,line width=4pt}}
[{\textbf{Footbridge Dilemma}}, circle, draw, text width = 5em, text centered
[{\textbf{Push \\Man}}, circle, draw, text width = 5em, text centered
[{\textbf{Man \\Dies}}, circle, draw, text width = 5em, text centered
[{\textbf{Workmen \\Saved}}, circle, draw, text width = 5em, text centered]
]
]
[{\textbf{Don't Push}}, circle, draw, text width = 5em, text centered
[{\textbf{Man \\Lives}}, circle, draw, text width = 5em, text centered
[{\textbf{Workmen Die}}, circle, draw, text width = 5em, text centered]
]
]
]
\end{forest}
\end{document}