This is a minimal working example to explore the LaTeX scanner's interaction when using standalone and import. To see the tree run: scons -nQ --tree=prune main.pdf The initial state before any changes ...