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
- Księgowość
- Zapasy
- PoS
- Projekt
- MRP
To pytanie dostało ostrzeżenie
3817
Widoki
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
1
kwi 25
|
1990 | ||
|
|
0
sie 21
|
2919 | ||
|
|
3
kwi 17
|
6373 | ||
|
How can I style Odoo Form?
Rozwiązane
|
|
3
wrz 24
|
5626 | |
|
|
2
wrz 23
|
11021 |