qky666 / dokuwiki-plugin-odtplus2dw

Import different files (odt, doc, docx...) in a dokuwiki page
3 stars 3 forks source link

Adding the right export features when one authored formulas in LO with the extension TexMaths #6

Closed georgesk closed 8 months ago

georgesk commented 2 years ago

Hello, some change in the xsl file improve the exported data when somebody authors formulas in the ODT document with TexMath (https://extensions.libreoffice.org/en/extensions/show/texmaths-1).

Before the change: nothing is exported from the formula After the change: the LaTeX source of the formula is exported, correctly surrounded by "$" signs, so MathJax can render it properly.

Example : when the ODT document contains a formula "a squared times pi", one can see a nice SVG rendered formula on the screen; when this is exported to DokuWiki, it yields: $a^2 \times \pi$ (as Github features Mathjax, I must write it again so you can see the source: $a^2 \times \pi$)

Thank you in advance for considering this contribution.

Best regards, Georges.

qky666 commented 8 months ago

Hello, Sorry, I did not checked this earlier. I'm not developing this plugin (or even using Dokuwiki) anymore, so I don't come here often.