# How can I create the decision tree below? [duplicate]

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.

• Welcome to TeX.SE! Please show us a short compilable code you tried so far ... – Mensch Sep 20 '17 at 22:16
• On 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 tex.stackexchange.com/questions/5447/… 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

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
\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}

• Wouldn't it be better to close this as a duplicate? – cfr Sep 20 '17 at 22:29