modify latex.php to support syntax $latex $