# \mathpunct

Used to assign the punctuation math class, formatting it like a comma or semicolon.

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

## 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 punctuation math class, formatting it like a comma or semicolon.

## Examples

```latex
\mathpunct ,
```

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

```latex
\mathpunct{;}
```

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

## Renderer support

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

## Usage frequency

<0.01% of formulas in the measured corpus contain this entry, rank 221 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)
- [\\mathord](https://texform.dev/latex/commands/mathord)
- [\\mathrel](https://texform.dev/latex/commands/mathrel)

## Test cases

### base

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