Aspose::Words::Saving::MarkdownOfficeMathExportMode enum

MarkdownOfficeMathExportMode enum

Specifies how Aspose.Words exports OfficeMath to Markdown.

enum class 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.

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

auto saveOptions = System::MakeObject<Aspose::Words::Saving::MarkdownSaveOptions>();
saveOptions->set_OfficeMathExportMode(Aspose::Words::Saving::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>(get_MyDir() + u"Office math.docx");

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

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

See Also