Excalidraw Math in Confluence: LaTeX Equations, Step by Step

Write LaTeX math in Excalidraw inside Confluence: equations typeset with MathJax next to charts and flowcharts, with history, PDF export and permissions.

Looking for LaTeX in Excalidraw outside Confluence? See every way to add equations in our Excalidraw Math & LaTeX guide.

Excalidraw LaTeX Math puts typeset formulas on a Confluence page. You type a formula in LaTeX, it appears as a sharp picture, and you explain it by hand on a whiteboard: circle a number, add an arrow and a note, put a chart beside it.

How to read the pictures. Every screenshot comes from a real Confluence site. The red boxes with numbers show where to look or click. Number 1 in the picture is step 1 in the text, number 2 is step 2, and so on.

Get started in 2 minutes

  1. Install Excalidraw LaTeX Math from the Atlassian Marketplace. You need to be a Confluence admin. It is free for up to 10 users.
  2. Edit a page and type /Excalidraw, or open your space’s Excalidraw LaTeX Math page and choose All diagrams → New diagram.
  3. The editor opens over the page: choose Insert diagram → LaTeX Math. The dialog opens with a ready example; press Insert.
  4. Save. The diagram shows on the page for everyone who can view it.

Add a diagram to a page

  1. Edit the page, put the cursor where the diagram should go and type /Excalidraw LaTeX (the menu shows the first apps; View more lists the rest).
  2. Choose Excalidraw LaTeX Math in the menu. You can also find it under + → Apps.

The editor opens at once, over the page. Draw, insert a diagram from text, then press Save and publish the page. Each macro is its own diagram, and a copy of the page gets its own copy of the diagram.


The space page: On this page and All diagrams

  1. In the space sidebar, under Space apps, click Excalidraw LaTeX Math.
  2. The page has two tabs: On this page (the diagram shown on the space page) and All diagrams.
  1. New diagram draws a diagram that does not belong to one page.
  2. Narrow the list: All, Global (the whole site) or This space, sorted by Last edited. The search box finds a diagram by name.
  3. Each card shows a preview, where it lives, when it was edited and on which page it is shown. Its ⋯ gives Open, Edit and Show here (on the space page).

The global page (Apps → Excalidraw LaTeX Math) lists every diagram on the site. Delete asks first: the diagram disappears from every page that shows it, so this cannot be undone.


LaTeX Math diagrams from text

  1. In the editor, click Insert diagram.
  2. Choose LaTeX Math, first in the list.
The Insert a LaTeX Math diagram dialog with the Matrix example. Box 1 marks the examples Quadratic formula, Matrix, Series and Aligned. Box 2 marks the Source: A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}. Box 3 marks the Preview, a typeset 2 by 2 matrix. Box 4 marks the name, Matrix. Box 5 marks Insert.
  1. Start from an example: Quadratic formula, Matrix, Series or Aligned.
  2. Type the formula in Source, in LaTeX. For example \frac{a}{b} is a fraction and \sqrt{x} a square root.
  3. The Preview shows the formula typeset with MathJax, as you type.
  4. Give it a name, so you find it in Update later.
  5. Press Insert. The formula lands on the canvas as a sharp vector picture.
The same dialog with an unfinished formula: the Source ends with + \frac{1 and no closing brace. Box 1 marks the Source. Box 2 marks the Preview, which says No preview: invalid LaTeX Math syntax, and the reason, Missing close brace. Box 3 marks the Insert button, now greyed out.

If something is wrong in the formula:

  1. Look at the end of the Source: here a { is not closed.
  2. The Preview says why it cannot draw the formula, here Missing close brace.
  3. Insert is greyed out until the formula is complete, so a broken formula never lands on the page.

Fractions, matrices, aligned equations, sums and integrals all work. Put the numbers beside the formula with Insert diagram → Vega-Lite: paste the data into the chart spec, and the chart sits in the same scene.

Other diagram types in the same scene

Insert diagram also holds Mermaid, PlantUML, LaTeX Math, Graphviz, Vega-Lite (charts from data you paste; never from a URL) and WaveDrom (timing diagrams). Each dialog opens with an example and a field for the diagram’s name.

PlantUML and C4 diagrams

C4 is built in. !include <C4/C4_Context>, <C4/C4_Container>, <C4/C4_Component> and the other C4-PlantUML files, and the same files linked from GitHub (raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/…), are drawn from C4-PlantUML 2.14.0 inside the app. Any other !include is refused: “External includes are not supported: everything stays inside Atlassian.”

Errors. A mistake shows as a message with the line in your own text, for example “PlantUML: Syntax Error? (Assumed diagram type: sequence) on line 2.” Insert stays off until the text draws.

The editor: name, Insert diagram, update by name

The editor has one bar on top: the diagram’s Name, Insert diagram ▾, Update ▾, the save state (“Saved · version 2” or “Unsaved changes”), History, Save and Close. Update ▾ lists the diagrams on the canvas by name; select one on the canvas and the button becomes Update “its name”, and the dialog opens on its source.

Show a shared scene on a page

A shared scene is one diagram shown on many pages; a change to it shows on all of them. To show one in a macro, edit the page, open the macro’s settings and choose it under Scene (“Scenes of the whole site and of this space”). Leave Scene empty to keep the macro’s own diagram.



View settings

In the page editor, the macro’s View settings — max height (at least 120 px), Fit diagram, Match Atlassian theme, zoom and position — apply to everyone who views the page. Scroll inside the diagram lets the mouse wheel move the diagram; Ctrl/⌘ + wheel zooms. Readers can Expand the diagram and zoom with − / + / Fit.


Saving, history and conflicts

  • Version history: History in the editor lists the last 10 saved versions. Restore saves an old version as a new one, so the current version stays in the list.
  • Two people at once: if someone saved while you were editing, nothing is overwritten. Your changes stay in the editor and you choose to merge them with the latest version (for each shape the newer edit wins), reload, or save yours as a copy.
  • Unsaved work survives a closed tab: the editor offers to restore it next time.
  • Size: up to 5 MB per scene, images included; the meter in the editor shows how much is used.

PDF and Word export

Exporting the page to PDF or Word includes the diagram as it appears on the page — text diagrams, hand-drawn notes and charts.


Permissions and data

  • Who can change a diagram: changing a macro’s diagram needs permission to edit the page; a space’s scenes need permission to create pages in that space. Everyone who can view the page sees the diagram.
  • Scopes: the app asks only to read spaces and pages, and for its own storage.
  • Where data lives: scenes, images and sources are stored in the app’s Forge storage inside your Atlassian site. Diagrams render in your browser; Mermaid, MathJax, Graphviz, Vega-Lite and the shape libraries ship inside the app — no PlantUML or other diagram server.
  • PlantUML and C4: the PlantUML engine (@plantuml/core 1.2026.9) and C4-PlantUML 2.14.0 ship inside the app and load only when a PlantUML diagram is shown or edited. Nothing is fetched from plantuml.com, GitHub or any other server.
  • Cyrillic, Chinese and other scripts work; light and dark themes.

See the privacy policy.


Troubleshooting

  • “No scene chosen” — edit the page, open the macro’s settings and choose a scene, or leave Scene empty and draw the macro’s own diagram.
  • “The diagram could not be loaded.” — press Try again.
  • Insert is disabled in a text dialog — the preview shows the error; fix the line it names.
  • “This scene no longer exists” — the shared scene was deleted; choose another one.
  • “Excalidraw needs an active licence” — a Confluence admin renews it in Manage apps.

Still stuck? Contact support.


Further reading