mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Add InsetMathClass to the list of math completions
This commit is contained in:
parent
ea7704a354
commit
e02f287f8b
10
lib/symbols
10
lib/symbols
@ -203,6 +203,16 @@ textstyle style 2
|
|||||||
scriptstyle style 1
|
scriptstyle style 1
|
||||||
scriptscriptstyle style 0
|
scriptscriptstyle style 0
|
||||||
|
|
||||||
|
# math classes
|
||||||
|
mathord class none
|
||||||
|
mathop class none
|
||||||
|
mathbin class none
|
||||||
|
mathrel class none
|
||||||
|
mathopen class none
|
||||||
|
mathclose class none
|
||||||
|
mathpunct class none
|
||||||
|
mathinner class none
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
# The commented lines in this block get misparsed as MathSymbolInset because
|
# The commented lines in this block get misparsed as MathSymbolInset because
|
||||||
# createMathInset() does not know them. I don't know if this is old cruft
|
# createMathInset() does not know them. I don't know if this is old cruft
|
||||||
|
@ -459,6 +459,8 @@ MathAtom createInsetMath(docstring const & s, Buffer * buf)
|
|||||||
return MathAtom(new InsetMathDecoration(buf, l));
|
return MathAtom(new InsetMathDecoration(buf, l));
|
||||||
if (inset == "space")
|
if (inset == "space")
|
||||||
return MathAtom(new InsetMathSpace(to_ascii(l->name), ""));
|
return MathAtom(new InsetMathSpace(to_ascii(l->name), ""));
|
||||||
|
if (inset == "class")
|
||||||
|
return MathAtom(new InsetMathClass(buf, string_to_class(s)));
|
||||||
if (inset == "dots")
|
if (inset == "dots")
|
||||||
return MathAtom(new InsetMathDots(l));
|
return MathAtom(new InsetMathDots(l));
|
||||||
if (inset == "mbox")
|
if (inset == "mbox")
|
||||||
@ -666,10 +668,6 @@ MathAtom createInsetMath(docstring const & s, Buffer * buf)
|
|||||||
if (s == "regexp")
|
if (s == "regexp")
|
||||||
return MathAtom(new InsetMathHull(buf, hullRegexp));
|
return MathAtom(new InsetMathHull(buf, hullRegexp));
|
||||||
|
|
||||||
MathClass const mc = string_to_class(s);
|
|
||||||
if (mc != MC_UNKNOWN)
|
|
||||||
return MathAtom(new InsetMathClass(buf, mc));
|
|
||||||
|
|
||||||
return MathAtom(new MathMacro(buf, s));
|
return MathAtom(new MathMacro(buf, s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user