[Examples](https://komalang.org/examples/)

Product introduction

# KomaDocs, the editor for Koma

Koma

KomaDocs 0.1.0 in seven slides: native macOS and Web workspace, live source and canvas sync, chat-first AI Agent with inline diffs, local Git and Terminal, multi-display presenter and speech rehearsal.

```koma
===
title: KomaDocs, the editor for Koma
theme: default
paginate: true
css: |
  page.editor-cover { background: #faf8f5; color: #252124; }
  box.editor-label, box.editor-url { color: #a63831; letter-spacing: 0.06em; font-size: 0.73em; font-weight: 700; }
  box.editor-brand { font-size: 2.12em; font-weight: 700; }
  box.editor-message { color: #262024; font-size: 1.04em; font-weight: 700; }
  box.editor-note { color: #61555b; font-size: 0.80em; }
  box.editor-panel { background: #f0e1e0; border-radius: 20px 0 0 20px; }
  page { background: #f6f6f2; color: #181a20; }
  page.dark { background: #14161b; color: #f2f3f6; }
  label { color: #0d7a66; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72em; }
  label.on-dark { color: #5fe3c8; }
  title.on-dark { color: #ffffff; }
  subtitle { color: #525866; font-weight: 400; }
  subtitle.on-dark { color: #b8becb; }
  authors.on-dark { color: #9be0cf; font-weight: 500; }
  date.on-dark { color: #5fe3c8; font-weight: 500; }
  box.card {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    padding: 18px 22px;
    row-gap: 8px;
  }
  box.card.compact {
    padding: 14px 18px;
    font-size: 0.88em;
    row-gap: 6px;
  }
  box.card h3 { font-size: 1.05em; margin: 0; color: #0d7a66; }
  box.shot-frame {
    background: #ffffff;
    border: 1px solid #d5dbe5;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }
  box.note-strip {
    background: #e8f5f1;
    border-left: 5px solid #0d7a66;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    font-size: 0.92em;
  }
===

---
layout: blank
class: editor-cover
---

[box .editor-label x=7% y=14% w=40% h=6%:
  macOS & Web · Preview
]
[box .editor-brand x=7% y=28% w=38% h=14%:
  KomaDocs
]
[box .editor-message x=7% y=49% w=36% h=17%:
  Edit slides on the canvas or in source.
]
[box .editor-note x=7% y=68% w=36% h=10%:
  Both stay in sync.
]
[box .editor-url x=7% y=87% w=36% h=6%:
  komadocs.com
]
[box .editor-panel x=48% y=13% w=52% h=74%:]
[image x=50% y=19% w=47% h=62% src="assets/komadocs-editor.en.jpg" alt="KomaDocs with the slide canvas and its live source":]

+++

[label: 01 · Live sync]
[title: Edit text or canvas — both stay in sync]
[subtitle: Every keystroke redraws the page; dragging a box writes clean coordinates back to source]
[main:
  [col weight=3:
    [box .shot-frame:
      [image src="assets/komadocs-editor.en.jpg" alt="KomaDocs 0.1.0 with page thumbnails on the left, live canvas in the middle, and Koma source on the right":]
    ]
  ]
  [col weight=2:
    [box .card:
      # One shared document model

      - Type in the Koma source or click directly on the canvas to edit text
      - Drag or resize elements; `x=`, `y=`, `w=`, and `h=` update cleanly
      - Shared Undo/Redo history spans both text and visual edits
    ]
    [box .note-strip:
      Switch `theme:` between `talk`, `default`, and `report` without touching content.
    ]
  ]
]

+++

[label: 02 · Chat-first Agent]
[title: Collaborate with AI through inline diffs]
[subtitle: Ask the Agent to tighten prose, verify math, or query local MCP tools — then accept hunk by hunk]
[main:
  [col weight=3:
    [box .shot-frame:
      [image src="assets/komadocs-agent.en.jpg" alt="KomaDocs chat-first Agent panel showing inline diff proposals, LaTeX equations rendered offline, and local MCP connection":]
    ]
  ]
  [col weight=2:
    [box .card:
      # Review every edit before it lands

      - Inline proposals show red/green diffs right in the source
      - Agent replies display LaTeX equations offline
      - Connect local MCP servers (`koma mcp`) or local Ollama models
    ]
    [box .note-strip:
      Accept individual hunks, reject changes, or toggle **Original** on the live canvas.
    ]
  ]
]

+++

[label: 03 · Local Git & Terminal]
[title: Plain files, local Git, and built-in Terminal]
[subtitle: Work directly in your folders on macOS — stage diffs, commit, and run CLI checks without leaving the window]
[main:
  [col weight=3:
    [box .shot-frame:
      [image src="assets/komadocs-git.en.jpg" alt="KomaDocs Changes panel showing staged files, line-by-line Koma diff, and commit controls":]
    ]
  ]
  [col weight=2:
    [box .card:
      # Built for version control

      - Inspect line-by-line `.koma` diffs and stage files in **Changes**
      - Run `koma check --layout` or git scripts in the built-in **Terminal**
      - Open GitHub repositories from the Web workspace too
    ]
    [box .note-strip:
      Your files stay plain UTF-8 `.koma` — zero proprietary lock-in.
    ]
  ]
]

+++

[label: 04 · Present & Rehearse]
[title: Multi-display presenting and speech rehearsal]
[subtitle: Pick audience and presenter screens, rehearse notes aloud, and save measured pacing to source]
[main:
  [col:
    [box .shot-frame:
      [image h=310px src="assets/komadocs-displays.en.jpg" alt="KomaDocs multi-display presenter picker choosing Built-in Display for Presenter and external projector for Audience":]
    ]
    [box .card .compact:
      # Multi-display presenter

      - Assign Audience or Presenter display in one click
      - Notes, next slide, clock, and pointer stay private
    ]
  ]
  [col:
    [box .shot-frame:
      [image h=310px src="assets/komadocs-rehearse.en.jpg" alt="KomaDocs Notes panel with quiet cues and speech rehearsal timing compared against per-page budgets":]
    ]
    [box .card .compact:
      # Speech rehearsal & cues

      - `[[quiet cues]]` show in notes without being read
      - Write measured timings back to each `duration:`
    ]
  ]
]

+++

[label: 05 · Native + Web + Portable]
[title: Start on the Web, scale up on macOS]
[subtitle:
  The same `.koma` file and `.komadoc` package move effortlessly across every workflow
]
[main:
  [col:
    [box .card style="flex: 1":
      # Native macOS app

      - Direct local folder access and native file save
      - Local Git Changes, integrated Terminal, and local MCP tools
      - Offline fonts and LaTeX equations, with instant native export
    ]
  ]
  [col:
    [box .card style="flex: 1":
      # Web workspace

      - Open `komadocs.com` in any modern browser with zero install
      - Edit sample decks, local files, or GitHub branches live
      - Responsive layout for quick reviews and edits on the go
    ]
  ]
  [col:
    [box .card style="flex: 1":
      # Portable `.komadoc` & export

      - Pack text, images, and fonts into one `.komadoc` with cover preview
      - Export PDF with embedded fonts, editable PowerPoint, HTML, or PNG
      - Pair with `koma` CLI and VS Code / LSP editors
    ]
  ]
]

+++

---
layout: section
class: dark
---

[label .on-dark: Ready to try]
[title .on-dark: Open komadocs.com or download for macOS]
[subtitle .on-dark: Start from an interactive example in the browser, or install the native macOS app at komadocs.com/download]
```

> Page 1: Cover: KomaDocs with the canvas and source editor side by side
>
> Page 2: KomaDocs 0.1.0 showing page list, live canvas, and Koma source side by side
>
> Page 3: Chat-first AI Agent with inline diff proposals, offline LaTeX equations, and local MCP
>
> Page 4: Local Git Changes panel with line-by-line diffs and built-in Terminal workflow
>
> Page 5: Multi-display presenter screen picker and speech rehearsal timing in Notes
>
> Page 6: Native macOS app, Web workspace, and portable .komadoc export compared in three cards
>
> Page 7: Open komadocs.com or download KomaDocs for macOS
