summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/formula.cpp')
-rw-r--r--src/formula.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/formula.cpp b/src/formula.cpp
index 22f154e..fcc1a74 100644
--- a/src/formula.cpp
+++ b/src/formula.cpp
@@ -27,6 +27,7 @@
#include "image.h"
#include "util.h"
#include "message.h"
+#include "config.h"
Formula::Formula(const char *text)
{
@@ -66,6 +67,12 @@ void FormulaList::generateBitmaps(const char *path)
QTextStream t(&f);
t << "\\documentclass{article}" << endl;
t << "\\usepackage{epsf}" << endl; // for those who want to include images
+ const char *s=Config::extraPackageList.first();
+ while (s)
+ {
+ t << "\\usepackage{" << s << "}\n";
+ s=Config::extraPackageList.next();
+ }
t << "\\pagestyle{empty}" << endl;
t << "\\begin{document}" << endl;
int page=0;