# \qqtext

Inserts custom inline text between math expressions using the physics package's quick-quad spacing helpers.

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

## Metadata

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

## Syntax

### physics

Argument specification: `s m:T`

Inserts custom inline text between math expressions using the physics package's quick-quad spacing helpers.

## Examples

```latex
\qqtext{if}
```

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

```latex
\qqtext*{if}
```

[Open in Playground](https://play.texform.dev/?input=%5Cqqtext*%7Bif%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
\qqtext{#1}
```

→

```latex
\quad\text{#1}\quad 
```

If the command is starred, the initial \quad is omitted, yielding \text{#1}\quad .

## Equivalent forms

```latex
\qqtext{#1} ≈ \quad\text{#1}\quad
```

exact. 

```latex
\qqtext*{#1} ≈ \text{#1}\quad
```

exact. 

## See also

- [\\qall](https://texform.dev/latex/commands/qall)
- [\\qand](https://texform.dev/latex/commands/qand)
- [\\qas](https://texform.dev/latex/commands/qas)
- [\\qassume](https://texform.dev/latex/commands/qassume)
- [\\qcc](https://texform.dev/latex/commands/qcc)
- [\\qelse](https://texform.dev/latex/commands/qelse)
- [\\qeven](https://texform.dev/latex/commands/qeven)
- [\\qfor](https://texform.dev/latex/commands/qfor)
- [\\qgiven](https://texform.dev/latex/commands/qgiven)
- [\\qif](https://texform.dev/latex/commands/qif)
- [\\qin](https://texform.dev/latex/commands/qin)
- [\\qinteger](https://texform.dev/latex/commands/qinteger)
- [\\qlet](https://texform.dev/latex/commands/qlet)
- [\\qodd](https://texform.dev/latex/commands/qodd)
- [\\qor](https://texform.dev/latex/commands/qor)
- [\\qotherwise](https://texform.dev/latex/commands/qotherwise)
- [\\qq](https://texform.dev/latex/commands/qq)
- [\\qsince](https://texform.dev/latex/commands/qsince)
- [\\qthen](https://texform.dev/latex/commands/qthen)
- [\\qunless](https://texform.dev/latex/commands/qunless)
- [\\qusing](https://texform.dev/latex/commands/qusing)

## Test cases

### physics

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \qqtext{a} | Positive: baseline | Pass | Fail | Pass |
| \qqtext*{a} | Positive: vary:s[0] | Pass | Fail | Pass |
| \qqtext a | Positive: bare[1] | Pass | Fail | Pass |
| \qqtext{a^2} | Negative: neg:T[1] | Pass | Fail | Fail |
