diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-03-12 17:43:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-03-12 17:43:22 (GMT) |
commit | fbf972e737aac564670aa655a3b69d82a8558e7f (patch) | |
tree | e9f3eb760b666941c8905588b99d5e8378c8b507 /src/formula.cpp | |
parent | 69124e6ce7f023848920d2a18bc317ae92d355a2 (diff) | |
download | Doxygen-fbf972e737aac564670aa655a3b69d82a8558e7f.zip Doxygen-fbf972e737aac564670aa655a3b69d82a8558e7f.tar.gz Doxygen-fbf972e737aac564670aa655a3b69d82a8558e7f.tar.bz2 |
Release 1.1.1
Diffstat (limited to 'src/formula.cpp')
-rw-r--r-- | src/formula.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/formula.cpp b/src/formula.cpp index fcc1a74..4715f19 100644 --- a/src/formula.cpp +++ b/src/formula.cpp @@ -62,11 +62,13 @@ void FormulaList::generateBitmaps(const char *path) FormulaListIterator fli(*this); Formula *formula; QFile f(texName); + bool formulaError=FALSE; if (f.open(IO_WriteOnly)) { QTextStream t(&f); + if (Config::latexBatchModeFlag) t << "\\batchmode" << endl; t << "\\documentclass{article}" << endl; - t << "\\usepackage{epsf}" << endl; // for those who want to include images + t << "\\usepackage{epsfig}" << endl; // for those who want to include images const char *s=Config::extraPackageList.first(); while (s) { @@ -99,8 +101,9 @@ void FormulaList::generateBitmaps(const char *path) //system("latex _formulas.tex </dev/null >/dev/null"); if (system("latex _formulas.tex")!=0) { - err("Problems running latex. Check your installation or look at _formulas.tex!\n"); - return; + err("Problems running latex. Check your installation or look for typos in _formulas.tex!\n"); + formulaError=TRUE; + //return; } //printf("Running dvips...\n"); QListIterator<int> pli(pagesToGenerate); @@ -281,7 +284,7 @@ void FormulaList::generateBitmaps(const char *path) thisDir.remove("_formulas.aux"); } // remove the latex file itself - thisDir.remove("_formulas.tex"); + if (!formulaError) thisDir.remove("_formulas.tex"); // write/update the formula repository so we know what text the // generated gifs represent (we use this next time to avoid regeneration // of the gifs, and to avoid forcing the user to delete all gifs in order |