Skip to content

Instantly share code, notes, and snippets.

@bkardell
Last active July 25, 2020 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkardell/7e9353fdcefa8004751ce4847e6c19a6 to your computer and use it in GitHub Desktop.
Save bkardell/7e9353fdcefa8004751ce4847e6c19a6 to your computer and use it in GitHub Desktop.

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