Source: https://www.cs.bgu.ac.il/~khitron/Equation%20Editor.pdf