# \vcenter

Used in plain-TeX style math constructions to place material in a vertically boxed container aligned to its center.

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

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Boxes and text](https://texform.dev/latex/topics/boxes-text) |
| Packages | base |
| Allowed mode | math |
| Tags | presentation |
| Commonality | low |
| Kind | prefix |

## Syntax

### base

Argument specification: `m`

Used in plain-TeX style math constructions to place material in a vertically boxed container aligned to its center.

## Examples

```latex
\vcenter{a+b}
```

[Open in Playground](https://play.texform.dev/?input=%5Cvcenter%7Ba%2Bb%7D)

```latex
\vcenter x
```

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

## Renderer support

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

## Usage frequency

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

## In TeXForm

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

## See also

- [\\vbox](https://texform.dev/latex/commands/vbox)
- [\\vtop](https://texform.dev/latex/commands/vtop)

## Test cases

### base

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