DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Insert equation to document

Open stgeorges opened this issue 4 years ago • 3 comments

Hello @XceedBoucherS ,

I would like to insert a "Professional" equation containing square root and power. This one:

image

In your EquationSample.cs file, there is a code provided for "Linear" equation:

image

document.InsertEquation( "x = ( -b \u00B1 \u221A(b\u00B2 - 4ac))/2a" ).FontSize( 18 ).Color( Color.Blue );

Does this mean that DocX at the moment does not support Word's "Profesional" equation types?

Thank you for the reply.

stgeorges avatar Jun 14 '20 20:06 stgeorges

Hi, At the moment, DocX only support equation as a "text". We just add an internal issue to convert an equation to "Professional" equation. Thank you for reporting this.

XceedBoucherS avatar Jun 16 '20 14:06 XceedBoucherS

Hi @XceedBoucherS, Thank you. Out of curiosity, which was the version of DocX when support for unicode characters was added to the document.InsertEquation method? v1.3.0?

stgeorges avatar Jun 16 '20 23:06 stgeorges

What do you mean "support for unicode characters was added to the document.InsertEquation method" ? I don't remember unicode character being changed for quite a while(maybe from start). Do you have an example of when it was not working and when it was working ? Thank you.

XceedBoucherS avatar Jun 17 '20 19:06 XceedBoucherS