Spire.Presentation 11.6.11 现已发布。该版本新增支持将公式导出为 MathML 与 LaTeX 代码,方便在不同平台和应用场景中使用数学公式。详情如下。 新功能: 支持导出公式为 MathML 与 LaTeX 代码。 IAutoShape shapeFormula = slide.Shapes.AppendShape(ShapeType.Rectangle,new RectangleF(40, currentTop, shapeWidth, formulaHeight)); // 插入 LaTeX 公式 TextParagraph formulaPara = shapeFormula.TextFrame.Paragraphs.AddParagraphFromLatexMathCode(latex); // 导出 MathML string mathML = formulaPara.ExportMathML();…