Fork me on GitHub

core/definitions

This module contains the definitions of all the symbols and commands, for example \alpha, \sin, \mathrm. There are a few exceptions with some "built-in" commands that require special parsing such as \char.

Members

categoryprivateinner

To organize the symbols when generating the documentation, we keep track of a category that gets assigned to each symbol.

FREQUENCY_VALUE →[string]:numberprivateinnerconstant

Type
  • : [string]:number

Methods

getSimpleString(atoms: object[])inner

If possible, i.e. if they are all simple atoms, return a string made up of their body

atoms : object[]

mathVariantToUnicode(char: string, variant: string)inner

Given a character and variant ('mathbb', 'mathcal', etc...) return the corresponding unicode character (a string)

char : string
variant : string