jgm / texmath

A Haskell library for converting LaTeX math to MathML.
GNU General Public License v2.0
312 stars 65 forks source link

Support `\hphantom` & `\vphantom` #113

Open ghost opened 6 years ago

ghost commented 6 years ago

The \hphantom & \vphantom are very useful in some cases. For example, the vectors:

\vec{a\vphantom{b}}\cdot\vec{b}

default

The radicas

\sqrt{a\vphantom{b}} \cdot \sqrt b \cdot \sqrt{c\vphantom{b}}

default

jgm commented 5 years ago

MathML has mphantom and OMML has phant. We should add EPhantom to the Exp structure so we can support these.