Post-process the list of atoms after they are created, changing
binary operators to ordinary atoms according to the TeXbook's
rules. This makes the `prev` argument redundant, so drop it.

This commit assumes that the math class (mop/mbin/mrel/etc.) comes
first in the `classes` list, if present. Add a TODO to change the
signature of `makeSpan/makeSymbol` to enforce this invariant.
This commit is contained in:
Eddie Kohler
2016-11-21 14:02:24 -05:00
parent 9d3cdf694c
commit c951df4269
6 changed files with 99 additions and 74 deletions

View File

@@ -26,6 +26,11 @@ Arrays: |
ArrayType: 1\begin{array}{c}2\\3\end{array}4
Baseline: a+b-c\cdot d/e
BasicTest: a
BinCancellation: |
\begin{array}{ccc}
+1 & 1+ & 1+1 \\
1++1 & 3\times) & 1+,
\end{array}
BinomTest: \dbinom{a}{b}\tbinom{a}{b}^{\binom{a}{b}+17}
BoldSpacing: \mathbf{A}^2+\mathbf{B}_3*\mathscr{C}'
Cases: |