---
title: "Display equations in a WPF application"  
description: "Display equations in a WPF application"  
author: "Pravesh Singh"  
published: 2013-09-21  
updated: 2013-09-21  
canonical: https://www.mindstick.com/forum/1470/display-equations-in-a-wpf-application  
category: "wpf"  
tags: ["wpf"]  
reading_time: 2 minutes  

---

# Display equations in a WPF application

I know this is a [duplicate](https://www.mindstick.com/forum/160911/sql-query-to-find-duplicate-records-in-a-table-in-sql-server), but all other similar [questions](https://www.mindstick.com/blog/124895/hp-hpe0-s54-cheat-sheet-exam-questions-bank-for-guaranteed-success) I have found are quite old and most [accepted](https://yourviews.mindstick.com/view/80674/whatsapp-accepted-as-most-popular-app-worldwide) [answers](https://www.mindstick.com/forum/156899/salesforce-marketing-cloud-interview-questions-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](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) that I add to my WPF app that would let me add the equation through MathML or Tex formatting.

Since with [Windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) 7 [Microsoft](https://www.mindstick.com/articles/12301/microsoft-is-trying-to-kill-passwords) [integrated](https://www.mindstick.com/forum/33532/handler-pagehandlerfactory-integrated-has-a-bad-module-managedpipelinehandler-in-its-module-list) a very nice equation drawing capability (Math Input Panel) and also has several tools that can display nice looking equations (Word and MS [Mathematics](https://www.mindstick.com/blog/302840/mathematics-and-its-applications-in-science-and-beyond)), 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](https://www.mindstick.com/blog/205/property-notification-in-c-sharp), but it works only if I choose the font "Palatino Linotype".

## Replies

### Reply by Sumit Kesarwani

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.


---

Original Source: https://www.mindstick.com/forum/1470/display-equations-in-a-wpf-application

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
