Add support for latex compilation