> ## Documentation Index
> Fetch the complete documentation index at: https://help.edzo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Math Typesetting (TeX)

> Edzo's resource editor supports TeX to render Math accurately.

Rendering Math accurately can be tricky. Edzo’s Resource Editor supports inline **TeX math expressions** to help you clearly represent mathematical ideas in learning content. TeX can be used directly within your text and is rendered consistently across student-facing experiences.

For example, instead of writing a fraction 1 over 2 like this: 1/2

Using Tex, you can display it like this:

$\frac{1}{2}$

In addition, Edzo provides **voiceover support** for TeX, ensuring mathematical expressions are read aloud in a clear, human-friendly way for accessibility and audio-based learning.

## Using TeX in the Resource Editor

TeX expressions can be embedded **inline** anywhere in your content by wrapping them in double curly braces:

```
{{ ... }}
```

**Example**

2 to the power of 4 is written as

```
{{2^4}}
```

This will render visually as a formatted math expression while remaining part of the surrounding sentence:

$2^4$

### Expressions

\*\*Fraction  \*\*`frac{1}{2}`

$\frac{1}{2}$

\*\*Exponent \*\*`x^2`

$x^2$

<Card title="Supported Expressions" icon="brackets-curly" iconType="solid" color="#07a8ff" href="https://katex.org/docs/supported.html" cta="View the expressions">
  A list of TeX expressions supported by Edzo, sorted into logical groups.
</Card>

### Supported Use Cases

You can use TeX inside:

* Paragraph text
* Instructions and explanations
* Questions and answers
* Hints, feedback, and solution text

TeX is intended for inline math, not full block equations.

## Voiceover Support for TeX

Edzo includes a shared TeX-to-speech conversion system used by both:

* Voiceover generation
* Word alignment and playback

When a voiceover is generated, common TeX expressions inside are automatically converted into natural spoken language so learners hear math read clearly and correctly.

**Example**

```
{{\frac{1}{2}}}
```

Will be spoken as:

*one over two*

<Warning>
  Some complex TeX expressions are not converted accurately into speech. Unknown TeX expressions are read using their command name (best-effort fallback)
</Warning>

### Accessibility Notes

* TeX expressions are counted correctly for word alignment during playback
* Voiceover output is deterministic and shared between client and server
* This ensures consistent timing, highlighting, and narration across devices

If you have additional TeX constructs you would like supported for voiceover, please contact the Edzo team.
