headers should be added to the outer most document when there are children within child documents
Merge pull request #542 from jtoloe/master

latex header added to wrong child when compiling a child that uses set_parent() and has children of its own