# \ensuremath

A prefix command from base, available in math and text mode. No description has been written yet.

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

## Metadata

| Field | Value |
| --- | --- |
| Packages | base |
| Allowed mode | both |
| Tags |  |
| Commonality | — |
| Kind | prefix |

## Syntax

### base

Argument specification: `m`

## Renderer support

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

## Usage frequency

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

## In TeXForm

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

## Test cases

### base

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