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
2366
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Aug 21
|
1268 | ||
|
3
Apr 17
|
4636 | ||
How can I style Odoo Form?
Solved
|
|
3
Sep 24
|
1870 | |
|
2
Sep 23
|
8064 | ||
|
1
Sep 23
|
2228 |