"mathrsfs",
"ascii",
"url",
+ "covington",
+ "csquotes",
+ "enumitem",
+ "endnotes",
+ "ifthen",
+ "amsthm"
};
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
ostringstream packages;
TextClass const & tclass = params_.getTextClass();
+ // FIXME: currently, we can only load packages and macros known
+ // to LyX.
+ // However, with the Require tag of layouts/custom insets,
+ // also inknown packages can be requested. They are silently
+ // swallowed now. We should change this eventually.
+
//
// These are all the 'simple' includes. i.e
// packages which we just \usepackage{package}
params_.use_esint == BufferParams::package_off)) {
packages << "\\usepackage{amsmath}\n";
}
-
+
// wasysym is a simple feature, but it must be after amsmath if both
// are used
// wasysym redefines some integrals (e.g. iint) from amsmath. That
tcpreamble << tclass[*cit]->preamble();
}
- InsetLayouts const & insetlayouts = tclass.insetlayouts();
- InsetLayouts::const_iterator cit2 = insetlayouts.begin();
- InsetLayouts::const_iterator end2 = insetlayouts.end();
- for (; cit2 != end2; ++cit2) {
- if (isRequired(to_utf8(cit2->first))) {
- tcpreamble << from_utf8(cit2->second.preamble);
- }
- }
-
return tcpreamble.str();
}