lex.setFile(real_file);
- if (!lex.isOK())
+ if (!lex.isOK())
return;
// Make sure that we are clean
packages_.clear();
-
+
bool finished = false;
// Parse config-file
while (lex.isOK() && !finished) {
"varioref",
"prettyref",
"float",
- "wasysym",
"dvipost",
"fancybox",
"calc",
packages << "\\usepackage{amsmath}\n";
}
+ // wasysym is a simple feature, but it must be after amsmath if both
+ // are used
+ if (isRequired("wasysym"))
+ packages << "\\usepackage{wasysym}\n";
+
// color.sty
if (isRequired("color")) {
if (params_.graphicsDriver == "default")