Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I am currently trying to develop a scientific calculator, and I have got to the point where any equations typed in by the user are transformed into LaTeX, I just need a control to view the equation. The control must also be able to function in real time to compensate for a blinking cursor.
I have tried to look for a .dll to be able to do this but I haven't come across much for C#. What I have come across is a highly outdated .dll which no longer works. (Enable Your Users to Write Math Equations in Your Web and Desktop Apps[^]
Does anyone know of an easy way to get around this problem? - without linking it with a web application, since the application should work when offline.
Posted

Basically, you would need to create a LaTex WPF component from scratch, but please look at this CodeProject article: A WPF TikZ Editor (TikzEdt)[^].
Even though this is the editor, but your problem of rendering LaTex can be considered as a sub-problem of a problem solved in this article.

Maybe you can find something else: http://bit.ly/1yVQy4u[^].

—SA
 
Share this answer
 
v2
Comments
Zoltán Zörgő 11-Jan-15 16:15pm    
Looks better than mine :) +5
Sergey Alexandrovich Kryukov 11-Jan-15 16:20pm    
Thank you, Zoltán.
—SA
I doubt you will find something like that. You will need to use external tools or services. Take a look at the suggestions posted here: how to convert latex to picture[^]

My suggestion is to use this one http://latex2mathml.codeplex.com/[^] to generate mathml. Than use something like this (https://github.com/jogibear9988/CodeReason.Reports/tree/master/CodeReason.Reports.Math[^]) to render it.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Jan-15 16:23pm    
Well, the second idea is maybe not bad, I voted 5.
First idea — not really. A general note: WPF is very good to push vector graphic approach, to favor it much over pixel graphics. It's not good to downgrade WPF capabilities.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900