+void InsetCommand::validate(LaTeXFeatures & features) const
+{
+ if (params().info().hasParam("literal")
+ && params()["literal"] == "true")
+ return;
+
+ ParamInfo::const_iterator it = params().info().begin();
+ ParamInfo::const_iterator end = params().info().end();
+ for (; it != end; ++it) {
+ if (it->handling() == ParamInfo::HANDLING_LATEXIFY) {
+ docstring const text = params()[it->name()];
+ // Validate the contents (if we LaTeXify, specific
+ // macros might require packages)
+ for (pos_type i = 0; i < int(text.size()) ; ++i)
+ BufferEncodings::validate(text[i], features);
+ }
+ }
+}
+
+