# \pqty

Used to parenthesize a required expression in physics-package notation, with optional starred plain fences or sized-fence prefixes.

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

## 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: `s m{}`

Used to parenthesize a required expression in physics-package notation, with optional starred plain fences or sized-fence prefixes.

## Examples

```latex
\pqty{a}
```

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

```latex
\pqty*{a}
```

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

## 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.

### Expands to (physics)

```latex
\pqty{#1}
```

→

```latex
\left( #1 \right)
```

With a leading star, the reparsed form uses plain fences `( #1 )`; with an adjacent sizing control sequence \big, \Big, \bigg, or \Bigg before the brace, it reparses to the corresponding sized fence form.

### [physics/pqty-to-paren-fence](https://texform.dev/rules/physics/pqty-to-paren-fence)

Rewrite pqty to explicit parenthesis fences.

Level: faithful. Fidelity: render.

```latex
\pqty{#1}
```

→

```latex
\left( #1 \right)
```

```latex
\pqty{a+b}
```

→

```latex
\left( a+b \right)
```

## Equivalent forms

```latex
\qty(#1)
```

exact. Both forms use the same delimiter semantics; \pqty packages the parentheses as a brace-taking command.

## 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)
- [\\qty](https://texform.dev/latex/commands/qty)
- [\\quantity](https://texform.dev/latex/commands/quantity)
- [\\vqty](https://texform.dev/latex/commands/vqty)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \pqty{a} | Positive: baseline | Pass | Fail | Pass |
| \pqty*{a} | Positive: vary:s[0] | Pass | Fail | Pass |
