Start
Write a first page in plain text and see it drawn. Try it here, then open it in KomaDocs or use the command.
1. Try it in the browser
Change the title, or put the ** marks around another word to make it bold.
[title: Night at the library]
[subtitle: Friday · 7–10 pm]
[main:
Bring a book to **swap**.
]2. Open it in KomaDocs
KomaDocs is the editor for Koma: the source and the canvas side by side on the web and macOS, drawn as above. Drag a box or change a colour on the slide, and the text is written for you. Nothing to install on the web.
3. Make a PDF with the command
The koma command is in preparation: the @komalang/koma package is not on npm yet, so the steps below do not work today.
Save the source above as hello.koma.
Install the koma command with npm. It needs Node.js 24 or later and Chrome, Chromium or Edge installed on your computer.
npm i -g @komalang/koma
Make the PDF:
koma export hello.koma -o hello.pdf
Open hello.pdf to see the slide.
For PNG images or a PowerPoint file, use:
koma export hello.koma --to png -o hello-png
koma export hello.koma -o hello.pptx
The PNG images are saved in hello-png. See the command list for more options.
Next
Use the Guide to add columns and a second page.