# \overwithdelims

Plain-TeX infix generalized fraction with explicit left and right delimiters before the denominator.

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

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Fractions and roots](https://texform.dev/latex/topics/fractions-roots) |
| Packages | base |
| Allowed mode | math |
| Tags | discouraged |
| Commonality | low |
| Kind | infix |

## Syntax

### base

Argument specification: `m:D m:D`

Plain-TeX infix generalized fraction with explicit left and right delimiters before the denominator.

## Examples

```latex
a \overwithdelims ( ) b
```

[Open in Playground](https://play.texform.dev/?input=a+%5Coverwithdelims+%28+%29+b)

## Renderer support

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

## Usage frequency

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

## In TeXForm

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

### Discouraged in base

This is a plain-TeX infix generalized fraction primitive. LaTeX practice prefers brace-delimited commands like \genfrac because the infix form has ambiguous scope.

```latex
$1 \overwithdelims $2 $3 $4 -> \genfrac{$2}{$3}{}{}{$1}{$4}
```

\genfrac is the standard LaTeX generalized-fraction command, makes the delimiter slots explicit, and avoids the ambiguous scope of infix primitives.

### [base/overwithdelims-to-genfrac](https://texform.dev/rules/base/overwithdelims-to-genfrac)

Rewrite overwithdelims to an explicit genfrac with delimiters.

Level: authoring. Fidelity: render.

```latex
#1 \overwithdelims #2 #3 #4
```

→

```latex
\genfrac{#2}{#3}{}{}{#1}{#4}
```

```latex
x_1+\cdots+x_m \overwithdelims ( ) \sum_{j=1}^{n} y_j
```

→

```latex
\genfrac{(}{)}{}{}{x_1+\cdots+x_m}{\sum_{j=1}^{n} y_j}
```

## Equivalent forms

```latex
\genfrac{$2}{$3}{}{}{$1}{$4}
```

exact. 

## See also

- [\\above](https://texform.dev/latex/commands/above)
- [\\abovewithdelims](https://texform.dev/latex/commands/abovewithdelims)
- [\\atop](https://texform.dev/latex/commands/atop)
- [\\atopwithdelims](https://texform.dev/latex/commands/atopwithdelims)
- [\\brace](https://texform.dev/latex/commands/brace)
- [\\brack](https://texform.dev/latex/commands/brack)
- [\\choose](https://texform.dev/latex/commands/choose)
- [\\over](https://texform.dev/latex/commands/over)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| a \overwithdelims ( ( b | Positive: baseline | Pass | Fail | Pass |
| a \overwithdelims a ( b | Negative: neg:D[0] | Fail | Fail | Fail |
| a \overwithdelims ( a b | Negative: neg:D[1] | Fail | Fail | Fail |
