MathML Getting Started - boostcamp-2020/Project15-A-Client-Based-Formula-Editor GitHub Wiki
MathML 곡μλ¬Έμ κ°μ΄λ λ°λ‘κ°κΈ°
MDN MathML λ°λ‘κ°κΈ°
-
HTML5
μμ μ¬μ© κ°λ₯ - κΈ°λ³Έμ μΈ μνμ ꡬ쑰λ
mathml.css
λ‘ μΆ©λΆ - ν€λμ mathml.css μ½μ
<script src="[https://fred-wang.github.io/mathml.css/mspace.js](https://fred-wang.github.io/mathml.css/mspace.js)"></script>
- λ 볡μ‘ν κ΅¬μ‘°κ° νμν κ²½μ° MathJax λΌμ΄λΈλ¬λ¦¬λ₯Ό MathML ν΄λ¦¬νλ‘ μ¬μ©νλ€.
- μ€νμΌ μμ± μ¬μ©νκΈ° μν΄μ νμ!
<script src="[https://fred-wang.github.io/mathjax.js/mpadded-min.js](https://fred-wang.github.io/mathjax.js/mpadded-min.js)"></script>
- MathMLμ λ£¨νΈ μμλ
<math>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>z</mi>
<mo>=</mo>
<mn>2</mn>
<mo>-</mo>
<mn>3</mn>
</math>
-
mn
: number token- λΆνΈ μλ μ μ λλ μ€μ ν¬ν¨
- 2, 3.04
- μμλ ν¬ν¨νμ§ μμΌλ©°, -(λ§μ΄λμ€)λ μ°μ°μμ ν¬ν¨λλ€.
-
mi
: identifier token- ν¨μ μ΄λ¦ λ° κΈ°νΈ, μμ ν¬ν¨
- x, sin, Ο
-
mo
: operator token- μν μ°μ°μ ν¬ν¨
- +, -, β
-
mathvariant
: font style- normal, bold, italic, bold-italic, script
-
mathsize
: font size- small, normal, big, 12px
-
mathcolor
: font color -
mathbackground
<math>
<mi>y</mi>
<mo>=</mo>
<mi mathbackground="red">m</mi><mi>x</mi>
<mo>+</mo>
<mi mathcolor="blue">c</mi>
<mo>=</mo>
<mstyle mathbackground="red">
<mn>3</mn><mo>t</mo>
</mstyle>
<mi>x</mi>
<mo>+</mo>
<mn mathcolor="blue" mathvariant="bold">4</mn>
</math>