Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to propertly format "Δ𝑥" using MathML?

Tags:

html

mathml

I'm using MathML embedded in HTML to put mathematical expressions in an HTML document. I'm having difficulty with properly formatting mathematical expressions containing "Δ𝑥". The MathML expressions

<math>
  <mrow>
    <mi mathvariant="normal">&Delta;</mi>
    <mi>x</mi>
  </mrow>
</math>

and

<math>
  <mrow>
    <mo>&Delta;</mo>
    <mi>x</mi>
  </mrow>
</math>

each yield "Δ 𝑥" (i.e. with space between "Δ" and "𝑥"), while

<math>
  <mi>&Delta;x</mi>
</math>

yields "Δx" (i.e. "x" isn't italicized).

Is there a generally accepted way to properly format "Δ𝑥" using MathML?

like image 220
user3405743 Avatar asked Sep 13 '26 17:09

user3405743


1 Answers

Another solution, the MathML expression

<math>
  <mi>&Delta;&#x1D465;</mi>
</math>

yields "Δ𝑥".

Note that &#x1D465; is an HTML entity for the "mathematical italic small x" character.

like image 90
user3405743 Avatar answered Sep 15 '26 08:09

user3405743



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!