diff options
Diffstat (limited to 'files/ja/web/mathml/element/mmultiscripts/index.html')
| -rw-r--r-- | files/ja/web/mathml/element/mmultiscripts/index.html | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/files/ja/web/mathml/element/mmultiscripts/index.html b/files/ja/web/mathml/element/mmultiscripts/index.html new file mode 100644 index 0000000000..d195e1c8cb --- /dev/null +++ b/files/ja/web/mathml/element/mmultiscripts/index.html @@ -0,0 +1,130 @@ +--- +title: <mmultiscripts> +slug: Web/MathML/Element/mmultiscripts +translation_of: Web/MathML/Element/mmultiscripts +--- +<div>{{MathMLRef}}</div> + +<p class="summary">MathML の <code><mmultiscripts></code> 要素によって、テンソル的なものを作ることができます。見た目は、 <a class="external" href="http://ja.wikipedia.org/wiki/テンソル" title="http://en.wikipedia.org/wiki/Tensor">テンソル</a> は多次元の行列です(数学的には不正確だが喩えて言えば)。テンソルの階数は、それを表す配列の次元によって決まります。例えば、数は0次元の配列であり、0階のテンソルです。1次元配列(つまり数ベクトル)は1階のテンソルです。同様に、2階のテンソルは四角い行列(訳注:ふつうの意味での行列のこと)で表すことになります。テンソルの数学的背景についてもっと知りたければ、 <a class="external" href="http://ja.wikipedia.org/wiki/テンソル" title="http://en.wikipedia.org/wiki/Tensor">ウィキペディアの記事</a> を参照してください。</p> + +<p>MathML は、基部(base expression)に対する後付け(postscripts)および前付け(prescripts)の下付き/上付きの添字を表すために次のような特定の構文を使います:</p> + +<pre class="syntaxbox"><mmultiscripts> + <em>base</em> + (<em>subscript superscript</em>)* + [ <mprescripts/> (<em>presubscript presuperscript</em>)* ] +</mmultiscripts> +</pre> + +<p>基部のあとに後付けの下付き添字と後付けの上付き添字を指定することができます(訳注:下付き/上付きの組は2個以上繰り返すこともできる)。前付けは任意で、空タグ <code><mprescripts/></code> で区切って置きます(<mprescripts /> 要素は一つしか置くことができず、これを破ると <a href="/ja/docs/Error_Console" title="/en-US/docs/Error_Console">エラーコンソール</a> で <code>DuplicateMprescripts</code> エラーとなり、表示は "invalid-markup" となります)。また、空の添字にはプレースホルダーとして <code><none/></code> を置くことができます(基部には使えません)。正しい使い方は例をご覧ください。</p> + +<h2 id="属性">属性</h2> + +<dl> + <dt id="attr-class-id-style">class, id, style</dt> + <dd>Provided for use with <a href="/en-US/docs/CSS">stylesheets</a>.</dd> + <dt id="attr-href">href</dt> + <dd>特定の URI へのハイパーリンクをセットするのに使います。</dd> + <dt id="attr-mathbackground">mathbackground</dt> + <dd>背景色。<code>#rgb</code>, <code>#rrggbb</code> および <a href="/en-US/docs/CSS/color_value#Color_Keywords">HTML color names</a> が使えます。</dd> + <dt id="attr-mathcolor">mathcolor</dt> + <dd>文字色。<code>#rgb</code>, <code>#rrggbb</code> および <a href="/en-US/docs/CSS/color_value#Color_Keywords">HTML color names</a> が使えます。</dd> + <dt id="attr-subscriptshift">subscriptshift</dt> + <dd>The minimum space by which to shift the subscript below the baseline of the expression, as a <a href="/en-US/docs/CSS/length">CSS length</a>.</dd> + <dt id="attr-superscriptshift">superscriptshift</dt> + <dd>The minimum space by which to shift the superscript above the baseline of the expression, as a <a href="/en-US/docs/CSS/length">CSS length</a>.</dd> +</dl> + +<h2 id="例">例</h2> + +<h3 id="<mprescripts>_の使い方"><code><mprescripts/> の使い方</code></h3> + +<p>Sample rendering: <img alt="" src="/files/3223/mmultiscripts_prescripts.png" style="margin-left: 10px; vertical-align: middle;"></p> + +<p>Rendering in your browser: <math> <mmultiscripts> <mi>X</mi> <mi>d</mi> <mi>c</mi> <mprescripts></mprescripts> <mi>b</mi> <mi>a</mi> </mmultiscripts> </math></p> + +<pre class="brush: html"><math> + + <mmultiscripts> + + <mi>X</mi> <!-- base expression --> + + <mi>d</mi> <!-- postsubscript --> + <mi>c</mi> <!-- postsuperscript --> + + <mprescripts /> + <mi>b</mi> <!-- presubscript --> + <mi>a</mi> <!-- presuperscript --> + + </mmultiscripts> + +</math> +</pre> + +<h3 id="<none>_の使い方"><code><none/> の使い方</code></h3> + +<p>Sample rendering: <img alt="" src="/files/3222/mmultiscripts_none.png" style="margin-left: 10px; vertical-align: middle;"></p> + +<p>Rendering in your browser: <math> <mmultiscripts> <mi>X</mi> <none></none> <mi>c</mi> <mprescripts></mprescripts> <mi>b</mi> <none></none> </mmultiscripts> </math></p> + +<pre class="brush: html"><math> + + <mmultiscripts> + + <mi>X</mi> <!-- base expression --> + + <none /> <!-- postsubscript --> + <mi>c</mi> <!-- postsuperscript --> + + <mprescripts /> + <mi>b</mi> <!-- presubscript --> + <none /> <!-- presuperscript --> + + </mmultiscripts> + +</math> +</pre> + +<h2 id="仕様">仕様</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{ SpecName('MathML3', 'chapter3.html#presm.mmultiscripts', 'mmultiscripts') }}</td> + <td>{{ Spec2('MathML3') }}</td> + <td>Current specification</td> + </tr> + <tr> + <td>{{ SpecName('MathML2', 'chapter3.html#presm.mmultiscripts', 'mmultiscripts') }}</td> + <td>{{ Spec2('MathML2') }}</td> + <td>Initial specification</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザ実装状況">ブラウザ実装状況</h2> + + + +<p>{{Compat("mathml.elements.mmultiscripts")}}</p> + +<h2 id="Gecko-specific_notes">Gecko-specific notes</h2> + +<ul> + <li>Starting with Gecko 26.0 {{geckoRelease("26")}} it is no longer possible to use <code><none /></code> as the base element. The rendering has been made more consistent with equivalent configurations of {{MathMLElement("msup")}} and {{MathMLElement("msubsup")}}. A bug with the incorrect application of <code>subscriptshift</code> and <code>superscriptshift</code> attributes has been fixed (see {{bug("827713")}} for details).</li> +</ul> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{ MathMLElement("msub") }}(下付き)</li> + <li>{{ MathMLElement("msup") }}(上付き)</li> + <li>{{ MathMLElement("msubsup") }}(下付き/上付きの組)</li> +</ul> |
