Add math equations to Docs with LaTeX

In Docs, ClickUp renders inline formulas and display equations written in LaTeX. Use inline code for inline formulas, or use a LaTeX code block for a display equation.

Docs are available on every ClickUp plan.

Everyone, including guests, can use Docs.

Add inline math

Inline math renders when you format an expression such as $E=mc^2$ as inline code.

To render an inline formula in a Doc:

  1. Type `$ to start the formula.
  2. Type the expression with no space after the dollar sign, such as E=mc^2.
  3. Type $` to close the formula. The formula will be rendered.

Screenshot of a rendered formula

Inline math also renders in:

  • Docs, including Public Docs
  • task comments and Chat messages
  • task descriptions and Long Text Custom Fields

While editing a Doc, click a rendered formula to show its source.

Render display math in a Doc

Display math uses a LaTeX code block.

To render a display equation:

  1. In an open Doc, type /code and press Enter.
  2. Hover over the code block and click Auto-detect in the block toolbar.
  3. Select LaTeX from the language menu.
  4. In the block toolbar, click Render Math. The equation appears centered, and the source is hidden.
  5. Click the rendered block to show the toolbar.
  6. In the toolbar, click Convert to Code to return to the source. 

    Screenshot of the convert to code button

Rendered equations persist after you reload the Doc. Public Docs render display equations and inline formulas.

Render display math in a task comment or Chat message

To render a display equation in a task comment or Chat message:

  1. In a task comment field or Chat message box, type /code.
  2. From the menu, under TEXT, select Code block.
  3. Type the LaTeX source in the code block.
  4. Hover over the block and click Auto-detect in the toolbar.
  5. Select LaTeX from the language menu.
  6. In the toolbar, click Render Math.
  7. Send the comment or message. The posted text shows the rendered equation.

Export math from a Doc

Exported PDFs and HTML files display rendered equations with embedded fonts. In Markdown exports, display equations use the latex render fence, and inline formulas export as $E=mc^2$.

Import rendered math from Markdown

When you import a Markdown file with a LaTeX render fence, it becomes a rendered LaTeX block in Docs.