English 中文(简体)
MathML - Style
  • 时间:2024-12-22

MathML - Style


Previous Page Next Page  

<mstyle> tag is used to make style changes that affect the rendering of its contents.

Syntax

Here is the simple syntax to use this tag −

<mstyle> expression </mstyle>

Parameters

Here is the description of all the parameters of this tag −

    expression − inferred mrow elements.

Attributes

Here is the description of all the attributes of this tag −

    scriptlevel − To specify the scriptlevel for the children. Without a sign, it sets scriptlevel to the specified value; With a sign it increments ("+") or decrements ("-") the current value.

    displaystyle − To specify the displaystyle.

    scriptsizemultipper − To specify the multipper to be used to adjust font size due to changes in scriptlevel.

    scriptminsize − To specify the minimum font size allowed due to changes in scriptlevel.

    infixpnebreakstyle − To specify he default pnebreakstyle to use for infix operators.

    decimalpoint − To specify the character used to determine the apgnment point within <mstack> and <mtable> columns when the "decimalpoint" value is used to specify the apgnment. Default is . .

Examples

Example 1: Without <mstyle> tag

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mrow>
      <mo maxsize = "100%"> ( </mo>
      <mfrac> 
         <mi> a </mi> 
         <mi> b </mi> 
      </mfrac>
      <mo maxsize = "100%"> ) </mo>
   </mrow>
</math>

Output

( a b )

Example 2: Using <mstyle> tag

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mstyle maxsize = "100%">
      <mrow>
         <mo> ( </mo>
         <mfrac> 
            <mi> a </mi> 
            <mi> b </mi> 
         </mfrac>
         <mo> ) </mo>
      </mrow>
   </mstyle>
</math>

Output

( a b ) Advertisements