# \qty

Used as the short physics-package form of \quantity for automatic bracing around the following paired-delimiter expression.

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

## Metadata

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

## Syntax

### physics

Argument specification: `d<(,)><[,]><{,}><|,|>`

Used as the short physics-package form of \quantity for automatic bracing around the following paired-delimiter expression.

## Examples

```latex
\qty
```

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

```latex
\qty(a)
```

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

```latex
\qty[a]
```

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

```latex
\qty{a}
```

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

```latex
\qty|a|
```

[Open in Playground](https://play.texform.dev/?input=%5Cqty%7Ca%7C)

## Renderer support

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

## In TeXForm

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

## Equivalent forms

```latex
\quantity
```

exact. MathJax maps both names to the same parse method with the same parameters, including the optional paired-delimiter form and the no-argument fallback.

## See also

- [\\abs](https://texform.dev/latex/commands/abs)
- [\\absolutevalue](https://texform.dev/latex/commands/absolutevalue)
- [\\bqty](https://texform.dev/latex/commands/bqty)
- [\\Bqty](https://texform.dev/latex/commands/Bqty)
- [\\norm](https://texform.dev/latex/commands/norm)
- [\\order](https://texform.dev/latex/commands/order)
- [\\pqty](https://texform.dev/latex/commands/pqty)
- [\\quantity](https://texform.dev/latex/commands/quantity)
- [\\vqty](https://texform.dev/latex/commands/vqty)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \qty | Positive: baseline | Pass | Fail | Pass |
| \qty (a) | Positive: vary:d[0] | Pass | Fail | Pass |
