# \nobreakspace

Used to insert an explicit nonbreaking space in math expressions, especially where ordinary spaces would be ignored.

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

## Metadata

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

## Syntax

### ams

Argument specification: ``

Used to insert an explicit nonbreaking space in math expressions, especially where ordinary spaces would be ignored.

## Examples

```latex
\nobreakspace
```

[Open in Playground](https://play.texform.dev/?input=%5Cnobreakspace)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| ams | full | full | full |

## Usage frequency

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

## In TeXForm

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

### [ams/nobreakspace-to-tilde](https://texform.dev/rules/ams/nobreakspace-to-tilde)

Collapse nobreakspace to the canonical nonbreaking space token.

Level: authoring. Fidelity: render.

```latex
\nobreakspace
```

→

```latex
~
```

```latex
A\nobreakspace B
```

→

```latex
A~B
```

## Equivalent forms

```latex
~
```

exact. In MathJax, these names/chars are mapped to the same Tilde handler in math mode.

```latex
\space
```

exact. In MathJax, these names/chars are mapped to the same Tilde handler in math mode.

## See also

- [\\ ](https://texform.dev/latex/commands/-20-)
- [\\~](https://texform.dev/latex/commands/-7e-)
- [\\space](https://texform.dev/latex/commands/space)

## Test cases

### ams

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