Home > DeveloperSection > Forums > Display equations in a WPF application
Pravesh Singh

Total Post:412

Posted on    September-21-2013 7:26 AM


 1 Reply(s)
 1437  View(s)
Rate this:

I know this is a duplicate, but all other similar questions I have found are quite old and most accepted answers are outdated or dead links.

I would like to display equations in WPF in a good looking way, if possible without going through generating images. For example having a simple control that I add to my WPF app that would let me add the equation through MathML or Tex formatting.

Since with Windows 7 Microsoft integrated a very nice equation drawing capability (Math Input Panel) and also has several tools that can display nice looking equations (Word and MS Mathematics), I'm very surprised that there is no way to easily display an equation in WPF.

Is there any way to leverage one of those tool for the display?

I'm not trying to edit it, or let the user modify it, but simply display an equation.

Actually, for now, even subscripting or superscripting would be quite useful. I've tried using the Typography.Variants property, but it works only if I choose the font "Palatino Linotype".

Sumit Kesarwani

Total Post:378

Posted on    September-21-2013 8:01 AM

Hi Pravesh,

 It shows how to use MimeTex to take a Tex formatted equation, generate a gif and display it. The example is in winforms but if you can generate the equation it is easy to display in wpf.

Modified On Sep-21-2013 08:02:20 AM

Don't want to miss updates? Please click the below button!

Follow MindStick