# \negthinspace

Used to insert a small negative horizontal space in math to tighten spacing between adjacent symbols.

https://texform.dev/latex/commands/negthinspace

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Spacing](https://texform.dev/latex/topics/spacing) |
| Packages | base, textmacros |
| Allowed mode | math, text |
| Tags | spacing |
| Commonality | low |
| Kind | prefix |

## Syntax

### base

Argument specification: ``

Used to insert a small negative horizontal space in math to tighten spacing between adjacent symbols.

### textmacros

Argument specification: ``

Insert a small negative horizontal space in text to tighten spacing between adjacent items.

## Examples

```latex
a \negthinspace b
```

[Open in Playground](https://play.texform.dev/?input=a+%5Cnegthinspace+b)

```latex
\text{a\negthinspace b}
```

[Open in Playground](https://play.texform.dev/?input=%5Ctext%7Ba%5Cnegthinspace+b%7D)

## Package variants

| Package | Argument specification | Allowed mode | Description |
| --- | --- | --- | --- |
| base |  | math | Used to insert a small negative horizontal space in math to tighten spacing between adjacent symbols. |
| textmacros |  | text | Insert a small negative horizontal space in text to tighten spacing between adjacent items. |

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| base | full | full | full |
| textmacros | full | full | full |

## Usage frequency

<0.01% of formulas in the measured corpus contain this entry, rank 188 of 263 entries with frequency data.

## In TeXForm

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

### [base/negthinspace-to-neg-comma-space](https://texform.dev/rules/base/negthinspace-to-neg-comma-space)

Collapse negthinspace to the explicit negative thin math space command.

Level: authoring. Fidelity: render.

```latex
\negthinspace
```

→

```latex
\!
```

```latex
A\negthinspace_{i,j}+B_{i,j}
```

→

```latex
A\!_{i,j}+B_{i,j}
```

## Equivalent forms

```latex
\!
```

exact. Both are mapped in BaseMappings.ts to BaseMethods.Spacer with MATHSPACE.negativethinmathspace.

```latex
\!
```

exact. Math mode equivalent

## See also

- [\\,](https://texform.dev/latex/commands/-2c-)
- [\\;](https://texform.dev/latex/commands/-3b-)
- [\\:](https://texform.dev/latex/commands/-3a-)
- [\\!](https://texform.dev/latex/commands/-21-)
- [\\>](https://texform.dev/latex/commands/-3e-)
- [\\enspace](https://texform.dev/latex/commands/enspace)
- [\\negmedspace](https://texform.dev/latex/commands/negmedspace)
- [\\negthickspace](https://texform.dev/latex/commands/negthickspace)
- [\\qquad](https://texform.dev/latex/commands/qquad)
- [\\quad](https://texform.dev/latex/commands/quad)
- [\\thinspace](https://texform.dev/latex/commands/thinspace)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \negthinspace | Positive: baseline | Pass | Pass | Pass |

### textmacros

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \negthinspace | Positive: baseline | Pass | Pass | Pass |
