diff --git a/File-Formats/DocIO/Working-with-LaTeX.md b/File-Formats/DocIO/Working-with-LaTeX.md index 52f071b97..19123c44a 100644 --- a/File-Formats/DocIO/Working-with-LaTeX.md +++ b/File-Formats/DocIO/Working-with-LaTeX.md @@ -594,6 +594,80 @@ The following table demonstrates the LaTeX equivalent to professional format del +## Equation Array + +Add **equation array** to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. + +The following code example illustrates how to create an equation array using LaTeX in Word document. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} + +// Create a new Word document. +using WordDocument document = new WordDocument(); + +//Add one section and one paragraph to the document. +document.EnsureMinimal(); + +//Append an box equation using LaTeX. +document.LastParagraph.AppendMath(@"\eqarray{a@&b}"); + +//Save the Word document to MemoryStream +using MemoryStream stream = new MemoryStream(); +document.Save(stream, FormatType.Docx); + +{% endhighlight %} +{% highlight c# tabtitle="C# [Windows-specific]" %} + +// Create a new Word document. +using WordDocument document = new WordDocument(); + +//Add one section and one paragraph to the document. +document.EnsureMinimal(); + +//Append an box equation using LaTeX. +document.LastParagraph.AppendMath(@"\eqarray{a@&b}"); + +//Save the Word document. +document.Save("Result.docx", FormatType.Docx); + +{% endhighlight %} +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} + +' Create a new Word document. +Dim document As WordDocument = New WordDocument() + +'Add one section and one paragraph to the document. +document.EnsureMinimal() + +'Append an box equation using LaTeX. +document.LastParagraph.AppendMath(@"\eqarray{a@&b}"); + +'Save the Word document. +document.Save("Result.docx", FormatType.Docx) + +{% endhighlight %} +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Equation-array/.NET). + +The following table demonstrates the LaTeX equivalent to professional format equation array. + + + + + + + + + + + + + + +
S.NoProfessionalLaTeX
1.Equation array\eqarray{a@&b}
+ ## Fraction Add **fraction** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. diff --git a/File-Formats/DocIO/WorkingwithMathematicalEquation_images/EquationArray1.png b/File-Formats/DocIO/WorkingwithMathematicalEquation_images/EquationArray1.png new file mode 100644 index 000000000..07c955849 Binary files /dev/null and b/File-Formats/DocIO/WorkingwithMathematicalEquation_images/EquationArray1.png differ