Skip to content

Commit c603244

Browse files
Merge pull request #1860 from syncfusion-content/ES-868758-DocIO-Math
ES_868758 - Add UG documentation for applying math justification
2 parents 02d400c + bb43ab4 commit c603244

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

File-Formats/DocIO/Working-with-LaTeX.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,7 @@ The following code examples show how to apply the justification to equations in
18461846
{% tabs %}
18471847

18481848
{% highlight c# tabtitle="C# [Cross-platform]" %}
1849+
{% raw %}
18491850
// Create a new Word document.
18501851
using (WordDocument document = new WordDocument())
18511852
{
@@ -1861,9 +1862,11 @@ using (WordDocument document = new WordDocument())
18611862
document.Save(outputFileStream, FormatType.Docx);
18621863
}
18631864
}
1865+
{% endraw %}
18641866
{% endhighlight %}
18651867

18661868
{% highlight c# tabtitle="C# [Windows-specific]" %}
1869+
{% raw %}
18671870
//Create a new Word document.
18681871
WordDocument document = new WordDocument();
18691872
//Add one section and one paragraph to the document.
@@ -1874,9 +1877,11 @@ WMath math = document.LastParagraph.AppendMath(@"\boxed{{x}^{2}+{y}^{2}={z}^{2}}
18741877
math.MathParagraph.Justification = MathJustification.Left;
18751878
//Save Word document.
18761879
document.Save("Output.docx", FormatType.Docx);
1880+
{% endraw %}
18771881
{% endhighlight %}
18781882

18791883
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
1884+
{% raw %}
18801885
'Create a new Word document.
18811886
Dim document As New WordDocument()
18821887
'Add one section and one paragraph to the document.
@@ -1887,6 +1892,7 @@ Dim math As WMath = document.LastParagraph.AppendMath("\boxed{{x}^{2}+{y}^{2}={z
18871892
math.MathParagraph.Justification = MathJustification.Left
18881893
'Save Word document.
18891894
document.Save("Output.docx", FormatType.Docx)
1895+
{% endraw %}
18901896
{% endhighlight %}
18911897

18921898
{% endtabs %}

0 commit comments

Comments
 (0)