XML technologies / MathML / Presentation elements / mfrac

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

Syntax

<mfrac>numerator denominator</mfrac>

Description

The mfrac element is used to display fractions or fraction-like notation, such as binomial coefficients.

Attributes

This element accepts the four attributes shown in the following table.

Table: Attributes of mfrac.

Attribute

Values

Default

linethickness

number [v-unit] | thin | medium | thick

axis

numalign

left | center | right

center

denomalign

(left | center | right)+

center

bevelled

true | false

false

These attributes have the following meaning:

  • linethickness: specifies the thickness of the line that separates the numerator and denominator.

  • numalign: specifies the horizontal alignment of the numerator.

  • denomalign: specifies the horizontal alignment of the denominator.

  • bevelled: when false, the numerator is shown above the denominator with a horizontal line between them; when true, a slightly raised numerator is shown to the left of a slightly lowered denominator with a diagonal line between them.

   

 

 

 

 

back to top