Fix \underset (#1277)

* Fix \underset

This PR modifies `\underset` and `\overset` to align with LaTeX behavior when a superscript is applied after the `\underset`.  Fixes issue #1275.

I also changed the spacing from KaTeX `mop` to KaTeX `rmel`. The result seems to be a closer visual match to LaTeX.

* Update screenshots
This commit is contained in:
Ron Kok
2018-05-03 13:50:18 -07:00
committed by Erik Demaine
parent 98b85097eb
commit 7fec5ae5dc
6 changed files with 15 additions and 21 deletions

View File

@@ -218,7 +218,7 @@ OpLimits: |
OverUnderline: x\underline{x}\underline{\underline{x}}\underline{x_{x_{x_x}}}\underline{x^{x^{x^x}}}\overline{x}\overline{x}\overline{x^{x^{x^x}}} \blue{\overline{\underline{x}}\underline{\overline{x}}}
OverUnderset: |
\begin{array}{l}
x\overset?=1\\
x\overset?=1 \quad \underset{*}{x}^2 \\
{\displaystyle\lim_{t\underset{>0}\to0}}\\
a+b+c+d\overset{b+c=0}\longrightarrow a+d\\
\overset { x = y } { \sqrt { a b } }