if (used_packages.find(name) == used_packages.end())
used_packages[name] = split_options(h_options);
+ // Insert options passed via PassOptionsToPackage
+ for (auto const & p : extra_package_options_) {
+ if (p.first == name) {
+ vector<string> eo = getVectorFromString(p.second);
+ for (auto const & eoi : eo)
+ options.push_back(eoi);
+ }
+
+ }
vector<string> & v = used_packages[name];
v.insert(v.end(), options.begin(), options.end());
if (name == "jurabib") {
options.erase(it);
}
}
+ if (!options.empty())
+ h_biblio_options = join(options, ",");
}
else if (name == "jurabib") {
h_preamble << t.asInput();
}
+ else if (t.cs() == "PassOptionsToPackage") {
+ string const poptions = p.getArg('{', '}');
+ string const package = p.verbatim_item();
+ extra_package_options_.insert(make_pair(package, poptions));
+ }
+
else if (t.cs() == "pagestyle")
h_paperpagestyle = p.verbatim_item();
AuthorList authors_;
/// special table column types
std::map<char, int> special_columns_;
+ ///
+ std::map<std::string, std::string> extra_package_options_;
};
- Import straight quotations marks (e.g. babel shorthands) as ERT (bug 75).
+- Consider options passed via \PassOptionsToPackage.
+
* ADVANCED FIND AND REPLACE