# LaTeX formulas

LaTeX formulas are popular for writing math, physics and chemistry equations.

<figure><img src="https://cdn-images-1.medium.com/max/1600/1*jnpR0oCV5P76wsXjig-Duw.png" alt=""><figcaption></figcaption></figure>

To insert LaTeX formulas, you can click or tap the **TeX formula** icon in the formatting bar or use the shortcut **`Ctrl/Cmd`** + **`Shift`** + **`M`** on your desktop app.

<figure><img src="https://cdn-images-1.medium.com/max/1600/1*vXrp5vgWks3JQ3KqDvsgzg.png" alt=""><figcaption></figcaption></figure>

When you type the formula, UpNote automatically display the preview in the bottom box. It can also help you check for syntax error so you can correct the formula when needed.

<figure><img src="https://cdn-images-1.medium.com/max/1600/1*NgDNLBcR5lGKlPA4eSUcvA.png" alt=""><figcaption></figcaption></figure>

You may insert an in-line formula or quickly convert a text to equation when enclosing the text in `$$` delimiters.

<figure><img src="https://cdn-images-1.medium.com/max/1600/1*wmhwZg-ZF9FPH04saVET4A.gif" alt=""><figcaption></figcaption></figure>

It’s easy to edit the formula by simply clicking on the formula and editing it in the input box.

There are a few resources to help you quickly master LaTex formulas, for example [Overleaf](https://www.overleaf.com/learn/latex/Mathematical_expressions) or [Wikibooks](https://en.wikibooks.org/wiki/LaTeX/Mathematics).

On a technical note, the LaTeX formulas are rendered with [MathJax](https://www.mathjax.org/) library. A huge thanks to MathJax team for the excellent library. MathJax supports most mathematical notation in LaTeX. You might view their [documentation](https://docs.mathjax.org/en/latest/input/tex/macros/index.html#tex-commands) for the full list.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.getupnote.com/write-and-edit/add-content-to-your-notes/latex-formulas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
