X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathFactory.cpp;h=08f0b01e392157de8546663066a5f9366c4aaa60;hb=d9082639080b9de993742bd352f92e5183058cf5;hp=9a8ab051964489a211c1a7cdde4004acadcbf49f;hpb=e292dd70bf615d5dcc6b20a581ba1b71db0ee4a8;p=lyx.git diff --git a/src/mathed/MathFactory.cpp b/src/mathed/MathFactory.cpp index 9a8ab05196..08f0b01e39 100644 --- a/src/mathed/MathFactory.cpp +++ b/src/mathed/MathFactory.cpp @@ -380,7 +380,7 @@ void initMath() } -bool ensureMath(WriteStream & os, bool needs_mathmode, bool macro, +bool ensureMath(TeXMathStream & os, bool needs_mathmode, bool macro, bool textmode_macro) { bool brace = os.pendingBrace(); @@ -420,8 +420,8 @@ bool ensureMath(WriteStream & os, bool needs_mathmode, bool macro, } -int ensureMode(WriteStream & os, InsetMath::mode_type mode, - bool locked, bool ascii) +int ensureMode(TeXMathStream & os, InsetMath::mode_type mode, + bool locked, bool ascii) { bool textmode = mode == InsetMath::TEXT_MODE; if (os.latex() && textmode && os.pendingBrace()) { @@ -624,6 +624,8 @@ MathAtom createInsetMath(docstring const & s, Buffer * buf) return MathAtom(new InsetMathFrac(buf, InsetMathFrac::CFRACLEFT)); if (s == "cfracright") return MathAtom(new InsetMathFrac(buf, InsetMathFrac::CFRACRIGHT)); + if (s == "case") // TODO: only if class is aastex(6|62) + return MathAtom(new InsetMathFrac(buf, InsetMathFrac::AASTEX_CASE)); //if (s == "infer") // return MathAtom(new MathInferInset); if (s == "atop")