Math
Write TeX in a slide; get a sharp equation in the deck's colors.
$\pi r^2$ · $$ E = mc^2 $$Use it when your slides carry formulas — a model, a proof, a rate — and a screenshot of an equation won't do.
Plugins
A plugin adds something you can write on any slide: an equation, a diagram, a word-sized chart, a label, an icon, a face, a graph. Every one is on by default, and costs nothing until a slide uses it. Pills are always on. The Studio is Lattice's editor in the browser; the Playground is the try-it page on this site. Both draw everything below.
Write TeX in a slide; get a sharp equation in the deck's colors.
$\pi r^2$ · $$ E = mc^2 $$Use it when your slides carry formulas — a model, a proof, a rate — and a screenshot of an equation won't do.
Type a diagram as text; get it drawn in your deck's colors.
```mermaidUse it when you explain a flow, a system or a sequence of calls, and you want the diagram to live in the same file as the slide — and change color with the theme.
A chart the size of a word, right beside the number it explains.
`~{12 14 17 21}`Use it when a number on your slide has a history or a target, and a full chart would take more room than the point deserves.
A label with a shape and a color, set right inside your sentence.
`{LIVE}`Use it when a row, a heading or a sentence needs a status, a step, a count or a tag the reader can scan at a glance.
Icons the size of a word, drawn in your theme's colors.
`^{database, c3}`Use it when your slides show systems, pipelines or teams, and you want icons that match the deck instead of emoji or pasted vendor logos.
Type a name; get the same friendly portrait, every time.
`!{Ada Okafor}`Use it when a team, persona or customer slide needs faces before anyone has sent headshots — or for people who are fictional by design.
Write the function; the slide draws its graph in your theme.
```functionplotUse it when you teach or explain a function — a logistic curve, a decay, a loss curve — and a pasted chart image would be the wrong font, the wrong colors and impossible to change.
Paste code, name the language; it's highlighted in your theme.
```tsUse it when your slides show an API call, a config file, a query or a migration, and a screenshot of an editor would be blurry, unsearchable and the wrong colors.
You never install or switch anything on. You write, and the deck draws.
$E = mc^2$ in a sentence, a ```mermaid block, `^{database}` in inline code. Each plugin reads its own small piece of Markdown.
Every plugin is on by default, but its heavy parts — a diagram library, a set of drawings — load only for a deck that writes its syntax. A deck with no diagrams never downloads the diagram library.
The Studio, the Playground, the PDF and the HTML export show the same figure, in the slide's colors, light or dark. PowerPoint gets a picture of the slide.
Three words you'll meet on this site. They answer different questions.
| What it is | How you use it | For example | |
|---|---|---|---|
| A plugin | Something new you can write, on any slide | Write its syntax anywhere | A ```mermaid block on an ordinary slide |
| A component | A layout for a whole slide | <!-- _class: diagram --> at the top of a slide | The diagram slide, designed around a Mermaid block |
| A library | A standalone part of Lattice you can use in your own app | Install it and call it from code | Trama, which lays out Lattice's own flowcharts |
Most decks never need any of this. It's here for decks that travel between tools, and for teams that run Lattice themselves.
plugins: [math, mermaid] line in the deck's front matter (the settings block at the top of the file) loads those plugins wherever the deck is opened, even in a setup that starts with fewer plugins on. It only ever adds; it never removes one.--disable-plugin mermaid, except pills, which are always on. Each falls back gracefully: a diagram shows its source, math shows the TeX as text. A deck's own list can't switch it back on.Two more plugins ship with Lattice. You'll see them in the Studio's Plugins tab, but you won't write them yourself.
scene slide, which plays it in the Studio and the HTML export while the PDF keeps a still. Its scene format is still changing, so it isn't documented here yet.One command writes a working plugin: a folder with a manifest, a renderer, a stylesheet, a reference page and its test cases. It passes the build and the test suite before you change a line.
lattice packages new plugin my-pluginToday that means working in a copy of the Lattice repository: the plugin contract is still a draft, and publishing plugins on their own comes later.