Skip to Content
Menu
This question has been flagged

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>&#x2214;<!-- ∔ --></mo>
  <msubsup>
    <mo>&#x222E;<!-- ∮ --></mo>
    <mi>a</mi>
    <mi>b</mi>
  </msubsup>
</math>
</p>

Avatar
Discard
Related Posts Replies Views Activity
0
Aug 21
1268
3
Apr 17
4636
3
Sep 24
1870
2
Sep 23
8064
1
Sep 23
2228