%\title{Using the forest package to create trees in LaTeX} % From <!-- m --><a class="postlink" href="http://tex.stackexchange.com/a/108728/23931">http://tex.stackexchange.com/a/108728/23931</a><!-- m --> \documentclass[10pt,twoside,a4paper]{memoir} \usepackage{graphicx} \usepackage{forest} \usepackage{tikz-qtree} \begin{document} \begin{forest} for tree={ edge path={\noexpand\path[\forestoption{edge}] (\forestOve{\forestove{@parent}}{name}.parent anchor) -- +(0,-12pt)-| (\forestove{name}.child anchor)\forestoption{edge label};} } [Eukaryota [Animalia [Porifera] [Cnidaria [Mobilia [Aquaderia [Gigabellidae [Jellicent [J. ][J. ][J. ]][Tentacruel [T. vulgaris][T. polarus][T. equatorus]]]][Leviteridea [Nihileidae [Nihilego [N. ][N. ]]][Ribbonidae [Chimecho [C. ][C. ][C. ]][Driftblim [D. ][D. ][D. ]]]][Terraidea [Blacephalidae [Blacephalon [B. ][B. ]]]]]]]] \end{forest} \end{document}
Whenever i put this code into an overleaf editor, the tree it makes starts to run off the page. is there any way to fix this? I am new to latex/related things, so i have no clue what i am actually doing here. any help will be appreciated.