<equation-block>

The <equation-block> element represents an equation that is presented as a separate block within a text flow or an <equation-figure>.

Usage information

When an <equation-block> element has multiple direct child elements, each child represents an alternative form of the equation.

Rendering expectations

Block equations can be numbered.

Processing expectations

When there are multiple forms of an equation, processors can choose the form or forms that they render. For example, if there is both an image and MathML markup, an HTML-generating processor could generate both the image reference and the MathML with appropriate HTML @class or @id values to enable dynamic rendering that is based on browser capability.

Specialization hierarchy

The <equation-block> element is specialized from <div>. It is defined in the equation domain module.

Attributes

The following attributes are available on this element: universal attributes.

The following attributes are available on this element: universal attributes.

Example

This section is non-normative.

The following code sample shows how an <equation-block> element can include two alternative forms of the same equation:

<equation-block>
  <!-- Imaged-based equation -->
  <image keyref="equation-image-01">
    <alt>a squared plus b squared.</alt>
  </image>
  <!-- MathML-based equation -->
  <mathml>
    <m:math>
      <m:semantics>
        <m:mrow>
          <m:msqrt>
            <m:mrow>
              <m:msup><m:mi>a</m:mi><m:mn>2</m:mn></m:msup>
              <m:mo>+</m:mo>
              <m:msup><m:mi>b</m:mi><m:mn>2</m:mn></m:msup>
            </m:mrow>
          </m:msqrt>        
        </m:mrow>
      </m:semantics>
    </m:math>
  </mathml>
</equation-block>