summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-03-12 17:43:22 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-03-12 17:43:22 (GMT)
commitfbf972e737aac564670aa655a3b69d82a8558e7f (patch)
treee9f3eb760b666941c8905588b99d5e8378c8b507 /src/formula.cpp
parent69124e6ce7f023848920d2a18bc317ae92d355a2 (diff)
downloadDoxygen-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.cpp11
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