Skip to content

Commit

Permalink
Functionality in debug for miscellaneous mimeTeX binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
fiedorow committed Jun 10, 2004
1 parent db0178a commit f7e0a0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions filter/tex/texdebug.php
Expand Up @@ -119,7 +119,12 @@ function tex2image($texexp) {
break;
}
if (!$cmd) {
if (is_executable("$CFG->dirroot/$CFG->texfilterdir/mimetex")) { /// Use the custom binary
$commandpath="$CFG->dirroot/$CFG->texfilterdir/mimetex";
$cmd = "$CFG->dirroot/$CFG->texfilterdir/mimetex -e $pathname ". escapeshellarg($texexp);
} else {
error($error_message1);
}
}
system($cmd, $status);
}
Expand Down

0 comments on commit f7e0a0b

Please sign in to comment.