article/report depends on context
tests pass with unified latex generator
generation of preamble and document surroundings