MarkdownOfficeMathExportMode

MarkdownOfficeMathExportMode enumeration

Specifies how Aspose.Words exports OfficeMath to Markdown.

public enum MarkdownOfficeMathExportMode

Values

NameValueDescription
Text0Export OfficeMath as plain text.
Image1Export OfficeMath as image.
MathML2Export OfficeMath as MathML.
Latex3Export OfficeMath as LaTeX.

Examples

Shows how OfficeMath will be written to the document.

Document doc = new Document(MyDir + "Office math.docx");

MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.OfficeMathExportMode = MarkdownOfficeMathExportMode.Image;

doc.Save(ArtifactsDir + "MarkdownSaveOptions.OfficeMathExportMode.md", saveOptions);

Shows how to export OfficeMath object as Latex.

Document doc = new Document(MyDir + "Office math.docx");

MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.OfficeMathExportMode = MarkdownOfficeMathExportMode.Latex;

doc.Save(ArtifactsDir + "MarkdownSaveOptions.ExportOfficeMathAsLatex.md", saveOptions);

See Also