private static String preLatexmlFixes ( String rawTex ) { Matcher matcher = LTXML_PATTERN . matcher ( rawTex ) ; if ( matcher . find ( ) ) { rawTex = "{" + rawTex + "}" ; } return rawTex ; }
LaTeXML Bug if there is \ math command at the beginning of the tex expression it needs to be wrapped in curly brackets .