Added support for latex