I am using the forest
package to draw a simple tree. When using forest
with the Springer-Nature template, forest
must be specified via a \RequirePackage
callout before calling \documentclass
. This unfortunately changes the tree structure. I provide an MWE (at the end) where the issue is replicated with the article
documentclass
for simplicity.
Expected Output:
Observe that the fork points are separated from the parent node
Alternate Output
When the command \RequirePackage[edges]{forest}
is uncommented in the MWE, I get an alternate tree where the fork point is connected to the parent (see below).
Question: How can I fix the \RequirePackage
of forest
so the second image appears like the first? Recall I can't delete the \RequirePackage
since the Springer-Nature documentclass
requires it.
Base MWE with article
for Simplicity
% \RequirePackage[edges]{forest}
\documentclass{article}
\usepackage[edges]{forest}
\begin{document}
\scriptsize
\begin{forest}
for tree={
draw=black!75,
line width=1pt,
if level=0{%
forked edges,
l sep+=0.35cm,
s sep+=0.5in,
align=center,
}{%
if level=1{%
l sep+=0.35cm,
s sep+=0.5in,
}{
},
},%
},
[Node~A
[Node~B
]
[Node~C
[Node~D
]
[Node~E
]
]
]
\end{forest}
\end{document}