# \frak

Used to typeset symbols in Fraktur style, often for ideals, Lie algebras, or specialized notation.

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

## Metadata

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

## Syntax

### base

Argument specification: `m`

Used to typeset symbols in Fraktur style, often for ideals, Lie algebras, or specialized notation.

### textmacros

Argument specification: `m:T`

Legacy text-mode macro for styling a text argument in Fraktur; used for short stylized text fragments inside text contexts such as \text{...}.

## Examples

```latex
\frak x
```

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

```latex
\text{\frak{abc}}
```

[Open in Playground](https://play.texform.dev/?input=%5Ctext%7B%5Cfrak%7Babc%7D%7D)

## Package variants

| Package | Argument specification | Allowed mode | Description |
| --- | --- | --- | --- |
| base | m | math | Used to typeset symbols in Fraktur style, often for ideals, Lie algebras, or specialized notation. |
| textmacros | m:T | text | Legacy text-mode macro for styling a text argument in Fraktur; used for short stylized text fragments inside text contexts such as \text{...}. |

## Renderer support

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

## Usage frequency

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

## In TeXForm

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

## Equivalent forms

```latex
\mathfrak{#1}
```

exact. MathJax maps both commands to the same MathFont variant.

## See also

- [\\Bbb](https://texform.dev/latex/commands/Bbb)
- [\\mathbb](https://texform.dev/latex/commands/mathbb)
- [\\mathbf](https://texform.dev/latex/commands/mathbf)
- [\\mathbfcal](https://texform.dev/latex/commands/mathbfcal)
- [\\mathbffrak](https://texform.dev/latex/commands/mathbffrak)
- [\\mathbfit](https://texform.dev/latex/commands/mathbfit)
- [\\mathbfscr](https://texform.dev/latex/commands/mathbfscr)
- [\\mathbfsf](https://texform.dev/latex/commands/mathbfsf)
- [\\mathbfsfit](https://texform.dev/latex/commands/mathbfsfit)
- [\\mathbfsfup](https://texform.dev/latex/commands/mathbfsfup)
- [\\mathbfup](https://texform.dev/latex/commands/mathbfup)
- [\\mathcal](https://texform.dev/latex/commands/mathcal)
- [\\mathfrak](https://texform.dev/latex/commands/mathfrak)
- [\\mathit](https://texform.dev/latex/commands/mathit)
- [\\mathnormal](https://texform.dev/latex/commands/mathnormal)
- [\\mathrm](https://texform.dev/latex/commands/mathrm)
- [\\mathscr](https://texform.dev/latex/commands/mathscr)
- [\\mathsf](https://texform.dev/latex/commands/mathsf)
- [\\mathsfit](https://texform.dev/latex/commands/mathsfit)
- [\\mathsfup](https://texform.dev/latex/commands/mathsfup)
- [\\mathtt](https://texform.dev/latex/commands/mathtt)
- [\\mathup](https://texform.dev/latex/commands/mathup)
- [\\symbb](https://texform.dev/latex/commands/symbb)
- [\\symbf](https://texform.dev/latex/commands/symbf)
- [\\symbfcal](https://texform.dev/latex/commands/symbfcal)
- [\\symbffrak](https://texform.dev/latex/commands/symbffrak)
- [\\symbfit](https://texform.dev/latex/commands/symbfit)
- [\\symbfscr](https://texform.dev/latex/commands/symbfscr)
- [\\symbfsf](https://texform.dev/latex/commands/symbfsf)
- [\\symbfsfit](https://texform.dev/latex/commands/symbfsfit)
- [\\symbfsfup](https://texform.dev/latex/commands/symbfsfup)
- [\\symbfup](https://texform.dev/latex/commands/symbfup)
- [\\symcal](https://texform.dev/latex/commands/symcal)
- [\\symfrak](https://texform.dev/latex/commands/symfrak)
- [\\symit](https://texform.dev/latex/commands/symit)
- [\\symnormal](https://texform.dev/latex/commands/symnormal)
- [\\symrm](https://texform.dev/latex/commands/symrm)
- [\\symscr](https://texform.dev/latex/commands/symscr)
- [\\symsf](https://texform.dev/latex/commands/symsf)
- [\\symsfit](https://texform.dev/latex/commands/symsfit)
- [\\symsfup](https://texform.dev/latex/commands/symsfup)
- [\\symtt](https://texform.dev/latex/commands/symtt)
- [\\symup](https://texform.dev/latex/commands/symup)

## Test cases

### base

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

### textmacros

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