Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeMathMarkup

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
013c05ace7bb with working tree changes
Modifiers
static

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 required
public static OfficeMathExpression FromLatex(string latex, int maximumDepth) #

Parses common LaTeX math constructs with a hard nesting-depth limit.

Parameters

latex string required
maximumDepth int required
FromMathMl 2 overloads
public static OfficeMathExpression FromMathMl(string mathMl) #

Parses presentation MathML into the shared expression tree.

Parameters

mathMl string required
public static OfficeMathExpression FromMathMl(string mathMl, int maximumDepth) #

Parses presentation MathML with a hard nesting-depth limit.

Parameters

mathMl string required
maximumDepth int required
public static string ToLatex(OfficeMathExpression expression) #

Serializes an expression as portable LaTeX math source.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required

Returns

string
public static string ToMathMl(OfficeMathExpression expression, bool display = false) #

Serializes an expression as presentation MathML.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required
display bool = false optional

Returns

string

Fields

public const int DefaultMaximumParseDepth #

Default maximum nested structure depth accepted by portable math parsers.

Value: 128