houda araj
7 years ago
\documentclass{standalone}
\usepackage{tabularx}
\usepackage{forest}
\usetikzlibrary{shapes.geometric}
I want to put in a forest tree a box in which I can write a small text on several lines.
Thanks for your help.
\begin{document}
\begin{forest}
for tree={
child anchor=west,
parent anchor=east,
grow=east,
draw,
anchor=west,
edge path={
\noexpand\path[\forestoption{edge}]
(.child anchor) -| +(-5pt,0) -- +(-5pt,0) |-
(!u.parent anchor)\forestoption{edge label};
},
}
[...
[text text \\ text text [ text text... [... [... [...]
[...]][... [...] [... ]]] ]
[... [... [...][...]] ] ] ]
\end{forest}
\end{document}
\usepackage{tabularx}
\usepackage{forest}
\usetikzlibrary{shapes.geometric}
I want to put in a forest tree a box in which I can write a small text on several lines.
Thanks for your help.
\begin{document}
\begin{forest}
for tree={
child anchor=west,
parent anchor=east,
grow=east,
draw,
anchor=west,
edge path={
\noexpand\path[\forestoption{edge}]
(.child anchor) -| +(-5pt,0) -- +(-5pt,0) |-
(!u.parent anchor)\forestoption{edge label};
},
}
[...
[text text \\ text text [ text text... [... [... [...]
[...]][... [...] [... ]]] ]
[... [... [...][...]] ] ] ]
\end{forest}
\end{document}