Is there an open source Java library to create LaTeX input?
<p>A while ago I started writing some ad-hoc code to convert matrices I created with Java code into LaTeX source code, resulting in <a href="https://github.com/bioclipse/bioclipse.latex" rel="nofollow">this (open source) code</a>. However, since this is not really core business, I don't want to spend too much time on extending this code base, but it currently only exports a matrix as a table, but I would also love it experted as a math environment.</p>

<p>Therefore, I was wondering if there are existing open source Java libraries which allow me to create LaTeX source fragments?</p>
