I created a tikz graph. There are still some unwanted lines. I get error messages when I delete them. Any recommendations?
\documentclass[tikz,border=10pt]{standalone} \usepackage{forest} \usetikzlibrary{shadows} \tikzset{every shadow/.style={shadow xshift=5pt,shadow yshift=-5pt}} \begin{document} % starting point: https://tex.stackexchange.com/a/341454/121799 \begin{forest} for tree={ font=\sffamily, line width=1pt, draw, child anchor=north, parent anchor=south, grow=south, align=center, edge path={ \noexpand\path[line width=1pt, \forestoption{edge}] (!u.parent anchor) |- ([yshift=4pt].child anchor) -- (.child anchor) \forestoption{edge label}; }, }, s sep+=20pt, [Strong Diabatic Heating,drop shadow, fill=white [Synoptic-Scale\\ Dynamics [Thermodynamic Equation] [,phantom] [PV Equation] [Continuity Equation [O(\epsilon^2)] [~\\~,opacity=0,name=phantom1 [~\\~,opacity=0,name=phantom2 ] ] [O(\epsilon^3)] ] [Averaged Horizontal \\ Momentum Equation ] [Hydrostatic Balance \\ Equation] ] [Mesoscale\\ Dynamics [Thermodynamic\\ Equation [$O(\epsilon^1)$] [~\\~,opacity=0,name=phantom3 [~\\~,opacity=0,name=phantom4] ] [$O(\epsilon^2)$] ] [~\\~,opacity=0,name=phantom5 [~,opacity=0,name=phantom6 ] ] [Vorticity\\ Equation] [Continuity Equation [$O(\epsilon^1)$] [~\\~,opacity=0,name=phantom7 [~\\~,opacity=0,name=phantom8 ] ] [$O(\epsilon^2)$] ] [Hydrostatic Balance \\ Equation] [Mesoscale Horizontal \\Divergence Equation] ] ] \begin{scope}[line width=1pt] \foreach \X in {1,...,4} {\draw (phantom\X.north) -- (phantom\X.south);} \end{scope} \end{forest} \end{document} EDIT: This is an example output. The lines belonged to additional boxed. I would like to remove them but I get an error message.


Missing $ inserted.. You can't use\epsilonin text mode. Make sure allO(\epsilon^n)expressions are between$...$(it's not the case for the first two).