3

Any idea the way to write in LaTex:

enter image description here

0
6

enter image description here

    \documentclass{standalone}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
for tree={
    draw,
    semithick,
    rounded corners,
    text width=6em,
    text badly centered,
    minimum height=4ex,
    edge={
            draw=blue},
    anchor= north,
    grow=south,
    forked edge,
    s sep=4mm,
    l sep=12mm,
    fork sep=6mm,
}
[sample number 1[pure fruit][non pure fruit[water abc][sugar \\contaminated]]]
\end{forest}
\end{document}

EDIT for same size box

    \documentclass{standalone}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
for tree={
    draw,
    semithick,
    rounded corners,
    text width=6em,
    text badly centered,
    minimum height=6ex,
    edge={draw=blue},
    anchor= north,
    grow=south,
    forked edge,
    s sep=4mm,
    l sep=5mm,
    fork sep=3mm,
    inner sep=1pt
}
[sample number 1[pure fruit][non pure fruit[water abc][sugar \\contaminated]]]
\end{forest}
\end{document}

enter image description here

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.