> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://authorea.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How can I write a figure caption in LaTeX?

Authorea allows you to insert snippets of LaTeX into your document. You can even go as far as writing your entire document in LaTeX. However, captions right now are limited to rich text. This is because LaTeX's caption environment is extremely sensitive to malformatted markup. For example, some export styles will complain (and fail compilation) if you insert newlines in the caption environment. To prevent this from happening, we only allow rich text in captions. However, you can still inject LaTeX in captions by clicking on the equation editor button `x^2y` in the toolbar. In the equation editor you can even edit the full LaTeX.

![](https://storage.crisp.chat/users/helpdesk/website/d38f777e-0276-4c52-8a15-b5855ac4903c/abc12c6b-8564-4d91-a74a-cb274d0503f8.png)