Skip to content

Context7 Platform -- Up-to-date docs for AI agents

309 B
Raw Blame
---
title: LaTeX
description: Add mathematical notation to a page
---

Use dollar signs in Markdown or the `<Latex>` component in MDX.

## Usage

```md
Inline: $E = mc^2$

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

```mdx
<Latex>x^2 + y^2</Latex>
```

## Example

Inline math: <Latex>E = mc^2</Latex>

<Latex>\frac{1}{2}</Latex>