Skip to content

Instantly share code, notes, and snippets.

@bkardell
Last active Jul 25, 2020
Embed
What would you like to do?

Mathematical rendering contains lots of 'scripted' concepts - that is, subscripts, superscripts, underscripts, overscripts, tensors and so on. The way that they are positioned is contextually dependent. A (simple) example of this can be seen in the case of exponents within a square root vs normally. The example below, illustrates this, in which the exponent is tighter to the base when inside a square root.

example of contextually dependent rendering of an exponent

TeXbook (and the spec algorithms) refer to this as "cramped" style. MathML-Core introduces the math-shift property to expose these two modes with values normal (default) and compact. Recommended UA styles apply the common rules, but leave authors the ability to tweak and extend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment