Can someone help me with this figure? I need to add it to a Latex document and I don't know how to use function properly.
Asked
Active
Viewed 1,266 times
0
-
3Welcome to TeX.SE! Please show us a short compilable code you tried so far ... – Mensch Sep 20 '17 at 22:16
-
2On this site, a question should typically revolve around an abstract issue (e.g. "How do I get a double horizontal line in a table?") rather than a concrete application (e.g. "How do I make this table?") Have a look around the site, e.g. at Problems with flow chart - decision tree, to try to get started. – diabonas Sep 20 '17 at 22:18
-
Part of my answer at http://tex.stackexchange.com/questions/5447/how-can-i-draw-simple-trees-in-latex/254926?s=4|1.6430#254926 introduces Forest and may be helpful if you do it this way and are not, say, a linguist familiar with the bracket representation it uses. – cfr Sep 20 '17 at 22:38
1 Answers
0
as starting point with forest:
the text in nodes, nodes size and style you should accommodate to your needs/taste.
\documentclass[margin=5mm]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[edges]{forest}
\begin{document}
%%%% uvod-5
\linespread{0.9}
\begin{forest}
for tree={% style of tree nodes
text width = 22mm, text badly centered,
% style of tree (edges, distances, direction)
edge = {draw, semithick, -stealth},
anchor = north,
grow = south,
forked edge, % for forked edge
s sep = 2mm, %
l sep = 4mm, %
fork sep = 2mm, % distance from parent to branching point
tier/.option=level,
}
[text
[no
[text]
]
[yes
[text text
[text text text
[text
[text]
]
[text
[text]
]
]
]
]
]
]
\end{forest}
\end{document}
Zarko
- 296,517
