Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: Full | XeTeX: Partial |
textmacros | MathJax: Full | KaTeX: Full | XeTeX: Partial |
Syntax#
\hskipm:L{1em}dimensionArgspec m:L — one mandatory argument. Same argspec in base and textmacros. Reading argspecs
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | m:L | math | Low-level manual horizontal spacing in math expressions or macro definitions. |
textmacros | m:L | text | Used to insert explicit horizontal space in text, especially in low-level TeX-style spacing adjustments. |
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Collapse hskip to the explicit hspace command.
\hskip #1 \hspace{#1}Equivalent forms#
\hspace #1exactBoth names are mapped directly to the same MathJax parse method with no extra parameters.
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\hskip{1pt} | Positive · baseline | Pass | Pass | Fail |
\hskip 1pt | Positive · bare[0] | Pass | Pass | Pass |
\hskip{a} | Negative · neg:L[0] | Fail | Fail | Fail |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\hskip{1pt} | Positive · baseline | Pass | Pass | Fail |
\hskip 1pt | Positive · bare[0] | Pass | Pass | Pass |
\hskip{a} | Negative · neg:L[0] | Fail | Fail | Fail |