# \brack

Plain-TeX infix generalized fraction with brackets as fixed delimiters and no fraction bar.

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

## 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: ``

Plain-TeX infix generalized fraction with brackets as fixed delimiters and no fraction bar.

## Examples

```latex
a \brack b
```

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

## Renderer support

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

## Usage frequency

<0.01% of formulas in the measured corpus contain this entry, rank 169 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 generalized-fraction commands.

```latex
$1 \brack $2 -> \genfrac{[}{]}{0pt}{}{$1}{$2}
```

\genfrac is the standard LaTeX generalized-fraction command and avoids the ambiguous grouping scope of infix primitives.

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

Rewrite infix brack to an explicit genfrac with bracket delimiters.

Level: authoring. Fidelity: render.

```latex
#1 \brack #2
```

→

```latex
\genfrac{[}{]}{0pt}{}{#1}{#2}
```

```latex
\int_0^1 f(x)\,dx \brack \sum_{k=1}^{n} b_k
```

→

```latex
\genfrac{[}{]}{0pt}{}{\int_0^1 f(x)\,dx}{\sum_{k=1}^{n} b_k}
```

## Equivalent forms

```latex
\genfrac{[}{]}{0pt}{}{$1}{$2}
```

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)
- [\\choose](https://texform.dev/latex/commands/choose)
- [\\over](https://texform.dev/latex/commands/over)
- [\\overwithdelims](https://texform.dev/latex/commands/overwithdelims)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| a \brack b | Positive: baseline | Pass | Pass | Pass |
