In an assignment for school I require making a lot of trees and large ones too. I searched for some methods and stumbled upon the package forest which has helped me a lot. I'm almost done but couldn't figure out one last essential thing. I want to center the root node of my tree. I center my tree already but it centers the center of the tree rather than the root node too. I'm looking for a way to center the root node specifically.
\documentclass{article}
\usepackage{forest}
\begin{document}
\begin{center}
\scalebox{1}{
\begin{forest}
for tree={
parent anchor=south,
child anchor=north,
l=2cm
}
[ {[?,?,?,?]}, calign=center
[ {[Intel,?,?,?]}
[ {[i7,?,?,?]}
]
]
[ {[?,Radeon,?,?]}
]
[ {[?,?,4GB,?]}
[ {[Intel,?,4GB,?]}
]
[ {[?,Radeon,4GB,?]}
]
[ {[?,?,8GB,?]}
]
[ {[?,?,4GB,Asus]}
]
]
]
\end{forest}
}
\end{center}
\end{document}
The root node [?,?,?,?] is positioned a couple of centimeters to the left of the center of the page whereas the tree as a whole is in the center.
\scalebox
?