Publication recipe

Display Equation

Display equation on a native figure: consumer-supplied MathML, SVG, or HTML centered in a three-track grid with the authored number (figcaption) at the end. data-align="start" left-aligns multi-line equations. Kept together; stable id for cross-references.

Recipe.ef-equation
CapabilityP0 portable (MathML Core where supported)
Maturityfixture-backed
Pagination ownerBrowser / selected renderer

Contract note. Folio does not typeset mathematics or number equations. Break long equations into lines (for example mtable) for narrow columns. On screens the math scrolls inside its track instead of widening the page.

Example 1

Numbered MathML equation

Centered math, number at the end, linkable id.

Open standalone print preview

On narrow screens the embedded example uses a screen-only inspection layout. Printing and the standalone document keep Folio's physical print rules.

View HTML
<ef-print-document>
  <p>Canopy fraction follows <a href="#eq-1">Equation (1)</a>:</p>
  <figure class="ef-equation" id="eq-1" aria-label="Equation 1">
    <math display="block"><mrow><msub><mi>f</mi><mi>c</mi></msub><mo>=</mo><mfrac><msub><mi>A</mi><mtext>canopy</mtext></msub><msub><mi>A</mi><mtext>block</mtext></msub></mfrac></mrow></math>
    <figcaption>(1)</figcaption>
  </figure>
</ef-print-document>
Example 2

Multi-line model, start aligned

mtable breaks a long model into lines for a column.

Open standalone print preview

On narrow screens the embedded example uses a screen-only inspection layout. Printing and the standalone document keep Folio's physical print rules.

View HTML
<ef-print-document>
  <figure class="ef-equation" id="eq-3" data-align="start" aria-label="Equation 3">
    <math display="block"><mtable columnalign="left">
      <mtr><mtd><mrow><mi>C</mi><mo>=</mo><msub><mi>β</mi><mn>0</mn></msub><mo>+</mo><msub><mi>β</mi><mn>1</mn></msub><mi>f</mi></mrow></mtd></mtr>
      <mtr><mtd><mrow><mo>+</mo><msub><mi>β</mi><mn>2</mn></msub><mi>I</mi><mo>+</mo><mi>ε</mi></mrow></mtd></mtr>
    </mtable></math>
    <figcaption>(3)</figcaption>
  </figure>
</ef-print-document>
Example 3

Consumer-rendered formula

An accessible HTML formula from an upstream renderer, laid out by the same contract.

Open standalone print preview

On narrow screens the embedded example uses a screen-only inspection layout. Printing and the standalone document keep Folio's physical print rules.

View HTML
<ef-print-document>
  <figure class="ef-equation" id="eq-r" aria-label="Formula R1">
    <p><var>Δ</var> = (<var>Y</var><sub>after</sub> − <var>Y</var><sub>before</sub>)<sub>impact</sub> − (<var>Y</var><sub>after</sub> − <var>Y</var><sub>before</sub>)<sub>control</sub></p>
    <figcaption>(R1)</figcaption>
  </figure>
</ef-print-document>