When to use Math Clap
Centers content in zero horizontal width. In source, start from the exact \mathclap command instead of imitating the rendered glyph with Unicode characters or manual spacing. This keeps the expression editable and gives the renderer enough structure to apply mathematical spacing correctly.
Syntax
\mathclapThe documented syntax belongs to mathtools. Keep every required argument, brace pair, and environment boundary intact when moving the command between an editor, Markdown processor, notebook, or publishing system.
Example
\sum_{\mathclap{i\in S}} a_iRendered output
zero-width centered subscript
Copy and compatibility checks
- Copy
\mathclapexactly; changing its case or removing a leading backslash can turn it into plain text. - Confirm that the destination loads mathtools before relying on this command.
- Render the example once, then inspect grouping, limits, scripts, and spacing before publishing.