--- latex-original/class.latexrender.php 2011-04-29 10:53:02.000000000 +0300 +++ latex/class.latexrender.php 2013-03-09 21:51:06.000000000 +0200 @@ -51,16 +51,7 @@ var $_font_size = 10; var $_latexclass = "article"; //install extarticle class if you wish to have smaller font sizes var $_tmp_filename; - // this most certainly needs to be extended. in the long term it is planned to use - // a positive list for more security. this is hopefully enough for now. i'd be glad - // to receive more bad tags ! - var $_latex_tags_blacklist = array( - "include","def","command","loop","repeat","open","toks","output","input", - "catcode","name","^^", - "\\every","\\errhelp","\\errorstopmode","\\scrollmode","\\nonstopmode","\\batchmode", - "\\read","\\write","csname","\\newhelp","\\uppercase", "\\lowercase","\\relax","\\aftergroup", - "\\afterassignment","\\expandafter","\\noexpand","\\special" - ); + var $_latex_tags_blacklist = array(); var $_errorcode = 0; var $_errorextra = ""; var $_filename; @@ -240,18 +231,13 @@ return false; } - // convert dvi file to postscript using dvips - $command = $this->_dvips_path." -E ".$this->_tmp_filename.".dvi"." -o ".$this->_tmp_filename.".ps"; - $this->myexec($command,$status_dvips); - - // imagemagick convert ps to image and trim picture - $command = $this->_convert_path." ".$this->_tmp_filename.".ps ". + $command = $this->_convert_path." ".$this->_tmp_filename.".dvi ". $this->_tmp_filename.".".$this->_image_format; $this->myexec($command,$status_convert); - if ($status_dvips || $status_convert) { + if ($status_convert) { if( ! $this->_keep_tmp) $this->cleanTemporaryDirectory(); chdir($current_dir);