Documentation

Sizes

Forced size styles for expressions within formulas.

These functions allow manual configuration of the size of equation elements to make them look as in a display/inline equation or as if used in a root or sub/superscripts.

Functions

displayGo to source

Forced display style in math.

This is the normal size for block equations.

ExpandView example
$sum_i x_i/2 = display(sum_i x_i/2)$
math.display() → content

body
content
RequiredPositional
Question mark

The content to size.

crampedDefault: false

Whether to impose a height restriction for exponents, like regular sub- and superscripts do.

inlineGo to source

Forced inline (text) style in math.

This is the normal size for inline equations.

ExpandView example
$ sum_i x_i/2
    = inline(sum_i x_i/2) $
math.inline() → content

body
content
RequiredPositional
Question mark

The content to size.

crampedDefault: false

Whether to impose a height restriction for exponents, like regular sub- and superscripts do.

scriptGo to source

Forced script style in math.

This is the smaller size used in powers or sub- or superscripts.

ExpandView example
$sum_i x_i/2 = script(sum_i x_i/2)$
math.script() → content

body
content
RequiredPositional
Question mark

The content to size.

crampedDefault: true

Whether to impose a height restriction for exponents, like regular sub- and superscripts do.

sscriptGo to source

Forced second script style in math.

This is the smallest size, used in second-level sub- and superscripts (script of the script).

ExpandView example
$sum_i x_i/2 = sscript(sum_i x_i/2)$
math.sscript() → content

body
content
RequiredPositional
Question mark

The content to size.

crampedDefault: true

Whether to impose a height restriction for exponents, like regular sub- and superscripts do.