Enum MarkdownOfficeMathExportMode

Enum MarkdownOfficeMathExportMode

Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.12.0)

Specifies how Aspose.Words exports OfficeMath to Markdown.

public enum MarkdownOfficeMathExportMode

Fields

Image = 1

Export OfficeMath as image.

Latex = 3

Export OfficeMath as LaTeX.

MarkItDown = 4

Export OfficeMath as LaTeX that is compatible with MarkItDown.

Please see https://github.com/microsoft/markitdown for details on MarkItDown.

MathML = 2

Export OfficeMath as MathML.

Text = 0

Export OfficeMath as plain text.

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