On 11/22/24 08:09, Martin Goik wrote:
On 11/21/24 17:28, Hussein Shafie wrote:
Bård wrote:
I’ve been looking into the details of the “customize.xxe”-system. We
would like to replace the PNG output from texmathtoimg.bat with SVG.
The reason is that SVG renders much better in a browser, in
particular when users zoom. It is also easier to scale the image
using the viewport scale settings.
You may want to consider Javascript based https://www.mathjax.org in
favour of generated SVG images. The following sample has been generated
from Docbook5.1:
https://freedocs.mi.hdm-stuttgart.de/sd1MathSin.html#sd1QandaSin
Nice aside: Mathjax supports both TeX/LaTeX and MathML. The latter in
turn being visually supported by Xmlmind editor.
Thank you for sharing your experience.
Note that out of the box, XMLmind XML Editor (and more precisely
software component XMLmind DITA Converter,
https://www.xmlmind.com/ditac/) supports MathJax when converting *DITA*
documents to any of the HTML based output formats.
See XSLT stylesheet parameters:
mathjax,
https://www.xmlmind.com/ditac/_distrib/doc/manual/webhelp/xsltParams.html#xsltParams__I_uorpwq_
mathjax-url,
https://www.xmlmind.com/ditac/_distrib/doc/manual/webhelp/xsltParams.html#xsltParams__I_uorpwq_
See sample output:
https://www.xmlmind.com/ditac/_distrib/doc/manual/webhelp3/media.html#media__mathml
On the other hand, out of the box, MathJax is *not* supported when
converting *DocBook* documents to any of the HTML based output formats.
Out of the box, XXE, will extract all MathML elements embedded in the
DocBook document, save these to temporary ".mml" files and convert these
".mml" files to SVG files by the means of the "JEuclid image toolkit
plug-in" add-on,
https://www.xmlmind.com/xmleditor/addons_doc.html#jeuclid_imagetoolkit
(which is installed by default).
There are of course ways to add MathJax support to DocBook to HTML
conversion but this would require modifying
XXE_install_dir/addon/config/docbook51/docbook51_convert_input.incl
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support