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

# How to use LaTeX in AhaSlides question titles

> Two ways to add LaTeX equations to AhaSlides question titles, what KaTeX supports, and how invalid syntax is handled.

LaTeX lets you display mathematical equations and scientific notation directly in your question titles — no image uploads needed. It renders on both the presenter view and all participant devices simultaneously.

## How to Add LaTeX

There are two ways to enter LaTeX in the canvas editor.

<Steps>
  <Step title="Using the LaTeX dialog (recommended)">
    Open the canvas editor and click the **LaTeX** icon in the toolbar. Type your equation in the dialog box — there's no need to wrap it in `$` signs. Confirm to render it in your slide.
  </Step>

  <Step title="Typing directly in the title">
    Click into the question title field and wrap your equation in `$` signs — for example, `$x^2 + y^2 = z^2$`. Press space or click outside the text box, and it converts to rendered LaTeX automatically.
  </Step>
</Steps>

## What's Supported

AhaSlides uses KaTeX to render LaTeX. This covers most standard equations and scientific notation, but it does not support full LaTeX document syntax. Commands like `\documentclass` or `\begin{document}` won't work — write only the equation part.

## Error Handling

<Note>
  If you enter invalid LaTeX syntax, the editor shows an error message rather than breaking your slide. Fix the syntax and the equation renders correctly, without affecting your presentation flow.
</Note>


## Related topics

- [Undo/Redo Function on AhaSlides](/features-and-functions/undo-redo-function-on-ahaslides.md)
- [How to Use the Draw Answer Slide in AhaSlides](/using-slide-types/using-the-draw-answer-slide.md)
- [How to Use the 2×2 Matrix Slide in AhaSlides](/using-slide-types/using-the-2x2-matrix-slide.md)
- [AhaSlides MCP — Getting Started Guide](/integrations/ahaslides-mcp-getting-started-guide.md)
- [How to Build Flowcharts and Diagrams with the Diagram Slide](/using-slide-types/using-the-diagram-slide.md)
