Permalink
Browse files

Functionality in debug for miscellaneous mimeTeX binaries

  • Loading branch information...
1 parent db0178a commit f7e0a0b8e795a6d4e2dd13bec155b9e38ce2030e fiedorow committed Jun 10, 2004
Showing with 5 additions and 0 deletions.
  1. +5 −0 filter/tex/texdebug.php
@@ -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);
}

0 comments on commit f7e0a0b

Please sign in to comment.