Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: Full | XeTeX: Full |
textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full |
Syntax#
\ Takes no arguments. Same argspec in base and textmacros. Reading argspecs
Common tasks#
How to insert a space after a control word#
\ followed by a space is a control space; it keeps a word-like gap after \log.
How to keep a visible gap between two letters#
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | | math | Used as control-space to insert an explicit nonbreaking space, especially when a literal space would be ignored or to force spacing after a control word. |
textmacros | | text | Used as TeX control-space in text mode to insert a literal space character, especially after a control sequence or when a space must be quoted explicitly inside text macros. |
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Rewrite math-mode control space to the canonical active space token.
\ ~Equivalent forms#
\spaceexactMapped to the same MathJax parse method and produces the same nonbreaking-space token.
~exactThe active tilde character is handled by the same parse method in MathJax math mode.
See also#
\{symbol\}symbol\~textmacros\nobreakspaceams\spacebase
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\ | Positive · baseline | Pass | Pass | Pass |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\ | Positive · baseline | Pass | Pass | Pass |