Hi there,
How can I display math formula or symbol in wxWidgets? I don't want image method, it's not flexible to change in codes.
Is there any better way? or a kind of Tex render for wxWidgets?
Thanks a lot!
How to display math formula or symbol in wxWidgets? Topic is solved
Re: How to display math formula or symbol in wxWidgets?
Hi,
?
Check wxDC documentation for proper parameters to the function...
Also, depending where do you want the formula to appear (wxRTC, wxTextCtrl, wxSTC), you might be using a special functions.
Thank you.
Code: Select all
dc.DrawText();
Check wxDC documentation for proper parameters to the function...
Also, depending where do you want the formula to appear (wxRTC, wxTextCtrl, wxSTC), you might be using a special functions.
Thank you.
Re: How to display math formula or symbol in wxWidgets?
I mean this kind of math formula or express:
https://upload.wikimedia.org/wikipedia/ ... ession.png
https://upload.wikimedia.org/wikipedia/ ... ession.png
Re: How to display math formula or symbol in wxWidgets?
I don't know any C or C++ library for converting from LATEX to image, except latexpp , so you can try to use it. As an alternative you can find some utility for convertation and call it from your application.
Re: How to display math formula or symbol in wxWidgets?
This github project looks good.
From my point of view, there are two methods (which I think [latexpp](https://github.com/goldsborough/latexpp) covers those two methods)
1, use the pipe, and send command to the latex engine, and get the result image(such as a png image), and load the png image in the wx based application.
2, use some javascript library, which need a wxWidget based web(html) render supporting javascripts(such as Katex or Mathjax).
I think method 1 is much simpler than method 2.
But I think method 2 can be more dynamic, anyone has any experience about method 2?
Thanks.
Re: How to display math formula or symbol in wxWidgets?
Thank you, ollydbg23!ollydbg23 wrote: ↑Tue Mar 24, 2020 12:57 am https://github.com/NanoMichael/cLaTeXMath
I found another good latex render library.
It looks good.
Re: How to display math formula or symbol in wxWidgets?
Please note that the cLaTeXMath project doesn't have a wxWidgets port, so you have to implement it yourself. Show us the progress if you have any good work.shawnee wrote: ↑Tue Apr 07, 2020 7:33 amThank you, ollydbg23!ollydbg23 wrote: ↑Tue Mar 24, 2020 12:57 am https://github.com/NanoMichael/cLaTeXMath
I found another good latex render library.
It looks good.