Prepares code generator for HTML and LaTeX