bool InsetMathFont::lockedMode() const
{
- if (key_->extra == "forcetext")
- return true;
- return false;
+ return key_->extra == "forcetext";
}
-void InsetMathFont::write(WriteStream & os) const
+void InsetMathFont::write(TeXMathStream & os) const
{
// Close the mode changing command inserted during export if
// we are going to output another mode changing command that
// The fonts we want to support are listed in lib/symbols
-void InsetMathFont::mathmlize(MathStream & os) const
+void InsetMathFont::mathmlize(MathMLStream & ms) const
{
// FIXME These are not quite right, because they do not nest
// correctly. A proper fix would presumably involve tracking
variant = "monospace";
// no support at present for textipa, textsc, noun
- if (!variant.empty()) {
- if (tag == "mathbb" || tag == "mathds") {
- os << MTag("mstyle", "class='mathbb' mathvariant='" + variant + "'")
- << cell(0)
- << ETag("mstyle");
- } else {
- os << MTag("mstyle", "mathvariant='" + variant + "'")
- << cell(0)
- << ETag("mstyle");
- }
- } else
- os << cell(0);
+ if (!variant.empty())
+ ms << MTag("mstyle", "mathvariant='" + variant + "'")
+ << cell(0)
+ << ETag("mstyle");
+ else
+ ms << cell(0);
}