|| (key_->name.length() == 6 && key_->name.substr(0, 4) == "text"))
features.require("amstext");
if (key_->name == "mathscr")
- features.require("mathrsfs");
+ features.require("mathrsfs");
if (key_->name == "textipa")
features.require("tipa");
if (key_->name == "ce" || key_->name == "cf")
features.require("mhchem");
} else if (features.runparams().math_flavor == OutputParams::MathAsHTML) {
- features.addPreambleSnippet("<style type=\"text/css\">\n"
+ features.addCSSSnippet(
"span.normal{font: normal normal normal inherit serif;}\n"
"span.fraktur{font: normal normal normal inherit cursive;}\n"
"span.bold{font: normal normal bold inherit serif;}\n"
"span.italic{font: italic normal normal inherit serif;}\n"
"span.sans{font: normal normal normal inherit sans-serif;}\n"
"span.monospace{font: normal normal normal inherit monospace;}\n"
- "span.noun{font: normal small-caps normal inherit normal;}\n"
- "</style>");
+ "span.noun{font: normal small-caps normal inherit normal;}");
}
}
|| tag == "textbf")
variant = "bold";
else if (tag == "mathcal")
- variant == "script";
+ variant = "script";
else if (tag == "mathit" || tag == "textsl"
|| tag == "emph" || tag == "textit")
variant = "italic";
variant = "monospace";
else if (tag == "textipa" || tag == "textsc" || tag == "noun")
variant = "noun";
-
+
docstring const beg = (tag.size() < 4) ? from_ascii("") : tag.substr(0, 4);
if (!variant.empty()) {
os << MTag("span", "class='" + variant + "'")
|| tag == "textbf")
variant = "bold";
else if (tag == "mathcal")
- variant == "script";
+ variant = "script";
else if (tag == "mathit" || tag == "textsl"
|| tag == "emph" || tag == "textit")
variant = "italic";
else if (tag == "mathtt" || tag == "texttt")
variant = "monospace";
// no support at present for textipa, textsc, noun
-
+
if (!variant.empty()) {
os << MTag("mstyle", "mathvariant='" + variant + "'")
<< cell(0)