# \textstyle

Restores or forces text-style math within the current math group, often inside displayed formulas or after a broader style change.

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

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Fonts and styles](https://texform.dev/latex/topics/fonts-styles) |
| Packages | base |
| Allowed mode | math |
| Tags | presentation |
| Commonality | medium |
| Kind | declarative |

## Syntax

### base

Argument specification: ``

Restores or forces text-style math within the current math group, often inside displayed formulas or after a broader style change.

## Examples

```latex
\textstyle
```

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

## Renderer support

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

## Usage frequency

0.25% of formulas in the measured corpus contain this entry, rank 84 of 263 entries with frequency data.

## In TeXForm

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

## See also

- [\\displaystyle](https://texform.dev/latex/commands/displaystyle)
- [\\scriptscriptstyle](https://texform.dev/latex/commands/scriptscriptstyle)
- [\\scriptstyle](https://texform.dev/latex/commands/scriptstyle)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| {\textstyle a} | Positive: baseline | Pass | Pass | Pass |
