Class
OfficeMathMarkup
OfficeIMO.Drawing
MathML and LaTeX conversion for the shared mathematical expression tree.
Inheritance
- object
- OfficeMathMarkup
Methods
FromLatex 2 overloads
public static OfficeMathExpression FromLatex(string latex) #Parses common LaTeX math constructs without requiring a TeX runtime.
Parameters
- latex string
Returns
OfficeMathExpressionpublic static OfficeMathExpression FromLatex(string latex, int maximumDepth) #Parses common LaTeX math constructs with a hard nesting-depth limit.
Parameters
- latex string
- maximumDepth int
Returns
OfficeMathExpressionFromMathMl 2 overloads
public static OfficeMathExpression FromMathMl(string mathMl) #Parses presentation MathML into the shared expression tree.
Parameters
- mathMl string
Returns
OfficeMathExpressionpublic static OfficeMathExpression FromMathMl(string mathMl, int maximumDepth) #Parses presentation MathML with a hard nesting-depth limit.
Parameters
- mathMl string
- maximumDepth int
Returns
OfficeMathExpressionpublic static string ToLatex(OfficeMathExpression expression) #Serializes an expression as portable LaTeX math source.
Parameters
- expression OfficeIMO.Drawing.OfficeMathExpression
Returns
stringpublic static string ToMathMl(OfficeMathExpression expression, bool display = false) #Serializes an expression as presentation MathML.
Parameters
- expression OfficeIMO.Drawing.OfficeMathExpression
- display bool = false
Returns
stringInherited Methods
Fields
public const int DefaultMaximumParseDepth #Default maximum nested structure depth accepted by portable math parsers.
Value:
128