Specification · Chapter 3 / 7
Elements and attributes
On this page
Everything placed on a page is an element in square brackets: a tag, a colon, and the content.
The form of an element
Elements
A Koma element (below, simply an element) is something placed on a page, written in square brackets.
How to write
Write [tag: content]. Separate the tag name and attributes with spaces and follow the tag with :. Write attributes as key=value or with the shorthands #id and .class. When the content runs over several lines, open with a [tag: line and usually close with a line of ] alone at the opening's depth. Elements written inside are indented two spaces deeper per level.
[title: a one-line element]
[box #memo .card x=10% y=50% w=40%:
a multi-line element
[box .tint: a nested element]
]Example
Output of koma export
Source
[title: Night at the library]
[box .card x=6% y=30% w=36%:
The reading room is upstairs.
Read in quiet.
]
[shape .primary x=60% y=28% w=10% h=18% type=ellipse:]
[line x1=860px y1=400px x2=1120px y2=400px arrow=end:]
[math x=52% y=66% w=36%:
19{:}00 + 3\,\mathrm{h} = 22{:}00
]Details
- One-line form:
[tag: content]. The whole line is in brackets, and the brackets match. - Multi-line form: it starts with
[tag:and runs to its closing]. The tag ends with:, and may be split over several lines (Tag and content). The body may start right after the colon or on the next line. At most one space right after the colon on the opening line is a separator; anything after it is body. On later lines, up to depth × two spaces are structural; tidying adds what is missing, and more is kept as body. The closing]may stand on its own line or end the body's last line. Matching brackets in the body, Markdown links, images and footnotes, an escaped\], and brackets in inline code, math or fences do not close. To write an unmatched]at a line end as text, write\]. An opening line without:is not an element (When brackets are an element). A:inside quotes is part of the value. An unclosed element keeps its source and a diagnostic. - Tag: the standard form is
name #id .class .class key=value…, ending with:. A tag holds a name and attributes, written as#id,.classorkey=value. The name,#idand classes may each be left out (without a name,box). The joined form (box#id.card) is read too. Newly inserted elements, examples and explicit tidying use the standard form; ordinary saving and dragging keep the form that was written. - Attribute values: in the
key=valueform, the right-hand side is the attribute value. A value's kind (a word, a number, a percentage, a dimension, a value starting with#, a string or a list) follows from how it is written, and only a value of a kind may go unquoted (The kinds of a value). Several values are written as a list in parentheses,(a, b)(Lists of values). For lengths,weight,stepandrotate, quoting does not change the meaning. For undefined attributes, a quoted number or value with a unit is kept apart as a string. The formatter leaves quotes out only for a value of a kind, when syntax and the value's type and meaning are kept. Inside a double-quoted value, quotes, backslashes and the like are escaped as in JSON. An invalid escape is reported asbad-value, the value is not applied, and the source is kept. In a correctly double-quoted string,[and]are characters of the value and are not counted as brackets of an element or its body. - Lengths and units: a length attribute carries a unit:
xandwas%of the parent's width,yandhas%of its height, or logical pixelspx(x=10% w=40%,w=240px). A line's endsx1,y1,x2,y2take onlypx.0may omit its unit. A number without a unit is reported asmissing-unit, an unaccepted unit (mm,%for a line's ends, …) asbad-unit, and the attribute has no effect (the source stays as written, and the bracket is still an element even when the value has no effect).xandymay be negative.w=0andh=0are reported aszero-size. - Parent: the parent that positions and sizes are measured against is the whole page directly on a page, or else the parent element's content rectangle (inside padding and border). Moving an element into or out of another in the GUI also rewrites its position against the parent's content rectangle as drawn, so it does not move on the page (
pxstayspx). Writing back keeps the value's unit (pxstayspx,%stays%); new values are%to one decimal place. Only an explicit action changes the unit. - Text direction: the direction of text is the attribute
dir:dir=rtl(right to left) ordir=ltr(left to right, the default). Other values are reported asbad-valueand have no effect. - Unquoted words: a word without
=in a tag (likertlin[box rtl: …]) is not in the grammar: its source is kept as written, it has no effect, and each is reported asbare-word(warning).rtlis a bare word too, with no fix offered. A bare word is read as a word of the tag only when the name is a known tag name (Kinds of name) or the tag has an#idor class, and only before the:. Other bracketed lines ([see figure: 3]) stay text (When brackets are an element). - Nesting and indentation: elements may nest. Openings, one-line elements and standalone closing lines start at the beginning of the line or after the current depth × two spaces; a standalone closing line aligns with the depth of the parent it closes. In a multi-line body, up to the element's depth × two leading spaces are structural and more are kept as body. Explicit tidying adds only the structural spaces a line lacks. Tabs do not count as structural space. To write a bracketed line that is reserved at that position in a deep nest as text, escape it with a backslash or put it in a code fence. Code and math fences and their content are read as Markdown after the same structural indentation is removed, keeping any extra indentation. Notes at the root have no structural indentation and keep their source.
- The same attribute twice: when the same attribute is written twice (
#aandid=b,.redandclass=blue,x=1% x=2%), none is removed andduplicate-attribute(warning) is reported. The first one takes effect, and the tag's#idand.classcount beforeid=andclass=wherever they stand. Changing the value rewrites the one in effect, in its own form (#ato#c). Removing removes every occurrence, so no other value starts to take effect. A new ID or class is written in the tag as a standalone#idor.class, unless reading it back would not give the same value (it contains.or a space, or is empty): then it is writtenid="…"orclass="…", and the#idor.classthat would take precedence is removed, so the written value takes effect. An empty value is written as a value; only no value (null) removes. The app (the format panel) and MCPsetAttributeswrite with the same writer (setAttrs). - Attributes and looks: attributes say what an element is and where it goes (
x,y,w,h,rotate, a line's ends andarrow,marker,#idandid=,.classandclass=, and so on). The look is said by classes andstyle, each in one way. Looks layer as theme, class, thenstyle, the later winning. A look written as an attribute (gap=,opacity=,color=,fill=,stroke=and the like) has no effect, keeps its source as written, is reported aspresentation-attribute(warning), and whenstylecan read the value, one fix moves it there. The app (the format panel, inserting), MCPsetAttributesandkoma formatnever write a look as an attribute. - The language's attributes and the user's: an attribute whose name has no prefix belongs to the language. Users who want attributes of their own add
data-([box data-source=fig3: …]). Adata-attribute stays in the source, has no effect, and is not reported. An unprefixed attribute the language does not have (other than the name of a look) has no effect, keeps its source as written, and is reported asunknown-attribute(warning). Reordering (Order of attributes) puts it after the language's attributes. A line runs from end to end, sohhas no effect on it and is reported asline-no-height(warning). - Look classes: styles (Named styles) are classes:
[box.tint: …],[box.fill: …],[box.outline: …],[box.bar: …],[box.card: …]. Callouts and shapes take the same classes. The look classes (tint,fill,outline,bar,card) are drawn by the theme. No class changes content, placement or reading order. A class whose name is not in the theme stays in the source, for the theme's or the document's CSS to draw. To split across or down, write[col:]and[row:](Columns and rows). style:style="color: red; border-width: 2px"holds CSS declarations for that element; placement is decided byx,y,w,h. These declarations of appearance may be used:align-content,background-color,border-color,border-style,border-width, the per-side linesborder-top,border-right,border-bottom,border-leftwith their-width,-colorand-style(for examplestyle="border-bottom: 2px solid #2d287f"),border-radius,box-shadow,color,font-family,font-size,font-style,font-weight,gap(between split areas, Columns and rows; in an element without a split, between its direct children, Cards without positions),letter-spacing,line-height,opacity,paddingand the per-sidepadding-top,padding-right,padding-bottom,padding-left(a length or percentage like one side ofpadding; other values arebad-value; withpadding, the one written later wins, as instyle="padding: 8px; padding-left: 32px"),stroke-dasharrayandstroke-width(a line's dashes and width),text-align,text-decoration-line(strike-through of the whole element),text-spacing-trim(the space of full-width brackets at line ends; CSS Text 4 values, Brackets at line ends), the arrow-head variables--head-startand--head-end(triangle,stealth,open,dot,diamond) and--head-size,--head-start-size,--head-end-size(sm,md,lg), and the face of the math inside,--math-font(fira,stix2,newcm), where the innermost wins. Other values of these variables arebad-value. Values that load outside resources and unsupported declarations are not applied, give a warning, and keep their source. A theme's shared CSS and ordinaryvar()work too. Precedence follows the ordinary CSS cascade.- Per-side lines: no new attribute or class is added; they are written with their CSS names in
style. A theme's CSS can hold the same declarations (title { border-bottom: 2px solid #2d287f; }). HTML and PDF draw them as the browser does. A side line takes inner space like a full border, as on an element with a surface (Named styles). PowerPoint writes four sides of the same width and colour as the shape's outline, a left side alone as a left band, and otherwise each side as a thin rectangle filled at the line's width along the inside of the frame (rotated with the element). Sides that are not solid (dashed, dotted, double and so on) are reported before export, which stops. On a rounded element, side lines are straight bands without the rounding. Thebordershorthand is not supported.
- Per-side lines: no new attribute or class is added; they are written with their CSS names in
- Rotation: an element on a page that has no child elements and is not the footer can be rotated in degrees, as
[box x=10% y=20% rotate=30: Example]; quoting does not change the meaning. Rotating the footer, a nested element or an element with children is not supported: the source is kept, reported, and not applied when drawing. HTML, PDF and the PowerPoint output that supports it show the rotation. - Steps: the common attribute
step(Steps):[box step=1: text],[col step=2: text],[row step=2: text]. Only a safe integer of 1 or more is valid; an invalid value is reported as abad-valuewarning, keeps its source, and is ignored as a step. A nested element's step is the largest of its own and its ancestors'; a child without one inherits its parent's. There is no attribute syntax for a standalone Markdown paragraph. - Shapes and lines: a rectangle or an ellipse is written
shapewithtype=rect|ellipseandx,y,w,h; a rectangle's rounded corners areradius(Shapes). A freely placed line is writtenlinewithx1,y1,x2,y2in logical px, witharrowleft out orstart,endorboth. A line through three or more points is writtenpoints=((x, y), (x, y), …): each point is a list(x, y)of unitless logical px, and there are two points or more (Lists of values)..smoothmakes it a curve through the points. - Math, code and diagrams: to place them on their own, write
[math: x^2],[code language=python: print(1)]and[diagram: graph LR; A --> B]. Their bodies are read as TeX, code in the named language and Mermaid, and are never converted as Markdown (how each element reads its body: How an element reads its body). Code withoutlanghas no language.$…$,$$…$$and code fences in text work as well.- Each line of a multi-line body is written at least two spaces deeper than the element; after the structural indentation is removed, the remaining indentation and characters are the body. The closing
]stands on its own line at the opening's depth. An indented],---or;inside is body text. A missing close is reported, and never takes in the next page or an unindented element. In the one-line form, the last]closes and earlier brackets are body text. - Standalone math, code and diagrams share placement and selection. A theme's custom tag that
extendsthem is not supported: it is reported, and the source is kept.
- Each line of a multi-line body is written at least two spaces deeper than the element; after the structural indentation is removed, the remaining indentation and characters are the body. The closing
- Figures: write
[figure:, on the next line the picture[image src="assets/result.svg" alt="Line chart of the measurements":], then the caption, and close with]. A picture without a caption is written as[image src="…" alt="…":]alone (Figures and images).srcfollows the same path and safety rules as other image references,altis the image's alternative text, and the text of the figure's body outside what it shows is the caption in Markdown.altmay be left out, and nothing is reported; a decorative image hasalt="". An empty[figure:]is kept as an unfilled field of a new page; a caption alone or an emptysrcis reported as a missing reference. A figure goes in the theme's figure slot if there is one, else in the body's flow; coordinates written in the document take precedence.- Size: a figure with a height written scales its image, keeping the aspect ratio, within its frame less the caption's area. A figure with only a width written fits its image to that width, keeping the aspect ratio. A figure with neither takes all the space left in its parent as its area and fits its image there in the same way as a figure with a height. Several such figures in one parent share what is left equally. The caption is part of the figure's area. When the parent has no height of its own (inside an element that grows with its content), or the figure is placed with
xandyand no size, the image is drawn at its natural size. A parent has a height of its own in the page's flow, in a layout frame, in a[col:]or[row:]area (when the parent holding it has a height), and whenhis written. - Picture-only paragraphs: a paragraph holding only
on its line is drawn the same way, as a figure without a caption. Directly in a parent with a height, it takes all the space left as its area, fits the picture there keeping its aspect ratio, and shares what is left equally with the other figures and picture-only paragraphs of that parent. A run of pictures written directly on a page is drawn the same way, as figures in the page's flow. A picture-only element placed withxandy, and a picture inside an element that grows with its content, are drawn at their natural size (the placed element's width). - Caption: picture and caption are one group, the caption always right under the picture, with the theme's caption gap between them. A figure with only a width written is as high as the fitted picture plus the caption, and its text is not shrunk (Who decides size). When the frame is taller than the group, the group sits at the top by default, centred across.
align-contentin the figure'sstyle(start,center,end, also withsafe) puts the group at the top, middle or bottom of the frame. HTML, PDF, images, PowerPoint, editing and drawing all use the same place. PowerPoint too keeps the position and proportions of the image as shown. - Resources: a figure's resources are dependencies when saving, packing and exporting, like other images. HTML uses
figure,imgandfigcaption. - Cropping:
crop=(top, right, bottom, left)on[image:]is how much to cut from each side of the original image (the order of CSSinset(), all four written; values are%or0, Lists of values). The aspect ratio of what remains becomes the image's, and the frame's size (w,h, a column's width) is decided as it would be anyway. The original image file is never changed. An unreadable value is reported asbad-value(crop), and the image is drawn uncropped. A cropped image fits its frame by the same rules as an uncropped image of the remaining size (whether the figure hash, a position, no size, is alone in a column, or stands in a row). Only the inside of the frame is drawn: the cut parts are not drawn and the page does not move (a page clips its content and never scrolls). A PDF page used as a figure is cropped the same way. HTML and PDF are as drawn; PowerPoint places the whole image and crops it to the same area (srcRect). A PDF page goes in as a figure of the remaining part only.
- Size: a figure with a height written scales its image, keeping the aspect ratio, within its frame less the caption's area. A figure with only a width written fits its image to that width, keeping the aspect ratio. A figure with neither takes all the space left in its parent as its area and fits its image there in the same way as a figure with a height. Several such figures in one parent share what is left equally. The caption is part of the figure's area. When the parent has no height of its own (inside an element that grows with its content), or the figure is placed with
- CSV and TSV tables: write
[table src="assets/results.csv": Results]..tsvis separated by tabs, anything else by commas. The body is a Markdown caption. CSV cells are plain text, never read as elements, Markdown or math. The first row is the column headings. UTF-8 (with or without a byte order mark), commas, double quotes, doubled quotes and line breaks inside quotes are read; a row with a different number of columns loses nothing, is padded with empty cells, and gives a warning. Invalid quoting or UTF-8, missing files and files over the limit never produce an incomplete table.widths=(1, 3, 2)on[table:]is the ratio of column widths; for a Markdown table, wrap just the table in[table widths=…:…]withoutsrc.- A table's
srcis limited to a relative.csvor.tsvpath inside the document's folder, and only referenced files are read. Nothing is written to files and no formula is evaluated. The file is read again when presenting or exporting starts. A package includes the referenced CSV; when it cannot be read, no incomplete package is made.
- A table's
- Notes: Markdown attached to a page and never shown to the audience. They open with
"""directly on a page and close with a line of the same characters alone. The opening line may holdkey=valueattributes in the form of an element's tag. None is defined: each is kept and reported as unknown, including the retiredspeak, whose block is now read like any other. Several notes are joined in order with a blank line between. A slide app uses them as speaker notes. They are not tied to the next element. The recommended form puts one blank line before the opening"""line and one after the closing"""line, like+++and---(none inside at the start or end, and none at the start or end of the file). Tidying and the app write notes in this form (The standard form). Reading is the same without the blank lines.- Within notes, double brackets mark what is not said. On one line,
[[Point to the figure]]is a stage direction in plain words: nothing inside it is read as an instruction, so[[look here about 10s]]is only words, never a pause. The speaker sees it quietly in single brackets ([Point to the figure]); PowerPoint's speaker notes do the same. Speech skips it. Empty brackets,\[[and the same text inside a code span or fence are literal, and the page outside notes never reads double brackets. The former[…]{speak=false}and[…]{pause=…}are plain text. - In the recommended form, put one ASCII space between a stage direction and the text on either side of it. At the start or end of a line, only the side with text needs a space. For example,
Clap once. [[Wait for the echo]] Then listen.Both spaced and unspaced directions are recognized. Tidying preserves the author's spaces (The standard form). - For more than a line, a line of
[[alone in column 0 opens an unspoken block and a line of]]alone in column 0 closes it; spaces after either mark are allowed. Without]]the block runs to the end of the notes. The recommended form indents the lines between by two spaces, as Koma indents structure; that indent, up to two spaces shared by every written line, is not part of the content, so unindented lines read the same. The content is Markdown (lists, emphasis, math, blank lines), shown to the speaker as a quiet block, kept in PowerPoint's speaker notes as a quiet memo, and left out of speech and measured speech time.[[and]]inside a code or math fence, or indented, are text. Tidying keeps the block as written.
[title: Why echoes fade] """ Pop the balloon first. [[Point at the window]] [[ If someone asks: - *Why does it fade?* Each wall keeps a little. - Keep a spare balloon nearby. ]] """ +++- A
---inside closed notes is kept as part of their Markdown and is not a page break. A;at the start of a notes line is a comment, shown neither in the presenter view nor in PowerPoint's speaker notes (Page boundaries). Quotes and marks inside code and math fences belong to the fence. Notes end at a"""outside any code or math fence that closes. An unfinished fence in the text is not mistaken for unclosed notes. - When notes do not close, reading recovers at the first page break at the root outside a fence, or at the end, and reports
unclosed-notes(error). The text up to there is isolated from the audience and kept. Empty notes are allowed. - The
.komafile, the presenter view and PowerPoint's speaker notes carry the notes on purpose. The audience's HTML, PDF, slides and thumbnails never carry their text, not even in hidden elements or attributes. Diagnostics never copy it. The older form and unclosed notes failkoma checkandkoma format, andkoma exportrefuses before writing output.
- Within notes, double brackets mark what is not said. On one line,
- Memos: a
:::line with attributes directly on a page opens a memo for the author, which no output shows (Memos).
Tag and content
A colon separates an element's tag from its content, and a tag always ends with :.
How to write
Before the : is the tag, after it the content: [box.tint x=5% y=8%: content], [title: let x = 5]. An element without content still has its : and closes with :] ([title:]). When a tag is long, continue its attributes on lines two spaces deeper than the opening line, and put the : right after the last attribute or on its own line at the depth of the attribute lines.
[box
.card
x=10%
w=40%
:
content
]Example
Output of koma export
Source
[title: A tag over several lines]
[box
.card
x=10%
y=32%
w=50%
:
A box with one attribute per line.
]
[box .tint x=10% y=64% w=50%:]Details
- The
:may be attached to the tag's last word or stand apart. - An attribute continuation line contains one or more attributes in the
#id,.classorkey=valueform. An attribute value is never broken across lines. The body starts after the:. Tidying puts one attribute per line and the:on its own line. - Elements without content:
[title:],[box.card:],[title x=5%:]. A multi-line element's tag ends with:too. A tag without:is not an element (When brackets are an element). - A line with a word that cannot be read as a tag (
[title Koma]) is not an element. If the name is a known tag name, it is reported asmissing-colonwith one fix that adds:after the name. The line is a half-made element: it is not drawn, and is not put in a bare-text box (Placement). To draw it as text, start it with\. Everything after the name is never read as content. - In a one-line element, at most one space right after the
:is syntax; further leading spaces and trailing spaces of the body are body, kept and shown.[label:text]without a space is valid. The body of[label: text]istext; that of[label: text]starts with one space. A colon inside an attribute value, as in a URL, is not this boundary.
When brackets are an element
A bracketed line is read as an element only in set forms; any other bracketed line stays text.
How to write
To make an element, end the tag with : ([title: content], [box.card:]). A bracketed line without :, such as a name alone ([1], [NOTE], [Note this matters]), is drawn as text (for the exceptions, see element-shaped lines below). To draw a line shaped like an element as text, start it with \ (\[theorem: literal]).
Example
Output of koma export
Source
[title: Brackets that stay text]
[main:
[NOTE]
Doors open at 7 pm.
\[theorem: this line is text]
See [1], Library News, issue 3.
]Details
- One-line form: a line whose tag ends with
:is an element. A line without:is text ([1],[NOTE],[title:],[box:],[TODO],[Note this matters]). - Multi-line form: the tag has the form of Elements, ends with
:, and has a matching line of]alone. - Element-shaped lines (
missing-colon): lines without:that are one of these. (a) One-line, readable as a tag, with an attribute after the name (including an assignment whose value is invalid and has no effect):[box#memo],[box.card x=5%]. (b) One-line, a known tag name (Kinds of name) followed by a word that is not an attribute:[title Koma]. (c) Multi-line, an opening line with a Elements tag and a matching line of]alone:[box x=10%…]. These are not drawn, are not put in a bare-text box (Placement), and are reported asmissing-colon(error) with one fix that adds:(at the end of the tag for (a) and (c), after the name for (b)). For (c), the lines and child elements inside are held back with it. - Lines with a name alone:
[title]and[NOTE]are not (a) and are drawn as text. They are reported only when the name is known: a built-in tag name (Kinds of name), or a tag name or layout frame name of the theme in use (Frames from sample elements), is taken as a forgotten:and reported asname-without-colon(note). Other names ([AM1],[TODO],[1], a definition-list term on its line) report nothing. Tidying leaves these lines as written and never adds:. - Elements with an unknown name:
[theorem: content]and[theorem:/content/]are both elements, keeping their source, range and children. Names are resolved when drawing. A name that is neither built in (Kinds of name) nor a tag or frame name defined by the theme in use (Frames from sample elements) is anunknown-tagerror, shown with its line number and range, and the element's content is drawn where it is written, in the flow, as a plain[box:]with no placement or style (directly on a page, the same as bare text, Placement). Neither the name nor the tag's attributes take effect, and it does not go into that name's frame. Child elements and footnotes are drawn as inside a[box:]. Only[notes: …]draws its content on no page (speaker notes are written in"""blocks, Elements). Once the name is fixed or the definition is loaded, it is an ordinary element. The canvas, HTML, PDF, PowerPoint and image output all draw it the same way. An unknown element alone never makes the export of the whole document fail. - The command line: a check without a browser reads
theme.komain the document's folder to know the names; only when the theme cannot be read does it report a pending name with a theme reference astheme-tag-uncheckedinstead.koma checkandkoma lintreportunknown-tagas an error and exit with 1. The CLI returns the diagnostics of the tree actually resolved. - Elements without a close: the search for a close never crosses a
+++in column 0. When no close is found, the opening line keeps its source, is reported asunclosed-element, and reading recovers on the next page. That line, and directly on a page what follows it to the end of the page, are not drawn, being the content of an element without a close (Placement). - Keeping a line as text: when a line meant as text is read as an element (
unknown-tagandmissing-colonfor[Note: …]), the message says that a leading\keeps it as text. A\at the start of a line stops it being read as an element or a list item.[docs](https://example.com), images, footnotes,[0, 1)and[[wiki]]keep their Markdown meaning; no name is guessed into an element. A line of a reserved form meant as text is written\[theorem: literal]or in a code fence.
Names and attributes
Kinds of name
There are three kinds of element name: slot names, which go to fixed places of the layout; reserved words, which have no fixed place in the layout; and custom tags, which a theme declares.
How to write
Write what goes to a fixed place of the layout with a slot name ([label: …], [title: …], [subtitle: …], [main: …], [footer: …]). A cover also takes the cover-only slots authors, affiliations and date. Write an element with no fixed place in the layout with a reserved word: box, callout, shape or group.
Example
Output of koma export
Source
[label: Night at the library · 2]
[title: How the swap works]
[subtitle: Leave one book, take another]
[main:
The swap table is by the entrance.
]
[box .tint x=60% y=70% w=32%:
No booking needed.
]Details
- Slot names (
label,title,subtitle,main, and the optionalfooter) go to fixed places of the layout (Page layouts). They are named for the role of their content:labelis a short label of the page's or the talk's context, such as the chapter or the event;titleis what the page discusses (usually a one-line noun phrase);subtitlefollows the title with the one sentence the page wants to say;mainholds figures, tables and explanation. On every page,subtitleforms one heading with the title (HTML elements and reading order). References at the bottom of a page (references) are not a place to write; they are made from footnotes (Footnotes). The page number is not written but turned on withpaginate. - The slot
labelhas no alias and is not the layout namesection.layout: section(a kind of page, the section opener) and[label: …](a slot for the chapter or event name) are different things. - Slots of the cover only:
authors(the presenters; one or more),affiliations,date(as written; never today's date). Their content is ordinary text (Markdown), with no pairing of authors and affiliations. On any other layout they are reported asslot-not-in-layout(warning), like other slots, and the content is kept. - Reserved words:
box(a plain element),callout(a box with a marker column, Callouts),shape(a shape with its text inside its outline, Shapes),group(a container that only gathers elements, Groups). Speaker notes are written in"""blocks (Elements). - Custom tags are declared in the theme's YAML and follow HTML's valid custom element names: they start with an ASCII lower-case letter, contain a hyphen, contain no ASCII upper-case letter, space, NUL,
/or>, and are not names HTML reserves. Standard tags never use a hyphen (nor will tags added later). A declaration of a name not of this form (such ascard) or of a standard tag's name is reported as a problem of the theme (inkoma check, a warning on the theme document), and only that declaration is unused. The theme's source stays as written. An element of that name in a document isunknown-tag(When brackets are an element), like an undeclared name: its content is drawn as an ordinary box, and its source is unchanged. While the theme has a problem, export (PDF, HTML, PowerPoint,koma export) reports it and stops. A tag and where it goes are separate: a custom slot takes[box slot=left: …]. Elements of the same tag may appear on a page any number of times. - One pair of brackets is one element. The same slot written twice on a page is not joined: the second stays a separate element, with its id, and is reported.
- Two or more of the same slot on one page are all drawn: none is dropped, merged or made an error.
duplicate-slotstays a warning and does not stop export. Without positions they are drawn on top of each other in the same frame, so the message says what happens and how to fix it: they are drawn on top of each other; give one a position, or keep one. - Where one title of the page is needed (the document's name, the heading read aloud, checks of the title's content), the first in the source is used, as with HTML's
<title>.
Order of attributes
The order of attributes in an element's tag has no meaning: any order reads the same, and only explicit tidying puts them in a set order.
How to write
Write attributes in any order. When an attribute is written twice, the first takes effect (Elements). Tidying orders them as name, #id, classes, x y w h rotate z, other known attributes, and unknown attributes. For example, tidying turns [box.note style="color: red" w=40% x=10.5% data-n=1: into [box .note x=10.5% w=40% style="color: red" data-n=1:.
Details
- Explicit tidying (
koma format,koma check --write, the app's Tidy) separates the tag's words with spaces in this order: 1. The element's name; 2.#id; 3. each.class(keeping their order among themselves).id=andclass=come after them. 4.xywhrotatez5. Other known attributes in this order: what to draw (slotsrcaltcroplangwidthsfrangebaselinefillfill-opacitystrokepoints), a line's ends and connections (x1y1x2y2fromfrom-sidefrom-attoto-sideto-atroutearrowlabel-atlabel-side), and the rest (weightmarkerdirstepstep-effectstyle) 6. Unknown attributes (including looks written as attributes, likeopacity=) last, in the order written - Values move as written: no rounding, no change of unit, no change of quoting (quotes are removed only where tidying could always remove them, Elements).
- A tag with a duplicated attribute (
#idandid=,.classandclass=count as the same attribute), with a bare word (bare-word), or withname=orrole=, has its joined name, ID and classes separated, and keeps the order of each word. - Rewrites other than explicit tidying (moving or resizing on the canvas, the format panel, MCP
setAttributes) keep the written order. Attributes whose value changes are rewritten in place; attributes whose value does not change are not rewritten. A new attribute goes into its place in the order above without moving written ones: before the first written attribute that comes later in that order, or else at the end of the tag (even when the written order differs from the order above). Several attributes added at once follow the order above. So a tidied tag stays tidy after the GUI rewrites it. - The command line and the app use the same tidying function.
Groups
Groups
A group is a container that only makes its elements belong together, with no position, size or look of its own.
How to write
Open with a [group: line, list the elements to gather one level deeper, and close with a line of ] alone. The tag takes only an #id and classes.
Example
Output of koma export
Source
[title: Two rooms]
[group #venue:
[box .card x=10% y=40% w=35%:
Reading room, first floor
]
[box .card x=55% y=40% w=35%:
Swap table by the entrance
]
]Details
- The elements inside are read and drawn as they would be without the group. A positioned element keeps its position relative to the group's parent (Elements), a flowing element flows in the parent's flow, and a frame element (
[title:]and the like) goes into the layout's frame. Text inside reads as if written in the group's parent (directly on a page, bare text, Placement). The group's opening and closing lines break a run of bare text, like any element's lines. Otherwise, wrapping elements in a group or unwrapping them does not change what is drawn. - Any element may go inside: frame elements, positioned elements, flowing elements,
[col:]and[row:], other[group:]s. Nesting has no depth limit.[col:]and[row:]splits (Columns and rows) are counted from outside the group: a[col:]wrapped in a group joins the same split as the[col:]beside it. - Attributes other than the
#idand classes keep their source, have no effect, and are each reported asgroup-attribute(warning). A group with nothing inside (including one of only blank lines and comments) is reported asempty-group(warning) and kept. A group without:is held back with its content asmissing-colon, like any element (When brackets are an element). - Its extent is the rectangle around its elements as drawn (a rotated element as rotated), never written in the source. Stacking order is source order (an element with
zfollows the stacking-order rules). Reading order (HTML elements and reading order), footnotes (Footnotes) and steps (Steps) belong to each element inside. - HTML, PDF and images draw as without the group. Tidying indents it like other containers (The standard form).
Callouts
Callouts
A callout, [callout: …], is a box with a marker column on the left and a content column on the right.
How to write
Write [callout marker="⚠": content]. marker= takes one emoji or symbol; without it, the marker is 💡. A callout takes the same attributes as a box.
Example
Output of koma export
Source
[title: What to bring]
[main:
[callout marker="⚠":
Bring your own cup; there is no kitchen.
]
[callout:
Write your name in your book, so it can find its way back.
]
]Details
- The marker is drawn at the top of the left column. All content (paragraphs, lists, math, nested elements) flows in the right column and never wraps under the marker.
- The marker is written
marker=: one emoji, one symbol (⇒ ∴ ※ ✔ ⚠ ⓘ and the like: one character that is neither a letter nor a digit), ornone. Without it, 💡.- Emoji and symbols are drawn a little larger than the text (1.25 times). A symbol takes the box's text colour; an emoji keeps its own colours. What a reader sees as one character (one grapheme, such as a skin tone or a flag) counts as one.
- Text (any value that is not one emoji or symbol: two or more characters, or one letter or digit, such as
marker=Cost) is not a marker. It keeps its source, 💡 is drawn, and it is reported astext-marker(warning). The fix is to choose an emoji or symbol, or to write a text heading as a definition list (Definition lists). marker=nonedraws neither marker nor column; the content starts at the inner padding.- An empty value or one with a line break is reported with the general attribute warning
bad-value, keeps its source, and 💡 is drawn.
- The class
badgehas no special meaning. Like any class it stays in the source, changes nothing unless the theme's or document's CSS defines it, and is not reported. - The column is as wide as a symbol (
1.25em), with0.5em(of the body text size) between marker and content. Every marker has the same width, so consecutive callouts align their content's left edge. When the marker column is wider than a quarter of the callout's inner width (between its left and right padding, including the column),koma check --layoutreportslong-marker(warning) with the percentage of the width the marker takes.- With
paddingwritten instyle, the marker column is still taken inside that padding: the left padding is the written one plus the column (padding: 0puts the marker at the box's left edge). The marker never leaves the box. Editing, drawing and PowerPoint agree.
- With
- The content is centred vertically, with equal top and bottom inner padding (Named styles). In a frame taller than its content (with
hwritten, or stretched to a column's height), the content sits in its middle;align-contentinstylewins. The marker aligns with the content's first line (the first even when there are several), and its line is as high as one line of body text, so even with one line the marker's and the text's centres line up, and the marker never makes the box taller. Editing and drawing put it in the same place. - A callout without a style class (Named styles) is drawn
tint. It takes the same attributes as a box, can go wherever a box can, and nests. [box:]has no marker. Amarker=on a box keeps its source, draws nothing, and is not reported.- Tidying indents it like other containers (The standard form). HTML, PDF and images draw it as the screen does.
Shapes
Shapes
A shape ([shape:]) is an element that draws the outline of a rectangle or an ellipse and puts its text in the rectangle inside it; its kind is written type, and a rectangle's rounded corners radius.
How to write
[shape type=rect: …] is a rectangle and [shape type=ellipse: …] an ellipse. Without type it is a rectangle. For a circle, write the same w and h. Round the corners with radius: [shape radius=16px: …], or a share of the shorter side, [shape radius=10%: …] (50% makes the ends half circles). The text is written as in a [box:] and drawn in the middle of the rectangle inside the shape.
[shape x=10% y=30% w=320px h=180px type=rect radius=16px:
Measure
]
[shape .tint x=55% y=30% w=240px h=240px type=ellipse:
Compare
]Details
[shape:]is an element apart from[box:]. A box is a container for text and layout (flow, columns and rows, frames, the base of a theme's custom tags), and its rounded corners only shape its fill without changing where its text goes. A shape's outline comes first: it decides the text rectangle, the points lines connect to and the PowerPoint shape.- The values of
typearerectandellipse, the names of the SVG elements (<rect>,<ellipse>). Any other value is reported asbad-value(type) and drawn as a rectangle. The attribute has the same name as a chart's kind (typeon a chart). radiusis a length:px, or%of the shape's shorter side (not a share of each side as CSS's%, so the corners never turn elliptical).0may leave out its unit. A value over half the shorter side (50%) is taken as half, as CSS rounded corners are, and nothing is reported. A number without a unit ismissing-unit, another unit or a value that is no lengthbad-unit, and a value below 0bad-value(radius).radiushas no effect on an ellipse: its source is kept as written and it is reported asradius-on-ellipse(warning), with a fix that removes it (safe: what is drawn does not change). It takes effect again if the shape becomes a rectangle, sokoma format --writedoes not remove it.- Only
radiusdecides the corners.border-radiuswritten for a shape (instyle, a theme or the document's CSS) is not used; instyleit is reported asshape-border-radius(warning). The fix moves it toradiuson a rectangle (it may change the meaning, since what is drawn changes) and removes it on an ellipse (safe). A theme cannot round every shape's corners: the shape is what its source says. - The text rectangle: the text goes in the rectangle that fits inside the outline's line, less its
padding.- Rectangle: the rectangle inside the line, and with a
radiusof r, a further r × (1 − 1/√2) (about 0.29 r) in from each side: the rectangle that touches the corner arcs at 45°. - Ellipse: the rectangle inscribed in the ellipse inside the line, with the ellipse's proportions (its width and height 1/√2 of the ellipse's), centred.
- Rectangle: the rectangle inside the line, and with a
- Alignment: by default centred both ways (the theme's CSS
shape { text-align: center; align-content: safe center; }). Change it withtext-alignandalign-contentinstyle. - Size: without
h, the text rectangle is as tall as its text (a rectangle as a[box:]; an ellipse √2 times the text rectangle's height). Placement (free or in the flow), the width withoutw, what the body may hold (Markdown and child elements), shrinking and overflow (Who decides size) are as for[box:], each taking the text rectangle as the box's content rectangle. - Look: by default a thin line in the text colour and no fill. The style classes (
tint,fill,outline,bar,card,.accentand so on) andstyletake the same declarations as[box:]. Themes and the document's CSS selectshapeandshape.tint. - Connected lines: a rectangle, rounded or not, has the connection points top 0, left 1, bottom 2, right 3; an ellipse top 0, left 2, bottom 4, right 6. A line's end stops on the outline.
Figures and images
Figures and images
A figure ([figure:]) is a container holding what it shows and the text of its caption; the picture itself is written as an image ([image:]). A figure is written one way: what it shows as a child, and the rest of its text as the caption.
How to write it
[figure:
[image src="assets/decay.svg" alt="Sound level falling over time in three rooms":]
How the echo fades in each room
]
[image x=70% y=10% w=20% src="assets/logo.svg" alt="":]
A picture without a caption is written as [image:] alone. A chart with a caption is wrapped in [figure:] the same way.
Details
- The attributes of
[image:]:src(the same path and safety rules as other image references),alt(alternative text; nothing is reported when it is left out; a decorative image hasalt=""),crop(cropping, as a listcrop=(0, 0, 10%, 0), with the order and meaning of the cropping in Elements), and the commonx,y,w,h,#id, classes,style,stepandrotate. It has no body. Text in its body keeps its source, is not drawn and is reported asimage-body(error), with one fix that wraps it in a figure as its caption (it may change the meaning). An emptysrcis reported as a missing reference,bad-value(image src). - The attributes of
[figure:]are only the commonx,y,w,h,#id, classes,styleandstep. An[image:]inside a figure gives the figure's picture only itssrc,altandcrop; the figure decides place, size,#id, classes, look andstep.src,altandcropon the tag of a figure that holds an[image:], and the other attributes of the inner[image:], have no effect: their source is kept and they are reported asfigure-attribute-ignored(warning); the picture is the[image:]'s. - What a figure shows:
[image:],[chart:],[diagram:],[math:]and[code:]. A line at the structural position of the figure's body (after depth × 2 spaces) that starts an element with one of these names (the element form of When brackets are an element) is shown; every other line is the caption's Markdown. The caption's lines join in the order written, whether before or after what is shown. The formatter does not reorder them. - Two or more shown elements stand side by side at equal widths in the figure's area, with one caption under them all (no caption for each). Any other element (
[box:],[table:],[col:]and so on) as a child keeps its source, is drawn in the same row as what is shown, and is reported asfigure-child-unsupported(warning). A table has its own caption and notes, so it is not wrapped in a figure. - Size, the caption's place,
align-content, lines (border-*) and rounded corners follow the figure rules of Elements, reading "the picture" as "the area of what is shown". An[image:]placed on its own is drawn by the size rules of a figure without a caption. - An empty
[figure:]is kept as an unfilled field of a new page. A figure with a caption and nothing shown is reported as a missing reference.
How an element reads its body
An element's body is read in the one way set for the element's name. For each element, one rule says where child elements may stand, what is read as Markdown and what goes to another grammar.
How to write it
| Element | Child elements | Markdown | Body in another grammar |
|---|---|---|---|
| Directly on a page | Allowed | Text between elements (a bare text box, Placement) | None |
Frames (title, main and so on), box, callout, shape, col, row | Allowed | Text between the children | None |
group | Allowed | As if written in the parent (Groups) | None |
figure | What it shows (Figures and images) | Text outside what it shows is the caption | None |
table | Not allowed | The caption and notes; without src, one table | The CSV or TSV of src (a file) |
math | Not allowed | Not read | TeX |
code | Not allowed | Not read | The language of language |
diagram | Not allowed | Not read | Mermaid |
chart | Not allowed | Not read | CSV |
image, curve | Not allowed | No body (:]) | None |
line | Not allowed | The body is kept and not drawn | None |
Details
- In a body in another grammar (
math,code,diagram,chart), neither elements, Markdown nor comments (a;at the start of a line) begin. What remains of each line after its structural indentation (depth × 2 spaces, and 2 more) is the body: further indentation, symbols,[,],$and;are kept as body text. The closing]stands on its own line at the opening's depth (Elements). - A
+++at column 0 is a page break in any body, and a recovery point that does not carry an unclosed element over to the next page (Page boundaries). The same holds inside achart's CSV. - Text written in an element without a body (
image) keeps its source, is not drawn and is reported (image-body, Figures and images). - A theme's custom tag reads its body as the element it
extends. An element whose body is in another grammar cannot be extended.
Curves
Curves from a formula
A curve is an element for pulses and envelopes that draws the values of a formula f in its box, and has no fixed shapes (shape=) or carrier attributes (carrier=).
How to write
Write the formula in f, and place the box with x, y, w and h as for any element. A curve has no content (:]). domain= gives the horizontal range and range= the vertical one; arrows are arrow=, as on lines. Formulas used often can be named and defined under functions: in the document's settings.
[curve x=10% y=20% w=30% h=10% f="sin(2*pi*6*t) * 0.5*(1-cos(2*pi*t))" arrow=end:]Example
Output of koma export
Source
===
functions:
rc(t): 0.5*(1-cos(2*pi*t))
drive(t): rc(t)*sin(2*pi*6*t)
===
[title: A pulse with an envelope]
[curve .muted x=10% y=30% w=80% h=45% f="rc(t)" style="stroke-dasharray: 12px 8px":]
[curve .muted x=10% y=30% w=80% h=45% f="-rc(t)" style="stroke-dasharray: 12px 8px":]
[curve .primary x=10% y=30% w=80% h=45% f="drive(t)" arrow=end:]Details
- The horizontal range is given as a list of the left and right ends, as
domain=(-pi, pi)(Lists of values). Each end is a finite constant expression. Without it, 0 to 1. An invalid end, or two equal ends, is reported asbad-value(domain), nothing is drawn, and the source is kept.x=and the like place the box as for any element. - The left side of
f="x -> sin(x)"is the input variable, local to the formula. Without it,xand, for compatibility,tboth name the horizontal value. Vertically, −1 is at the bottom of the box and 1 at the top by default;range=(0, 1)(a list of the bottom and top, each a constant expression as an end ofdomainis) changes that. To show the amplitude as it is, the range never adapts to the values; values outside it are drawn outside the box. Arangethat is not two finite values, or two equal ones, is reported asbad-value(range) and nothing is drawn. - A curve without
his a quarter as high as it is wide. - Formulas: numbers (
2,0.5,1e-3), the input variable,pi,e,+ - * / ^, unary minus, parentheses and function calls.^binds tighter than unary minus and associates to the right (-2^2is −4,2^3^2is 2⁹). Multiplication cannot be left out (2tdoes not read). Built-in functions:sin cos tan asin acos atan atan2 sinh cosh tanh exp log log10 sqrt abs sign floor ceil round min max mod erf erfc sinc gamma step.logis the natural logarithm,sinc(x)is sin(x)/x (sinc(0)is 1; not divided by π),step(x)is the Heaviside step (1 forx≥ 0, 0 below),mod(a, b)takes the sign ofb,roundrounds halves up, andminandmaxtake two or more arguments.erfanderfcuse the Numerical Recipes approximation (error below 1.2×10⁻⁷), andgammathe Lanczos approximation with the reflection formula, with no value at 0 or negative integers. The app reads formulas itself, with neitherevalnor a library. - Defining functions: under
functions:in the document's settings (===), listname(arguments, …): expression. A theme's settings (===) may hold them too; for the same name, the document's wins. A function has one or more arguments; its name starts with a letter followed by letters, digits or_. Definitions may call other definitions. A definition that calls itself directly or through others (recursion), takes the name of a built-in function,piore, cannot be read, or uses a name that is not an argument (inside a function,tis usable only when written as an argument) is reported on thefunctions:line asbad-value(functions, with the definition's head and the reason), and only that definition is unused.functions:in page settings (---) issetting-out-of-scope.=== functions: rc(t): 0.5*(1-cos(2*pi*t)) drive(t): rc(t)*sin(2*pi*6*t) === [curve x=10% y=30% w=40% h=20% f="drive(t)" arrow=end:]
- When
fcannot be read, uses an unknown name, or calls with the wrong number of arguments, it is reported asbad-value(f, naming an unknown name; forpulse, the screen says “The formula uses pulse, which is not defined”), and nothing is drawn; the source is kept. - Drawing: the formula is evaluated at about one point per px of the box's width (at least 2, at most 2000) and the points are joined. A point whose value is not a finite number (
sqrt(-1),1/0, a pole) breaks the line, which starts again at the next finite point. Once on the page, points are taken again at the drawn size (a nested curve, a size in%). - Heads and look are those of lines:
arrow=start|end|both, the head-shape classes and--head-start,--head-end, sizes such as--head-size. A triangle's tip is at the curve's end; the point one head-length back along the curve is the centre of its base, and the line stops there. The triangle points from the centre of its base to the tip, with butt line caps. An open head follows the end's direction; dots and diamonds are centred on the end. Colour, width and dashes take the same classes as lines (.accent,.muted,.thick,.dashed) andstyle(stroke-width,stroke-dasharray). - Fill:
fill=shades the area between the curve and a horizontal baseline, drawn behind the line. It takes a colour role (primary,secondary) or a CSS colour (a name,#2563eb,#2563eb33,rgba(37, 99, 235, 0.18),hsl(…));fill-opacity=(0 to 1) fades it further.baseline=is a finite constant expression on the vertical scale; without it, the baseline is 0 when 0 is insiderange, else the bottom ofrange. Each run of the curve is filled on its own, closed straight down (or up) to the baseline at its first and last points.stroke=set tononedraws the fill alone, with no line and no heads; a line width of 0 (style="stroke-width: 0") draws no line either. Afill,fill-opacityorbaselinethat cannot be read (abaselinethat is not finite or not constant) is reported asbad-value(fill,fill-opacity,baseline) and no fill is drawn; astrokeother thannoneisbad-value(stroke). The curve itself is still drawn. On a curve these four are its own attributes, not looks (Elements); built-inminandmaxshade where curves overlap.=== functions: g(x, m): exp(-((x - m) / 8)^2) === [curve x=10% y=40% w=40% h=12% f="g(x, 35)" domain=(0, 100) range=(0, 1) fill="rgba(37,99,235,0.18)":] [curve x=10% y=40% w=40% h=12% f="g(x, 55)" domain=(0, 100) range=(0, 1) fill="rgba(37,99,235,0.18)":] [curve x=10% y=40% w=40% h=12% f="min(g(x, 35), g(x, 55))" domain=(0, 100) range=(0, 1) fill="rgba(220,38,38,0.32)" stroke=none:]
- HTML and PDF draw an SVG path, the fill as a path of its own under the line.
Step-by-step display
Steps
Steps reveal elements one stage at a time while presenting.
How to write
Write the order to show in the common attribute step: [box step=1: text], [col step=2: text], [row step=2: text]. An element without step is shown from the start. The form {step=1} is not in the grammar.
Example
Output of koma export
Source
[title: Tonight]
[main:
[col:
7 pm Doors open
]
[col step=1:
8 pm Book talks
]
[col step=2:
9 pm The swap
]
]Details
- The value is a safe integer of 1 or more. Presenting reveals the valid steps from the smallest, those with the same number together, and goes to the next page once all are shown. A nested element's step is the largest of its own and its ancestors'; a child without one inherits its parent's. The written value is never rewritten. No empty steps are made for numbers no element uses.
- Going back hides the last step shown. Going to the previous page shows its last step; Home is the first page's start, End the last page fully shown. Restarting the presentation shows the chosen page's start. A hidden element still takes its space.
- Editing, static HTML, PDF and PowerPoint show everything. No timelines or animations are added.
Entrance effects
An entrance effect (step-effect) decides how an element first becomes visible on its step. Write it in the document or page settings, or use it as an element attribute. The accepted values are appear, fade, and rise. The element's value wins, followed by the nearest ancestor that provides a value, then the page, then the document. The default is appear. A rise reveals the element from its bottom edge without moving it.
Only the outermost element that becomes visible on a step animates. Children that share their parent's step appear with that parent. A child with a later step enters with its own effective effect. Going backward hides a step immediately. step-effect-unused identifies an effect written where the element enters together with a parent or where neither the element nor its descendants have a step. Invalid values are reported as bad-value and fall back to the inherited effect. Quoting a value keeps its meaning. The formatter places the attribute after step. Articles and posters retain it with a type-unused-feature note.
Memos
Memos
A memo is a note for the author placed on a page, which no presentation or export shows.
How to write
Open with ::: and key=value attributes in column 0 on a page, write the text on the lines after it, and close with a line of ::: alone. x and y place the memo, and w and h size it.
[title: Results]
::: x=64% y=18% w=28%
Check the units on the axis.
:::Details
- Attributes:
xandyare%of the page orpx, and may be negative or beyond 100% to place the memo on the pasteboard around the page; a missing one is0.wandhare optional positive lengths of the same kinds. Withoutwthe editor gives the memo its default width, and withouthit is as tall as its text.collapsedset totruefolds it to a pin;falseis the default. Another attribute is kept and reported asunknown-memo-attribute(warning). An unreadable value is reported asbad-value(warning), and the default applies. Later attributes, such as a colour, are added in the same form. - Text: plain text, kept as written. It is not read as Markdown, elements, settings or notes. A
+++in column 0 still breaks the page (Page boundaries). A line of the text that would close the memo or break the page is written with a leading\, which is not part of the text. - A memo that does not close ends at the next page break or the end of the file, keeps its text and is reported as
unclosed-memo(error). - Only a
:::line followed by attributes and nothing else opens a memo. A bare:::and::: namekeepmisplaced-scoped-blockandunsupported-declaration(Document settings) in the preamble and on a page. An indented:::inside an element is text. - A memo belongs to its page and takes no part in its layout, flow, reading order, notes or footnotes. The presentation, the presenter view, HTML, PDF, PowerPoint, images and thumbnails never draw it or carry its text. The Koma AST has a
memonode (Syntax tree nodes). The resolved page lists its memos with their place and text, which only the editor's canvas and the agent tools read. - Tidying keeps a memo's lines as written and puts one blank line before and after a closed memo, as for notes (The standard form).