# \sideset

Adding prescripts and postscripts to large operators while preserving correct spacing and centering.

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

## Metadata

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

## Syntax

### ams

Argument specification: `m m m`

Adding prescripts and postscripts to large operators while preserving correct spacing and centering.

## Examples

```latex
\sideset{a}{b}c
```

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

```latex
\sideset{_a^b}{_c^d}{X}
```

[Open in Playground](https://play.texform.dev/?input=%5Csideset%7B_a%5Eb%7D%7B_c%5Ed%7D%7BX%7D)

## Renderer support

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

## Usage frequency

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

## In TeXForm

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

## Equivalent forms

```latex
_a^b X _c^d
```

approximate. \sideset properly centers the operator and adjusts script heights based on the base operator

## Test cases

### ams

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \sideset{_a}{^b}\sum | Positive: ctx:with-sum | Pass | Fail | Pass |
| \sideset{_1^2}{_3^4}\prod_{n=1}^{\infty} | Positive: ctx:with-prod | Pass | Fail | Pass |
