Hi Guys,
I want to preview TeX formulas in my User Interface. After a long time searching, it seems to me that there is no other possibility than
- write the formula into a .tex file
- call tex with system() and write a dvi file
- call e.g. dvipng with system() and write a png file
- load this file into the GUI
- clean up(erase all these files).
I think that the performance of this way doing it is not a problem, since there are only formulas to render and not whole documents. But setting up the environment automatically for the TeX system seems to be a bigger problem. So, is there a possibility to include TeX as an API in my program? Thanks a lot!