I am trying to draw a tree diagram with forest
package. In order to have the diagram fitting within the page margins, I moved down the subtree of NastranBulkData object, as you can see from the image. However, there is still quite a big white space left between NastranCaseControl object and NastranBulkData object that prevents the diagram from fitting into the page margins.
How can I remove such white space so that both NastranBulkData object and NastranSubcaseResult object are shifted left? Ideally they should be shifted in such a way that the space between Objects related to other Nastran case control entries and the line departing from NastranBulkData object is equal to the separation between children in the tree (but I do not care too much about this).
MWE:
% Class
\documentclass[10pt]{article}
% Set paper geometry
\usepackage[letterpaper,margin=1in]{geometry}
% Forest package
\usepackage[edges]{forest}
% Document
\begin{document}
\begin{figure}[hbt!]
\centering
\begin{forest}
for tree={ % style of tree nodes
draw, semithick, rounded corners,
align = center,
inner sep = 2mm,
anchor=north,
% styles of tree
forked edge,
l sep = 6mm,
fork sep = 3mm,
}
[\texttt{NastranAnalysis}\\object
[\texttt{NastranExecutiveControl}\\object
[Solution\\sequence \#]
]
[\texttt{NastranCaseControl}\\object
[\texttt{NastranSubcase}\\object array]
[Objects related to\\other \textsc{Nastran}\\case control entries]
]
[\texttt{NastranBulkData}\\object
[\texttt{Grid}\\object array, fork sep=3cm, l*=5, name=grid]
[Objects related to other \\\textsc{Nastran} bulk data cards, fork sep=3cm, l*=5]
[\texttt{NastranPart}\\object array, fork sep=3cm, l*=5
[\texttt{NastranPart}\\object 1]
[\texttt{NastranPart}\\object 2]
[\dots]
]
]
[\texttt{NastranSubcaseResult}\\object array]
]
\end{forest}
\end{figure}
\end{document}