Specification

On this page

The rules of the Koma language, chapter by chapter. Each rule has a named link.

Version 0.0.0, in development. The rules come from the specification in the Koma repository; the syntax tree and the .komadoc package are in the reference.

Chapters

  1. Lexical structure

    Characters, line ends, delimiter lines, comments, and code and math fences.

  2. Document structure

    Document settings, pages, page settings, page size and layouts.

  3. Elements and attributes

    The form of an element, names and attributes, groups, callouts and curves.

  4. Text and inline markup

    Markdown and LaTeX inside elements, definition lists and footnotes.

  5. Styles and themes

    Document CSS, looks for one layout, style classes and theme documents.

  6. Semantics

    Placement, size, splitting an area, the syntax tree and every diagnostic.

  7. Conformance

    What conforms, the conformance suite, and rendering described in prose.

To search all of it with your browser’s find, read the specification on one page.

How to read this specification

A rule is normative unless it is marked Informative. Normative rules define syntax and meaning, and the conformance suite checks them. Informative rules describe how output is drawn; they are written in prose and promise no pixel-equal result.