Math formulas with LaTeX math
Draw.io can render LaTeX inside any shape or text label — perfect for theorems, equations, and proofs in your summaries. Wrap your formula in single backticks `…` for inline math, or double dollars $$…$$ for a display block.
Enable it (already on for files opened from this site):
- Open the editor with the Edit button above (the URL already includes
math=1).
- If you opened draw.io manually, go to Extras → Mathematical Typesetting and make sure it's checked.
- Double-click any shape, type your formula between backticks, and press Esc to render.
Examples:
`E = mc^2`
`\sum_{i=1}^{n} i = \frac{n(n+1)}{2}`
$$\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}$$
Tip: you don't need to memorize LaTeX — ask any AI assistant (ChatGPT, Claude, Gemini) to "convert this equation to LaTeX" and paste the result between the backticks.
Reference: apitemplate.io — Convert Markdown (with LaTeX) to PDF.
Custom typography with Google Fonts fonts
Draw.io supports any font from Google Fonts — just enable the integration once and type the family name.
- In the editor, open Extras → Configuration….
- Paste this JSON (or merge into existing config) and click Apply — the editor will reload:
{
"customFonts": ["Roboto", "Poppins", "Fira Code", "JetBrains Mono"]
}
- Select any text or shape, open the right-side Text panel, and either pick a font from the Custom Fonts list or type the exact Google Fonts name (e.g.
Poppins, Cairo, Fira Code).
- The font is fetched from Google Fonts on the fly and embedded when you export to PDF/PNG.
Note: the font name must match the Google Fonts family exactly (case-sensitive). Browse fonts.google.com to find the right name.
Beautiful code snippets code
Plain text doesn't do code justice. Two ways to get syntax-highlighted snippets into your diagrams:
Option 1 — Carbon (online, easiest):
- Open carbon.now.sh.
- Paste your code, pick a theme and language.
- Click Export → save as PNG (or copy as image).
- Drag the image straight onto the draw.io canvas.
Option 2 — VS Code (keeps native fonts & theme):
- In VS Code, open Ctrl+K Ctrl+S to open Keyboard Shortcuts.
- Search for the command
Copy With Syntax Highlighting and bind it to a shortcut you'll remember (e.g. Ctrl+Alt+C).
- Select the code you want to copy in the editor.
- Press your new keybinding — VS Code copies the styled snippet to the clipboard.
- Switch to draw.io and paste it onto a code-snippet shape from the Scratchpad library (the Scratchpad is preloaded when you open files from this site).
Tip: the Scratchpad already includes ready-made code-block frames — paste your highlighted code inside one for a clean, consistent look across all your summaries.