summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/formula.cpp')
-rw-r--r--src/formula.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/formula.cpp b/src/formula.cpp
index ac05dc7..07c6bb4 100644
--- a/src/formula.cpp
+++ b/src/formula.cpp
@@ -103,7 +103,9 @@ void FormulaList::generateBitmaps(const char *path)
{
//printf("Running latex...\n");
//system("latex _formulas.tex </dev/null >/dev/null");
- if (iSystem("latex","_formulas.tex")!=0)
+ QCString latexCmd = Config_getString("LATEX_CMD_NAME");
+ if (latexCmd.isEmpty()) latexCmd="latex";
+ if (iSystem(latexCmd,"_formulas.tex")!=0)
{
err("Problems running latex. Check your installation or look for typos in _formulas.tex!\n");
formulaError=TRUE;