# \mathord

Used to assign the ordinary math class to an expression, affecting horizontal spacing.

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

## Metadata

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

## Syntax

### base

Argument specification: `m`

Used to assign the ordinary math class to an expression, affecting horizontal spacing.

## Examples

```latex
\mathord x
```

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

```latex
\mathord{xy}
```

[Open in Playground](https://play.texform.dev/?input=%5Cmathord%7Bxy%7D)

## Renderer support

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

## Usage frequency

0.03% of formulas in the measured corpus contain this entry, rank 147 of 263 entries with frequency data.

## In TeXForm

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

## See also

- [\\mathbin](https://texform.dev/latex/commands/mathbin)
- [\\mathclose](https://texform.dev/latex/commands/mathclose)
- [\\mathinner](https://texform.dev/latex/commands/mathinner)
- [\\mathop](https://texform.dev/latex/commands/mathop)
- [\\mathopen](https://texform.dev/latex/commands/mathopen)
- [\\mathpunct](https://texform.dev/latex/commands/mathpunct)
- [\\mathrel](https://texform.dev/latex/commands/mathrel)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \mathord{a} | Positive: baseline | Pass | Pass | Pass |
| \mathord a | Positive: bare[0] | Pass | Pass | Pass |
