Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: Full | XeTeX: Full |
textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full |
Syntax#
\vphantomm{a}math contentArgspec m — one mandatory argument. In base. Reading argspecs
\vphantomm:T{a}text contentArgspec m:T — one mandatory argument. In textmacros. Reading argspecs
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | m | math | Used to reserve vertical space in a mathematical formula corresponding to the argument, while taking up zero horizontal space. |
textmacros | m:T | text | Used to match vertical height for delimiters or math structures across different lines or cells without adding horizontal space. |
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\vphantom{a} | Positive · baseline | Pass | Pass | Pass |
\vphantom a | Positive · bare[0] | Pass | Pass | Pass |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\vphantom{a} | Positive · baseline | Pass | Pass | Pass |
\vphantom a | Positive · bare[0] | Pass | Pass | Pass |
\vphantom{a^2} | Negative · neg:T[0] | Fail | Fail | Fail |