I'm trying to convert docx containing equations to on Android. I came across docx4j which is great and tested
- Code: Select all
HtmlExporterNonXSTL
However I noticed that it doesn't handler equations well - if some symbol or number has some power and/or indices their position is alway in the middle e.g.
- Code: Select all
k_{n+1}^2 (using latex format here so you can get the gist)
is displayed as:
- Code: Select all
kn+12 (with 'n+12' having correct smaller font but they are both centered vertically)
Is there any way to adjust CSS to handle powers and indices? (full formula conversion would be better but I guess it is not so easy). I'm new to docx4j but looks like somehow
- Code: Select all
handlePPr()
Another think: All generated styles are inline. Is there any way to add 'id' so e.g. font size can be later changed by adjusting css?