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.
MarkItDown4Export OfficeMath as LaTeX that is compatible with MarkItDown.

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);

Shows how to export OfficeMath object as MarkItDown.

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

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

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

See Also