Is there any way to extend the features of html field, so that it display the Scientific Equations in their original format.
MathJax offer two java scripts, which is highly compatible with all the browser and mobile. While odoo’s form view is unable to print such equations in browsers either using MathJax’s code or MathML used in directly in form view as code or in html field as value.
odoo’s controller based temple is showing these equations in proper format using the MathJax’s equations. But we html field to behave like that
https://www.mathjax.org/
https://www.mathjax.org/#demo
https://en.m.wikipedia.org/wiki/MathML
http://hostmath.com/
Here is the example of using mathML in example.
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
</script>
<p>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mfrac>
<mrow>
<mtext>d</mtext>
<mi>x</mi>
</mrow>
<mrow>
<mtext>d</mtext>
<mi>y</mi>
</mrow>
</mfrac>
<mo>∔<!-- ∔ --></mo>
<msubsup>
<mo>∮<!-- ∮ --></mo>
<mi>a</mi>
<mi>b</mi>
</msubsup>
</math>
</p>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2240
Views