Hi
I am creating some forms that include some math formulas (greek characters, etc). I was thinking about displaying them using the javascript library MathJax (https://www.mathjax.org/).
I have tried to add the library to my template quite unsuccessfully:
My code is shown below:
<template id="assets_backend" name="my_template" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>
<script type="text/javascript" src="/makuku_app/static/src/js/MathJax.min.js"></script>
</xpath>
</template>
The first "script tag shows the link to my files, and the second is configuration required by the libary.
Any insights would be greatly appreciated.
-F
where is the view, frontend or backend?