This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

mfenced

Summary

The MathML mfenced element provides the possibility to add custom opening and closing parentheses (such as brackets) and separators (such as commas or semicolons) to an expression.

Overview Table

DOM Interface
mathml

Examples

These examples demonstrate a simple usage of the merror element:



<math>
  <mfenced open="{" close="}" separators=";;,">
    <mi>a</mi>
    <mi>b</mi>
    <mi>c</mi>
    <mi>d</mi>
    <mi>e</mi>
  </mfenced>
</math>

<math>
  <mfenced open="[" close="]" separators="||||,">
    <mi>a</mi>
    <mi>b</mi>
    <mi>c</mi>
    <mi>d</mi>
    <mi>e</mi>
  </mfenced>
</math>

Attributes

close
A string for the closing delimiter. The default value is ")" and any white space is trimmed.
open
A string for the opening delimiter. The default value is "(" and any white space is trimmed.
separators
A sequence of zero or more characters to be used for different separators, optionally divided by white space, which is ignored. The default value is ",". By specifying more than one character, it is possible to set different separators for each argument in the expression. If there are too many separators, all excess is ignored. If there are too few separators in the expression, the last specified separator is repeated.

Related specifications

MathML 3.0
W3C Recommendation

Attributions

  • Mozilla Developer Network cc-by-sa-small-wpd.svg: Article