Mathml-subsuperscripts

提供:Dev Guides
移動先:案内検索

MathML-下付き上付き

<msubsup>タグは、下付き文字と上付き文字の両方を式に添付するために使用されます。

構文

このタグを使用する簡単な構文は次のとおりです-

<msubsup> base subscript superscript</msubsup>

パラメーター

これは、このタグのすべてのパラメータの説明です-

  • base -下付き文字と上付き文字が描画されるベース式。
  • subscript -下付き。
  • 上付き文字-上付き文字。

属性

これは、このタグのすべての属性の説明です-

  • subscriptshift -添字を式のベースラインの下にシフトする最小スペースを指定します。
  • superscriptshift -上付き文字を式のベースラインの上に移動するための最小スペースを指定します。

下付き文字と上付き文字を描きましょう。

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mrow>
      <msubsup>
         <mo> ∫</mo>
         <mn> 0 </mn>
         <mn> 1 </mn>
      </msubsup>

      <mrow>
         <msup>
            <mi> e</mi>
            <mi> x </mi>
         </msup>
         <mo> ⁢</mo>

         <mrow>
            <mi> d</mi>
            <mi> x </mi>
         </mrow>
      </mrow>
   </mrow>
</math>

出力

latexmath:[\ int_ {0} ^ {1} {e ^ {x} {dx}}]