# \set

Used for set-builder style notation with fixed-size braces, typically with one bar separator.

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

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Physics: bra-ket](https://texform.dev/latex/topics/physics-braket) |
| Packages | braket |
| Allowed mode | math |
| Tags |  |
| Commonality | low |
| Kind | prefix |

## Syntax

### braket

Argument specification: `m`

Used for set-builder style notation with fixed-size braces, typically with one bar separator.

## Examples

```latex
\set{x}
```

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

```latex
\set{x | x > 0}
```

[Open in Playground](https://play.texform.dev/?input=%5Cset%7Bx+%7C+x+%3E+0%7D)

## Renderer support

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

## In TeXForm

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

## See also

- [\\braket](https://texform.dev/latex/commands/braket)
- [\\Braket](https://texform.dev/latex/commands/Braket)
- [\\Set](https://texform.dev/latex/commands/Set)

## Test cases

### braket

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