1

How can I fix this?

enter image description here

\documentclass[margin=5mm]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[edges]{forest}

\begin{document}

\begin{forest}
    for tree={
        l sep=1cm,
        child anchor=north,
        parent anchor=south,forked edges,
        edge={->,>=latex}}
    [Circuit Elements
        [Active
        [a
        ]
        [a
        ]
        ]
        [Passive
        [b
        ]
        [b
        ]
        ]
    ]
        \end{forest}

    \end{document}
2

forked edges is equivalent to for tree=forked edge. So either change forked edges to forked edge or move it outside the scope of for tree.

\documentclass[border=10pt,multi,tikz]{standalone}
\usepackage[edges]{forest}

\begin{document}
\begin{forest}
  for tree={
    l sep=1cm,
    child anchor=north,
    parent anchor=south,
    forked edge,
    edge={->,>=latex},
  }
  [Circuit Elements
    [Active
      [a
      ]
      [a
      ]
    ]
    [Passive
      [b
      ]
      [b
      ]
    ]
  ]
\end{forest}

\end{document}

forked edge in for tree

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.