<mi>
MathML の <mi>
要素は、関数名や変数、記号定数(訳注:数値リテラルでなく文字で表された定数)などの識別子としてレンダリングされるべきコンテンツを表します。項をマークアップするために任意のテキストを入れることもできます。
属性
- class, id, style
- スタイルシートと一緒に用いて提供されます。
- dir
- 数式全体の書字方向。値として
ltr
(左から右へ)とrtl
(右から左へ) が指定可能です。 - href
- 指定された URI へのハイパーリンクの設定に使用されます。
- mathbackground
- 背景色。
#rgb
、#rrggbb
およびHTML色名を使用できます。 - mathcolor
- 文字色。
#rgb
、#rrggbb
およびHTML色名を使用できます。 - mathsize
- The size of the content. Possible values are:
small:
Font is rendered smaller than the current font size.normal:
Equivalent to 100% or 1em.big:
Font is rendered larger than the current font size.- a custom length.
- or a unitless value which multiplies the default.
- mathvariant
- This logical class of the identifier, which varies in typography. That is, although the names suggest the typographic style for the class, semantically, items with the same class are treated "the same" within an expression, which might or might not involve displaying them with the named typography. The following values are allowed:
normal
(Default value for more than one character) ;bold
;italic
(Default value for a single character) ;bold-italic
;
double-struck
;bold-fraktur
;script
;bold-script
;fraktur
;
sans-serif
;bold-sans-serif
;sans-serif-italic
;sans-serif-bold-italic
;monospace
;
initial
;tailed
;looped
;stretched
;
例
<math>
<mi> y </mi>
<mi> sin </mi>
<mi mathvariant="monospace"> x </mi>
<mi mathvariant="bold"> π </mi>
</math>
仕様
仕様 | 状態 | コメント |
---|---|---|
MathML 3.0 mi の定義 |
勧告 | 現在の仕様 |
MathML 2.0 mi の定義 |
勧告 | 初期の仕様 |
ブラウザー互換性
BCD tables only load in the browser
Gecko 固有の注記
- Starting with Gecko 20.0 (Firefox 20.0 / Thunderbird 20.0 / SeaMonkey 2.17) a unitless value for
mathsize
is allowed. - Some
mathvariant
values are only implemented starting with Gecko 28.0 (Firefox 28.0 / Thunderbird 28.0 / SeaMonkey 2.25) and require appropriate math fonts (en-US).