Spacing\mkern

\mkernCommand

Fine math kerning between symbols where the inserted space should not become a line-break opportunity.

\mkern -2mu
Topic
Spacing
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
Not measured
Commonality
low
Tags
spacing
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: None
textmacrosMathJax: FullKaTeX: FullXeTeX: None
About the test scope

Syntax#

\mkernm:L{1em}dimension

Argspec m:L — one mandatory argument. Same argspec in base and textmacros. Reading argspecs

Examples#

base

\mkern{-2mu}

textmacros

\text{\mkern 1em}

textmacros

\text{\mkern{1em}}

Package variants#

PackageSignatureAllowed modeNotes
basem:LmathFine math kerning between symbols where the inserted space should not become a line-break opportunity.
textmacrosm:LtextUsed for explicit kerning-style horizontal spacing adjustments.

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

base/mkern-to-mspacefrom Faithfulreading

Collapse mkern to the explicit mspace command.

\mkern #1 \mspace{#1}

Equivalent forms#

  • \mspace{10mu}approximate

    \mspace is the macro equivalent

  • \kern 10ptapproximate

    \kern uses absolute units rather than mu

  • \mspace{#1}exact

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\mkern{1pt}Positive · baselinePassPassFail
\mkern 1ptPositive · bare[0]PassPassFail
\mkern{a}Negative · neg:L[0]FailFailFail
textmacros
InputCaseMathJaxKaTeXXeTeX
\mkern{1pt}Positive · baselinePassPassFail
\mkern 1ptPositive · bare[0]PassPassFail
\mkern{a}Negative · neg:L[0]FailFailFail
All 32 in Spacing