DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Mathematical Expressions

Open MAkcanca opened this issue 5 years ago • 3 comments

I've been trying to retrieve basic mathematical equations such as 10^2 but DocX seems to get the text as 102. Is there a way to retrieve mathematical equations in a formatted manner?

MAkcanca avatar May 14 '20 08:05 MAkcanca

Hi,

For equations, you can have a look at sample EquationSample.InsertEquation() from Xceed.Words.NET.Examples.

Maybe something like "10\u00B2" will produce 10^2.

XceedBoucherS avatar May 15 '20 18:05 XceedBoucherS

Inserting equation is pretty straightforward. Parsing it however is not. That's where the problem is.

MAkcanca avatar May 16 '20 15:05 MAkcanca

Currently, I think your only solution will be to create a parser and detect specific symbol in order to recognize equations.

XceedBoucherS avatar May 19 '20 11:05 XceedBoucherS