MDL-33616 Maths filter: Addded --halt-on-error swtich for latex to stop execution, if any error is encountered

This commit is contained in:
Rajesh Taneja 2012-07-09 16:45:13 +08:00
parent 904673dd20
commit 08d32575e1
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@
fclose( $fh );
// run latex on document
$command = "{$CFG->filter_tex_pathlatex} --interaction=nonstopmode $tex";
$command = "{$CFG->filter_tex_pathlatex} --interaction=nonstopmode --halt-on-error $tex";
chdir( $this->temp_dir );
if ($this->execute($command, $log)) { // It allways False on Windows
// return false;

View File

@ -244,7 +244,7 @@
chdir($latex->temp_dir);
// step 1: latex command
$cmd = "$CFG->filter_tex_pathlatex --interaction=nonstopmode $tex";
$cmd = "$CFG->filter_tex_pathlatex --interaction=nonstopmode --halt-on-error $tex";
$output .= execute($cmd);
// step 2: dvips command