> For the complete documentation index, see [llms.txt](https://docs.papers.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.papers.ai/writing-and-editing/working-with-latex-and-typst.md).

# Working with LaTeX and Typst

LaTeX (`.tex`) and Typst (`.typ`) are source-based formats. There's no Visual mode. You write and edit raw markup, and Papers AI compiles it to a paged PDF preview.

## What you get

* A source editor for the markup itself.
* A compile pipeline that produces a PDF preview, running entirely in your browser. See [Compiling and fixing errors](/writing-and-editing/compiling-and-fixing-errors.md).
* Citation insertion from the References panel, with a project-wide style you can override in source. See [Bibliography and citations](/citing-and-references/bibliography-and-citations.md).
* Standard figure syntax for images: `\includegraphics` for LaTeX, Typst's own figure syntax for Typst. See [Inserting images and figures](/writing-and-editing/inserting-images-and-figures.md).

{% hint style="success" %}
Ask the AI to draft a section, explain a compile error, or write a figure block for you, then review and apply the change. See [Using AI](/using-ai/using-ai.md).
{% endhint %}

## Things to know

* Some LaTeX packages aren't included in the built-in distribution and can't be installed on demand.
* There's currently no built-in way to convert a LaTeX or Typst file to another format like Word. See [Supported file types](/getting-started/supported-file-types.md).

## Next steps

* [Compiling and fixing errors](/writing-and-editing/compiling-and-fixing-errors.md)
* [Working with Markdown and MyST](/writing-and-editing/working-with-markdown-and-myst.md)
* [Bibliography and citations](/citing-and-references/bibliography-and-citations.md)
