Aspose::Words::Saving::MarkdownOfficeMathExportMode enum

MarkdownOfficeMathExportMode enum

Specifies how Aspose.Words exports OfficeMath to Markdown.

enum class MarkdownOfficeMathExportMode : int

Values

NameValueDescription
Image1Export OfficeMath as image.
Latex3Export OfficeMath as LaTeX.
MarkItDown4Export OfficeMath as LaTeX that is compatible with MarkItDown.
MathML2Export OfficeMath as MathML.
Text0Export OfficeMath as plain text.

Examples

Shows how OfficeMath will be written to the document.

auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Office math.docx"));

auto saveOptions = System::MakeObject<Aspose::Words::Saving::MarkdownSaveOptions>();
saveOptions->set_OfficeMathExportMode(MarkdownOfficeMathExportMode::Image);

doc->Save(get_ArtifactsDir() + u"MarkdownSaveOptions.OfficeMathExportMode.md", saveOptions);

Shows how to export OfficeMath object as Latex.

auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Office math.docx"));

auto saveOptions = System::MakeObject<Aspose::Words::Saving::MarkdownSaveOptions>();
saveOptions->set_OfficeMathExportMode(MarkdownOfficeMathExportMode::Latex);

doc->Save(get_ArtifactsDir() + u"MarkdownSaveOptions.ExportOfficeMathAsLatex.md", saveOptions);

Shows how to export OfficeMath object as MarkItDown.

auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Office math.docx"));

auto saveOptions = System::MakeObject<Aspose::Words::Saving::MarkdownSaveOptions>();
saveOptions->set_OfficeMathExportMode(MarkdownOfficeMathExportMode::MarkItDown);

doc->Save(get_ArtifactsDir() + u"MarkdownSaveOptions.ExportOfficeMathAsMarkItDown.md", saveOptions);

See Also