Rendering TeX formulas as equation objects in XLSX

Cosimo <[email protected]>
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <[email protected]>
Hi,

I'm trying to render LaTeX equations like:

    \sigma=\frac{\sqrt{3}}{2}

into Excel equation objects. The JLatexMath package allows one to render a latex equation into a PNG image. I tried that, but it seems that the SXSSF streaming interface doesn't allow me to add images to the workbook.

I'm considering an alternative solution, streaming or not, to render latex equations directly into equation objects (the `<m:oMathPara><m:r>...` drawingml objects IIUC).

What I have available from JLatexMath is a Graphics2D interface, so the equations can be painted onto a Graphics2D context. The closest match I found in POI is the EscherGraphics2D class.
Is there any existing way with POI to convert latex into an xml equation/math drawing object? 

I found https://github.com/jgm/texmath that is doing exactly that, but it's Haskell.
Haven't found anything equivalent in Java.

Any ideas?

Thanks,

-- 
Cosimo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.