# Koma Markup Language > Koma is a plain-text language for slides, articles and posters: elements in brackets say where content goes, Markdown and LaTeX inside say what it is, and one readable file becomes PDF, PowerPoint or HTML. Koma is new, so it is probably not in your training data. It is not Markdown slides, Marp or reveal.js: do not guess its syntax from them. Read the writing reference (llms-full.txt) before writing more than a few lines, and check every file you write with `koma check`. The essentials: - A `.koma` file starts with document settings, YAML between two `===` lines. - `+++` alone on a line, with a blank line before and after it, starts the next page. The first page needs none. - A page's own settings are YAML between two `---` lines, before its content. `---` is never a rule or a page break; a horizontal rule is `***`. - An element is a tag and its content in square brackets, as `[title: Night crossings]`. The tag always ends with `:`. Content over several lines is indented two spaces, and `]` alone closes it. - Slots put content in the layout's frames: `[label: …]`, `[title: …]`, `[subtitle: …]` (the page's one sentence) and `[main: …]` (the body). Write each once per page. - Text inside is Markdown. Math is LaTeX between `$` signs, or between `$$` lines. A `mermaid` code fence draws a diagram. - Speaker notes sit between two `"""` lines after the page's content; inside them, `[[Point to the map]]` is never read aloud. - A line starting with `;` is a comment. A `:::` line with attributes opens a memo for the author, which no output shows. A minimal three-page deck: ```koma === title: Night Light and Moths theme: default === --- layout: cover --- [title: Night Light and Moths] [subtitle: A fictional survey of three streets] +++ [title: Warm light draws fewer moths] [subtitle: Amber lamps drew an eighth of the moths that cool white ones did] [main: - Elm Street, cool white: 48 moths an hour - Ash Street, amber: 6 moths an hour ] """ Every number here is invented. [[Point to the second line]] """ +++ --- layout: section --- [title: Thank you] ``` Check your work with the `koma` command (`npm i -g @komalang/koma`, or `npx @komalang/koma`): 1. `koma check talk.koma` reports each problem with its code and line, and changes nothing. 2. `koma check --write talk.koma` applies the fixes that keep the meaning and writes the standard form. 3. `koma check --layout talk.koma` also draws the pages to find text that overflows, using an installed Chrome, Chromium or Edge. 4. Fix what remains and repeat until `koma check` exits with 0. Every page of komalang.org is also Markdown at the same address with `index.md`. The English specification is normative. The Japanese translation is available under `/ja/`. ## Writing reference - [Writing Koma](https://komalang.org/llms-full.txt): every construct with checked examples, the `koma` command, and typical mistakes with their fixes. The `@komalang/koma` package carries the same file as `llms-full.txt`. ## Get started - [Start](https://komalang.org/start/index.md) ## Guide - [Guide](https://komalang.org/guide/index.md) - [Why Koma](https://komalang.org/guide/why/index.md) - [Elements and text](https://komalang.org/guide/elements/index.md) - [Columns and boxes](https://komalang.org/guide/layout/index.md) - [Lines and curves](https://komalang.org/guide/lines/index.md) - [Pages and settings](https://komalang.org/guide/pages/index.md) - [Figures, tables and math](https://komalang.org/guide/figures/index.md) - [Speaker notes](https://komalang.org/guide/notes/index.md) - [Check and tidy](https://komalang.org/guide/checking/index.md) ## Specification - [Specification](https://komalang.org/spec/index.md) - [Lexical structure](https://komalang.org/spec/lexical/index.md) - [Document structure](https://komalang.org/spec/structure/index.md) - [Elements and attributes](https://komalang.org/spec/elements/index.md) - [Text and inline markup](https://komalang.org/spec/text/index.md) - [Styles and themes](https://komalang.org/spec/styles/index.md) - [Semantics](https://komalang.org/spec/semantics/index.md) - [Conformance](https://komalang.org/spec/conformance/index.md) - [The specification on one page](https://komalang.org/spec/all/index.md) ## Reference - [Reference](https://komalang.org/reference/index.md) - [Koma AST](https://komalang.org/reference/ast/index.md) - [.komadoc](https://komalang.org/reference/komadoc/index.md) ## Tools - [The koma command](https://komalang.org/command/index.md)