return in_word_set(from_ascii("slash"));
}
-} // anon namespace
-
+} // namespace
void InsetMathFrac::metrics(MetricsInfo & mi, Dimension & dim) const
int const dy = axis_height(mi.base);
Changer dummy =
// \tfrac is always in text size
- (kind_ == TFRAC) ? mi.base.font.changeStyle(LM_ST_SCRIPT) :
+ (kind_ == TFRAC) ? mi.base.font.changeStyle(FONT_STYLE_SCRIPT) :
// \cfrac and \dfrac are always in display size
(kind_ == CFRAC
|| kind_ == CFRACLEFT
|| kind_ == CFRACRIGHT
- || kind_ == DFRAC) ? mi.base.font.changeStyle(LM_ST_DISPLAY) :
+ || kind_ == DFRAC) ? mi.base.font.changeStyle(FONT_STYLE_DISPLAY) :
// all others
mi.base.changeFrac();
Changer dummy2 = mi.base.changeEnsureMath();
int const dy = axis_height(pi.base);
Changer dummy =
// \tfrac is always in text size
- (kind_ == TFRAC) ? pi.base.font.changeStyle(LM_ST_SCRIPT) :
+ (kind_ == TFRAC) ? pi.base.font.changeStyle(FONT_STYLE_SCRIPT) :
// \cfrac and \dfrac are always in display size
(kind_ == CFRAC
|| kind_ == CFRACLEFT
|| kind_ == CFRACRIGHT
- || kind_ == DFRAC) ? pi.base.font.changeStyle(LM_ST_DISPLAY) :
+ || kind_ == DFRAC) ? pi.base.font.changeStyle(FONT_STYLE_DISPLAY) :
// all others
pi.base.changeFrac();
Dimension const dim1 = cell(1).dimension(*pi.base.bv);
// FIXME This is not right, because we still output mi, etc,
// when we output the cell. So we need to prevent that somehow.
if (nargs() == 2)
- os << cell(0)
- << MTag("mstyle mathvariant='normal'")
- << cell(1)
+ os << cell(0)
+ << MTag("mstyle mathvariant='normal'")
+ << cell(1)
<< ETag("mstyle");
else
- os << MTag("mstyle mathvariant='normal'")
+ os << MTag("mstyle mathvariant='normal'")
<< cell(0)
<< ETag("mstyle");
}
// FIXME This is not right, because we still output i, etc,
// when we output the cell. So we need to prevent that somehow.
if (nargs() == 2)
- os << cell(0)
- << MTag("span")
- << cell(1)
+ os << cell(0)
+ << MTag("span")
+ << cell(1)
<< ETag("span");
else
- os << MTag("span")
+ os << MTag("span")
<< cell(0)
<< ETag("span");
}
Dimension dim0, dim1;
int const dy = axis_height(mi.base);
Changer dummy =
- (kind_ == DBINOM) ? mi.base.font.changeStyle(LM_ST_DISPLAY) :
- (kind_ == TBINOM) ? mi.base.font.changeStyle(LM_ST_SCRIPT) :
+ (kind_ == DBINOM) ? mi.base.font.changeStyle(FONT_STYLE_DISPLAY) :
+ (kind_ == TBINOM) ? mi.base.font.changeStyle(FONT_STYLE_SCRIPT) :
mi.base.changeFrac();
cell(0).metrics(mi, dim0);
cell(1).metrics(mi, dim1);
int m = x + dim.width() / 2;
{
Changer dummy =
- (kind_ == DBINOM) ? pi.base.font.changeStyle(LM_ST_DISPLAY) :
- (kind_ == TBINOM) ? pi.base.font.changeStyle(LM_ST_SCRIPT) :
+ (kind_ == DBINOM) ? pi.base.font.changeStyle(FONT_STYLE_DISPLAY) :
+ (kind_ == TBINOM) ? pi.base.font.changeStyle(FONT_STYLE_SCRIPT) :
pi.base.changeFrac();
// take dy both for the vertical alignment and for the spacing between
// cells