latex.ml: add document creation.