Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts

First, look at this page, please:
http://www.codecogs.com/latex/eqneditor.php[^]

I need to create a user-control like something you saw in the above page;
A Windows Form Label to show equations which are in laTex format.
Is that even possible? If Yes, how?
Posted

This is quite a difficult problem, to make the editor the way it is done in the page you referenced. This is done throw low-level graphics which is drawn on a bitmap which is then shown on the page. Drawing is not a problem at all, but logical structure of mathematical expression and translating it into geometry of traditional mathematical notations is a really big work. In you have some basic question, I'll answer, but you cannot expect any advanced solutions.

Pay attention that the same page is supposed to support much easier alternative: MathML (as alpha-version). In this case, all the graphical rendering is already done. HTML5 supports direct embedding of MathML in HTML. As this way assumes that you use a lot of existing MathML functionality, this problem looks order of magnitude more realistic. However, a Quick Answer won't help you to get a quick and easy solution; this is still a lot of serious work. If you still want to start such a project, please see:
http://en.wikipedia.org/wiki/MathML[^],
http://en.wikipedia.org/wiki/HTML5#Differences_from_HTML.C2.A04.01_and_XHTML.C2.A01.x[^].

—SA
 
Share this answer
 
Comments
Meysam Toluie 9-Mar-14 1:18am    
I am looking for some easiest way.
See: http://stackoverflow.com/questions/15042334/how-to-add-superscript-power-operators-in-c-sharp-winforms
Sergey Alexandrovich Kryukov 9-Mar-14 1:24am    
Superscript/subscript is so easy that there is nothing to talk about. You have asked about the functionality as on the page you referenced and got an adequate answer. Are you going to accept it formally or not?
—SA
Abhinav S 9-Mar-14 2:02am    
5.
Sergey Alexandrovich Kryukov 9-Mar-14 12:02pm    
Thank you, Abhinav.
—SA
 
Share this answer
 

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