LaTeX generator in OCaml