refactoring example, setHeaderLine(), setContentLine() and more control over the LatexDocument based object passed to the parser