Explain Java tex rendering.

507    Asked by artiTrivedi in Java , Asked on Oct 13, 2022

I want to render math formulas in my Java GUI application. I am looking for a library made for computer use, not web use, which can render TeX. I have already tried jLatexMath, but it's very slow when I use it in my application.


If there are any other/better, could you point me in the right direction?


Answered by rhea Singh

Regarding Java tex, using Java's Runtime class you can execute external processes, so you can easily generate some LaTeX input file that contains the LaTeX expressions, execute pdflatex on the input file, possibly use Runtime to convert the pdf output to a different format (with gs) and open the resulting picture.


If you know Java this should be easy to implement. I don't have time to do this myself, but I'm confident this shouldn't take more than an hour or so.



Your Answer

Interviews

Parent Categories