Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 51 additions & 21 deletions File-Formats/DocIO/Working-with-LaTeX.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The .NET Word (DocIO) library allows to create mathematical equation in Word doc

## Accent

Add **accent** equation to a Word document using the LaTeX through **AppendMath** API.
Add **accent** 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.

The following code example illustrates how to create accent equation using LaTeX in Word document.

Expand Down Expand Up @@ -65,6 +65,8 @@ 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/Accent/.NET).

The following table demonstrates the LaTeX equivalent to professional format accent equations.

<table>
Expand Down Expand Up @@ -149,7 +151,7 @@ The following table demonstrates the LaTeX equivalent to professional format acc

## Bar

Add **bar** equation to a Word document using the LaTeX through **AppendMath** API.
Add **bar** 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.

The following code example illustrates how to create bar equation using LaTeX in Word document.

Expand Down Expand Up @@ -203,6 +205,8 @@ 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/Bar/.NET).

The following table demonstrates the LaTeX equivalent to professional format bar equations.

<table>
Expand All @@ -227,7 +231,7 @@ The following table demonstrates the LaTeX equivalent to professional format bar

## Box

Add **box** equation to a Word document using the LaTeX through **AppendMath** API.
Add **box** 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.

The following code example illustrates how to create box equation using LaTeX in Word document.

Expand Down Expand Up @@ -281,6 +285,8 @@ 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/Box/.NET).

The following table demonstrates the LaTeX equivalent to professional format box equations.

<table>
Expand All @@ -300,7 +306,7 @@ The following table demonstrates the LaTeX equivalent to professional format box

## Border Box

Add **border box** equation to a Word document using the LaTeX through **AppendMath** API.
Add **border box** 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.

The following code example illustrates how to create border box equation using LaTeX in Word document.

Expand Down Expand Up @@ -354,6 +360,8 @@ 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/Border-Box/.NET).

The following table demonstrates the LaTeX equivalent to professional format border box equations.

<table>
Expand All @@ -373,7 +381,7 @@ The following table demonstrates the LaTeX equivalent to professional format bor

## Delimiter

Add **delimiter** equation to a Word document using the LaTeX through **AppendMath** API.
Add **delimiter** 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.

The following code example illustrates how to create delimiter equation using LaTeX in Word document.

Expand Down Expand Up @@ -427,6 +435,8 @@ 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/Delimiter/.NET).

The following table demonstrates the LaTeX equivalent to professional format delimiter equations.

<table>
Expand Down Expand Up @@ -581,7 +591,7 @@ The following table demonstrates the LaTeX equivalent to professional format del

## Fraction

Add **fraction** equation to a Word document using the LaTeX through **AppendMath** API.
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.

The following code example illustrates how to create fraction equation using LaTeX in Word document.

Expand Down Expand Up @@ -635,6 +645,8 @@ 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/Fraction/.NET).

The following table demonstrates the LaTeX equivalent to professional format fraction equations.

<table>
Expand Down Expand Up @@ -669,7 +681,7 @@ The following table demonstrates the LaTeX equivalent to professional format fra

## Function

Add **function** equation to a Word document using the LaTeX through **AppendMath** API.
Add **function** 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.

The following code example illustrates how to create function equation using LaTeX in Word document.

Expand Down Expand Up @@ -723,6 +735,8 @@ 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/Function/.NET).

The following table demonstrates the LaTeX equivalent to professional format function equations.

<table>
Expand Down Expand Up @@ -887,7 +901,7 @@ The following table demonstrates the LaTeX equivalent to professional format fun

## Group character

Add **group character** equation to a Word document using the LaTeX through **AppendMath** API.
Add **group character** 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.

The following code example illustrates how to create group character equation using LaTeX in Word document.

Expand Down Expand Up @@ -941,6 +955,8 @@ 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/Group-character/.NET).

The following table demonstrates the LaTeX equivalent to professional format group character equations.

<table>
Expand All @@ -965,7 +981,7 @@ The following table demonstrates the LaTeX equivalent to professional format gro

## Limit

Add **limit** equation to a Word document using the LaTeX through **AppendMath** API.
Add **limit** 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.

The following code example illustrates how to create limit equation using LaTeX in Word document.

Expand All @@ -979,7 +995,7 @@ using WordDocument document = new WordDocument();
document.EnsureMinimal();

//Append an limit equation using LaTeX.
document.LastParagraph.AppendMath(@"\lim\belowb{a}");
document.LastParagraph.AppendMath(@"\lim\below{b}{a}");

//Save the Word document to MemoryStream
using MemoryStream stream = new MemoryStream();
Expand All @@ -996,7 +1012,7 @@ using WordDocument document = new WordDocument();
document.EnsureMinimal();

//Append an limit equation using LaTeX.
document.LastParagraph.AppendMath(@"\lim\belowb{a}");
document.LastParagraph.AppendMath(@"\lim\below{b}{a}");

//Save the Word document.
document.Save("Result.docx", FormatType.Docx);
Expand All @@ -1011,14 +1027,16 @@ Dim document As WordDocument = New WordDocument()
document.EnsureMinimal()

'Append an limit equation using LaTeX.
document.LastParagraph.AppendMath(@"\lim\belowb{a}")
document.LastParagraph.AppendMath(@"\lim\below{b}{a}")

'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/Limit/.NET).

The following table demonstrates the LaTeX equivalent to professional format limit equations.

<table>
Expand All @@ -1032,23 +1050,23 @@ The following table demonstrates the LaTeX equivalent to professional format lim
<tr>
<td>1.</td>
<td><img src="WorkingwithMathematicalEquation_images/Limit1.png" alt="Limit equation"></td>
<td>\lim\belowb{a}</td>
<td>\lim\below{b}{a}</td>
</tr>
<tr>
<td>2.</td>
<td><img src="WorkingwithMathematicalEquation_images/Limit2.png" alt="Limit equation"></td>
<td>\min\belowb{a}</td>
<td>\min\below{b}{a}</td>
</tr>
<tr>
<td>3.</td>
<td><img src="WorkingwithMathematicalEquation_images/Limit3.png" alt="Limit equation"></td>
<td>\max\belowb{a}</td>
<td>\max\below{b}{a}</td>
</tr>
</table>

## Matrix

Add **matrix** equation to a Word document using the LaTeX through **AppendMath** API.
Add **matrix** 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.

The following code example illustrates how to create matrix equation using LaTeX in Word document.

Expand Down Expand Up @@ -1102,6 +1120,8 @@ 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/Matrix/.NET).

The following table demonstrates the LaTeX equivalent to professional format matrix equations.

<table>
Expand All @@ -1121,7 +1141,7 @@ The following table demonstrates the LaTeX equivalent to professional format mat

## N-array

Add **N-array** equation to a Word document using the LaTeX through **AppendMath** API.
Add **N-array** 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.

The following code example illustrates how to create N-array equation using LaTeX in Word document.

Expand Down Expand Up @@ -1175,6 +1195,8 @@ 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/N-array/.NET).

The following table demonstrates the LaTeX equivalent to professional format N-array equations.

<table>
Expand Down Expand Up @@ -1244,7 +1266,7 @@ The following table demonstrates the LaTeX equivalent to professional format N-a

## Radical

Add **radical** equation to a Word document using the LaTeX through **AppendMath** API.
Add **radical** 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.

The following code example illustrates how to create radical equation using LaTeX in Word document.

Expand Down Expand Up @@ -1298,6 +1320,8 @@ 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/Radical/.NET).

The following table demonstrates the LaTeX equivalent to professional format radical equations.

<table>
Expand All @@ -1322,7 +1346,7 @@ The following table demonstrates the LaTeX equivalent to professional format rad

## SubSuperScript

Add **SubSuperScript** equation to a Word document using the LaTeX through **AppendMath** API.
Add **SubSuperScript** 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.

The following code example illustrates how to create SubSuperScript equation using LaTeX in Word document.

Expand Down Expand Up @@ -1376,6 +1400,8 @@ 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/SubSuperScript/.NET).

The following table demonstrates the LaTeX equivalent to professional format SubSuperScript equations.

<table>
Expand All @@ -1400,7 +1426,7 @@ The following table demonstrates the LaTeX equivalent to professional format Sub

## Left SubSuperScript

Add **Left SubSuperScript** equation to a Word document using the LaTeX through **AppendMath** API.
Add **Left SubSuperScript** 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.

The following code example illustrates how to create Left SubSuperScript equation using LaTeX in Word document.

Expand Down Expand Up @@ -1454,6 +1480,8 @@ 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/Left-SubSuperScript/.NET)

The following table demonstrates the LaTeX equivalent to professional format Left SubSuperScript equations.

<table>
Expand All @@ -1473,7 +1501,7 @@ The following table demonstrates the LaTeX equivalent to professional format Lef

## Right SubSuperScript

Add **Right SubSuperScript** equation to a Word document using the LaTeX through **AppendMath** API.
Add **Right SubSuperScript** 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.

The following code example illustrates how to create Right SubSuperScript equation using LaTeX in Word document.

Expand Down Expand Up @@ -1527,6 +1555,8 @@ 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/Right-SubSuperScript/.NET).

The following table demonstrates the LaTeX equivalent to professional format Right SubSuperScript equations.

<table>
Expand Down
8 changes: 8 additions & 0 deletions File-Formats/DocIO/word-to-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-Image-conversion/Initialize-default-fallback-fonts).

### Fallback fonts based on script type

The following code example demonstrates how a user can add fallback fonts based on the script types, which DocIO considers internally when converting a Word document to an Image.
Expand Down Expand Up @@ -433,6 +435,8 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype).

### Fallback fonts for range of Unicode text

Users can set fallback fonts for specific Unicode range of text to be used in Word to Image conversion.
Expand Down Expand Up @@ -486,6 +490,8 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range).

### Modify the exiting fallback fonts

The following code example demonstrates how user can modify or customize the existing fallback fonts using *FontNames* API while converting a Word document to an Image.
Expand Down Expand Up @@ -535,6 +541,8 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts).

### Supported script types

The following table illustrates the supported script types by the .NET Word library (DocIO) in Word to Image conversion.
Expand Down
8 changes: 8 additions & 0 deletions File-Formats/DocIO/word-to-pdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,8 @@ End Using

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Initialize-default-fallback-fonts).

### Fallback fonts based on script type

The following code example demonstrates how a user can add fallback fonts based on the script types, which DocIO considers internally when converting a Word document to PDF.
Expand Down Expand Up @@ -1877,6 +1879,8 @@ End Using

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype).

### Fallback fonts for range of Unicode text

Users can set fallback fonts for specific Unicode range of text to be used in Word to PDF conversion.
Expand Down Expand Up @@ -1984,6 +1988,8 @@ End Using

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range).

### Modify the exiting fallback fonts

The following code example demonstrates how user can modify or customize the existing fallback fonts using *FontNames* API while converting a Word document to PDF.
Expand Down Expand Up @@ -2083,6 +2089,8 @@ End Using

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts).

### Supported script types

The following table illustrates the supported script types by the .NET Word library (DocIO) in Word to PDF conversion.
Expand Down