KamishibaiKamishibai ブラウザで開いて発表する HTML スライドHTML slides you open and present in the browser 鎌田 斗南Tonan Kamata 塩田 拓海Takumi Shiota 2026年11月November 2026 このスライドThese slides

Beamer の良さと PowerPoint の良さを良いところどりした、
HTML でサーバーレスで動くスライドソフト
Slide software that takes the best of Beamer and of PowerPoint,
running in HTML with no server

数式Math直接編集Direct editing
Beamer◯ TeX で組む◯ typeset by TeX✕ 原稿を直して組み直す✕ edit the source, then recompile
PowerPoint△ 数式エディタで入れる△ entered with the equation editor◯ 画面の上で直す◯ edit on the slide itself
Kamishibai◯ TeX で書き KaTeX で組む◯ written in TeX, typeset by KaTeX◯ 画面の上で直し原稿に書き戻す◯ edit on the slide, written back to the source
図を段階的に出せるReveal a figure step by step 図をボタンで切り替えられるSwitch figures with buttons 図をアニメーションで動かせるMove a figure by animation 図をスライダーで動かせるMove a figure with a slider 日本語と英語を切り替えられるSwitch Japanese and English HTML でも PDF でも配れるHand out as HTML or as PDF
n5
原稿:タグで書いた一つの HTML ファイルThe draft: one HTML file written in tags 最初の行 <script src="engine/kamishibai.js"> がエンジン(スライドを組むプログラム)を読み込むIts first line <script src="engine/kamishibai.js"> loads the engine, the program that lays out the slides
<script src="engine/kamishibai.js"></script> <slide title="定理" sec="例"> <block title="定理">…</block> <list><item step>…</item></list> </slide> <script src="engine/kamishibai.js"></script> <slide title="Theorem" sec="Example"> <block title="Theorem">…</block> <list><item step>…</item></list> </slide> 定理 Theorem 定理 Theorem
直すのは原稿だけOnly the draft is ever edited 発表:原稿をそのままブラウザで開き、その場で組む。ビルドもアプリも不要Talk: open the draft in the browser, laid out on the spot; no build, no app 配布:配布用の一つのファイルを作るコマンド make packHandout: make pack, the command that builds one file to hand out 書き戻し:画面で直した文を原稿へ戻す Chrome の拡張 page-editWrite-back: page-edit, a Chrome extension returning on-screen fixes to the draft
原稿 Draft .html ブラウザ(その場で組む) Browser (lays out) 発表 Talk make pack .dist.html 配る Hand out page-edit:書き戻し page-edit: write-back
見た目は Beamer のテーマから選べる:Boadilla(既定、16:9)と Madrid(4:3)The look is chosen from Beamer themes: Boadilla (default, 16:9) and Madrid (4:3) 選び方:<html theme="Madrid"> と書くか、URL に ?theme=Madrid を付けるTo choose: write <html theme="Madrid">, or add ?theme=Madrid to the URL
BoadillaMadrid
BoadillaMadrid
塩田さんの発表:見た目は兵庫県立大学、図は JavaScript で描くTalks by Shiota: a University of Hyogo look, with figures drawn in JavaScript 原稿はタグで書き、発表ごとの CSS と JavaScript を別のファイルに置くWritten in tags, with CSS and JavaScript for that deck in separate files 動かすのは Kamishibai と同じ種類のエンジン uoh-slide.jsThey run on uoh-slide.js, an engine of the same kind as Kamishibai's
JOSME 41
辺展開できない多面体Ununfoldable polyhedra
折り紙の科学・数学・教育研究集会(2026 年 11 月)41st OSME-J, November 2026 (in Japanese)
AL210
正角柱の辺展開図の重なりOverlaps in unfoldings of prisms
アルゴリズム研究会(2026 年 11 月)。スライダーで動くSIGAL 210, November 2026 (in Japanese); sliders
画像:© 2025 Takumi SHIOTA All Rights Reserved.(CC0 の対象外。校章を除いて掲載)Images: © 2025 Takumi SHIOTA All Rights Reserved. (not under CC0; university crest removed)
マウスを動かすとページの左に出る。ボタンに重ねると名前とキーが出るAppears as the mouse moves; hovering a button shows its name and key 下のカード:モードの切り替えと取っ手。既定はプレゼンLower card: the modes and the handle; present is the default 上のカード:今のモードの道具Upper card: the tools of the current mode 選択:文字を選べて、← → だけで送るSelect: text can be selected; only ← → advance キー無効:キーでもクリックでも送らないLock: neither keys nor clicks advance 取っ手の橙の点:ポインター・選択・キー無効のどれかがオンAn orange dot on the handle: pointer, select or lock is on Windows では ⌘ を Ctrl に読み替えるOn Windows, read Ctrl for ⌘
編集 ⌘EEdit ⌘E プレゼンPresent 出力 ⌘POutput ⌘P 開く・しまうOpen, fold 下のカード(共通)Lower card (all modes)
取り消し ⌘ZUndo ⌘Z やり直し ⇧⌘ZRedo ⇧⌘Z 覚えているフォルダFolders allowed ページ一覧 ⌘BPage list ⌘B 日本語 ⇄ English LJapanese ⇄ English L ダークモード DDark mode D 日本語の文字の太さWeight of Japanese text 上のカード:編集Upper card: edit
全画面 ⌘FFull screen ⌘F ポインター ⌘KPointer ⌘K 段階表示 SSteps S ページ一覧 ⌘BPage list ⌘B 日本語 ⇄ English LJapanese ⇄ English L ダークモード DDark mode D 選択 ⌘ISelect ⌘I キー無効 ⌘ULock ⌘U 日本語の文字の太さWeight of Japanese text 上のカード:プレゼンUpper card: present
PDF:段階ごとに 1 枚PDF: a sheet per step PDF:全段階を 1 枚にPDF: all steps on one HTML:1 ファイルHTML: one file 出力するWrite it out 上のカード:出力Upper card: output
公開したスライドは、スマホやタブレットのブラウザでも開けるPublished slides also open in the browser of a phone or tablet 進む:▶、左へのスワイプ、ページのタップForward: ▶, a swipe to the left, or a tap on the page 戻る:◀、右へのスワイプ、ページの左 1/4 のタップBack: ◀, a swipe to the right, or a tap on the left quarter 道具の列:縦に持つと ◀ ▶ の上、横に持つと左下。取っ手で開くTool column: above ◀ ▶ when held upright, at the bottom left when sideways; the handle opens it ポインター・選択・キー無効は出ない。編集はパソコンだけPointer, select and lock are not shown; editing is on computers only
どの要素にも step を付けると、クリックか → で一つずつ出るPut step on any element and it appears one at a time, on a click or → <item step> の項目(この行)An item written <item step> (this line) with="prev" の要素は直前の段階と一緒に出る(この行)An element with with="prev" appears together with the previous step (this line) キー S:「全部出す」に切り替わり、ページだけを送るKey S: switches to showing everything at once, turning only pages $G$ を連結なグラフとする。
このとき $G$ にオイラー路がある $\iff$ $G$ の奇数次の頂点は 0 個か 2 個
Let $G$ be a connected graph.
Then $G$ has an Euler path $\iff$ $G$ has 0 or 2 vertices of odd degree.
<switch> のボタンで <flip> の中の SVG を一枚ずつ見せる。ページは送らないThe buttons of <switch> show the SVGs in <flip> one at a time, without turning the page

図を部分ごとに、段階に合わせて出すShow a figure part by part, in step with the talk

<flip anim> の中の SVG で、class="cd" を付けたグループ一つが一つの部分(ここではカードと呼ぶ)In an SVG inside <flip anim>, each group marked class="cd" is one part, called a card here

段階の要素に cards="n":n 枚目のカードまで出るA step with cards="n" shows the cards up to the n-th

cards="*" で全部。ov を付けると、class="ov" のグループ(仕上げの印)も出るcards="*" shows them all; adding ov also shows the groups with class="ov", a finishing mark

1 2 3 4 5 オイラー路An Euler path
SVG の SMIL アニメーションか、JavaScript で描く図。描く道具 figure.js はエンジンに付くSVG SMIL animation, or figures drawn with JavaScript; the drawing helpers figure.js come with the engine JavaScript の図は、ページ一覧と印刷でも、その段階に合わせて描き直されるJavaScript figures are redrawn for their step in the page list and in print as well
n6
数式:$…$(文の中)と $$…$$(別の行)。KaTeX で組むMathematics: $…$ in text and $$…$$ on its own line, typeset by KaTeX 部品:block(定理など)・alertblock・exampleblock、alert(強調)Parts: block (theorems etc.), alertblock, exampleblock; alert (emphasis) proof(証明)・plan(証明の方針)・later(後で証明する主張)proof; plan (the plan of a proof); later (a claim proved later) nums(番号付きの手順)・note(短い注意)・down(帰結を下向きの矢印の下に)nums (numbered steps); note (a short remark); down (a consequence under a down arrow) $G=(V,E)$ をグラフとする。このとき $\sum_{v\in V}\deg(v) = 2|E|$Let $G=(V,E)$ be a graph. Then $\sum_{v\in V}\deg(v) = 2|E|$. 各辺は両端の次数に 1 ずつ数えられるので、次数の和は辺の数の 2 倍Each edge adds 1 to the degree of each end, so the degree sum is twice the edge count. 一つの原稿に <ja>日本語</ja><en>English</en> の対で両方を書くOne draft holds both, in pairs <ja>日本語</ja><en>English</en> 道具「日本語 ⇄ English」かキー L、または URL の ?lang=en で切り替えるSwitch with the tool “日本語 ⇄ English”, the key L, or ?lang=en in the URL 英訳は別に用意する(手で書くか翻訳にかける)。エンジンは切り替えと、その言語での組版だけThe English is prepared separately (by hand or by translation); the engine only switches and typesets in that language 英語が収まらないページは、その言語のときだけ文字を少しずつ縮める(85% まで)A page whose English does not fit gets slightly smaller type in that language only (down to 85%) 日本語を直した後に古くなった英語を見つけるためTo find English left outdated after the Japanese is changed make lang-stamp:英語ごとに元の日本語のハッシュを記録make lang-stamp: records, for each English, a hash of its Japanese make lang:英語の無い日本語と古い英語を、行番号つきで出すmake lang: lists Japanese with no English and outdated English, with line numbers リポジトリ:https://github.com/ShiotaTakumi/KamishibaiRepository: https://github.com/ShiotaTakumi/Kamishibai どの段階で止めても使えるYou can stop at any stage and use it
できることYou can要るものYou needすることTo do
1書いて発表し
PDF にする
Write, present,
print PDF
ブラウザA browserclone か ZIP を展開Clone, or unpack the ZIP
2画面で直すEdit on the slideChromium 系のブラウザA Chromium browser拡張 page-edit を入れるInstall page-edit
3一つの HTML で配る
検査する
Pack as one HTML,
check
Python 3.10+, make
Node.js 20+
Python 3.10+, make
Node.js 20+
make deps fonts engine-fontsmake deps fonts engine-fonts
Madrid の書体は同梱。Boadilla の書体は段階 3 で入り、それまでは手元の書体で出るMadrid's fonts are included; Boadilla's come with stage 3, with local fonts used until then
置き場(例 my-talks/)で git clone https://github.com/ShiotaTakumi/KamishibaiIn a folder such as my-talks/: git clone https://github.com/ShiotaTakumi/Kamishibai Kamishibai/engine/sample.html を talk/talk.html へコピーCopy Kamishibai/engine/sample.html to talk/talk.html エンジンを読み込む行を <script src="../Kamishibai/engine/kamishibai.js"></script> に直すChange the engine line to <script src="../Kamishibai/engine/kamishibai.js"></script> talk.html をブラウザで開き、書き換えては再読み込み。URL の末尾に #s5 を付けると 5 ページ目からOpen talk.html in a browser; edit and reload. Adding #s5 to the URL starts at page 5 配布(段階 3):Kamishibai/ で make pack SRC=../talk/talk.htmlHand out (stage 3): in Kamishibai/,
make pack SRC=../talk/talk.html
原稿はリポジトリの外にあるので、git pull でエンジンだけを新しくできるThe draft is outside the repository, so git pull updates the engine alone
my-talks/ Kamishibai/ engine/kamishibai.js, engine/sample.html talk/ talk.html
頼み方の例:
「https://github.com/ShiotaTakumi/Kamishibai を clone し、docs/math-slides.md(規則)と engine/README.md(書き方)に従い、engine/sample.html を手本に、次の原稿から 10 ページのスライド talk/talk.html を作って」
Ask, for example: “Clone https://github.com/ShiotaTakumi/Kamishibai, follow docs/math-slides.md (rules) and engine/README.md (manual), and, modelled on engine/sample.html, make a deck talk/talk.html of 10 pages from the text below”
ブラウザで開いて見直し、細かい文は page-edit で直すReview it in a browser; fix small wording with page-edit make pack と make check-pack の警告を AI に渡して直させるGive the warnings of make pack and make check-pack back to the AI to fix
clone できない AI(チャットだけのもの)には、三つのファイルを添えるFor an AI that cannot clone (chat only), attach the three files
入れる:chrome://extensions でデベロッパー モードをオンにし、page-edit のフォルダを読み込み、ファイルの URL へのアクセスを許可Install: in chrome://extensions turn on developer mode, load the page-edit folder, and allow access to file URLs page-edit に、原稿を含むフォルダへの書き込みを一度許可するAllow page-edit, once, to write to the folder that holds the draft 編集のモード ⌘E:文・題・節の名前などをクリックして書き換え、Enter で原稿に書き戻す。Shift+Enter で改行、Esc で取り消し。数式は TeX の形で出るEdit mode ⌘E: click a sentence, title, section name and so on, rewrite it, and Enter writes it back into the draft. Shift+Enter breaks a line, Esc cancels; mathematics shows as TeX 日英の原稿では、出している言語だけを編集。上のカードの「日本語 ⇄ English」かキー L で、編集のまま替えるWith both languages in a draft, only the one shown is edited; “日本語 ⇄ English” in the upper card or L turns to the other without leaving edit mode page-edit が 1 秒ごとに原稿のファイルを見て、エディタや AI が書き換えたら自動で組み直すpage-edit looks at the draft file every second and lays it out again when an editor or an AI has changed it Chromium 系のブラウザ(Chrome・Edge・Brave など)だけChromium browsers only (Chrome, Edge, Brave, …) block の追加・削除・並べ替え、図、<script> はエディタで直すAdding, removing or reordering blocks, figures and <script> are edited in an editor HTML:make pack SRC=talk/talk.html が作る talk/talk.dist.htmlHTML: talk/talk.dist.html, made by make pack SRC=talk/talk.html 中にエンジン・組み終えた数式・画像・書体が入り、ネットにつながずに開けるIt holds the engine, the typeset mathematics, images and fonts, and opens without a network Boadilla の書体は原稿で使う字だけを切り出して入れる(見本で約 0.7 MB)Boadilla's fonts are cut down to the characters the draft uses (about 0.7 MB for the sample) 同じ原稿からは、誰がどの機械で作っても同じファイルになるFrom the same draft, anyone on any machine gets the same file PDF:出力のモード ⌘P から、印刷の画面で保存PDF: saved through print, from output mode ⌘P

make pack は、数理のスライドの規則に反する原稿からは配布用ファイルを作らないmake pack makes no handout from a draft that breaks the rules for mathematical slides

block には定義・定理などの主張を一つだけ。題は主張の種類で始めるA block holds one statement (definition, theorem…); its title starts with the kind 図にキャプションを付けないNo captions on figures 図はページの文の下。段階を追う説明だけ <side> で文を左、図を右にFigures below the text; <side> (text left, figure right) only for stepwise ones ページの番号で参照しない(聴衆はページを戻れない)No references by page number (the audience cannot turn back) 縮めた図の最小の文字が 10px より小さければ警告A warning when a shrunk figure has text smaller than 10px make order:定理・補題・定義の読む順の警告(定義より前の使用など)make order: warns on the order of definitions and theorems (e.g. use before definition)

文の書き方の規則は docs/math-slides.mdWriting rules: docs/math-slides.md

make check-pack:配布用ファイルを Chromium と WebKit(Chrome と Safari の組版エンジン)で組むmake check-pack: lays out the handout in Chromium and WebKit (the layout engines of Chrome and Safari) 行の切れ方が一致することLine breaks must agree 画面と本文の領域からはみ出さないことNothing may stick out of the screen or the text area 対象:全段階を出した各ページ、切り替える図の各図、段階ごとの印刷と PDFChecked: each page with all steps, each card of a switching figure, the print and PDF of each step 英語を含む原稿は両方の言語でA draft with English is checked in both languages Kamishibai は CC0 1.0 で公開しており、許諾も引用もなしに自由に使えるKamishibai is under CC0 1.0: use it freely, with no permission or citation needed 複製・改変・再配布・商用利用を含むCopying, modification, redistribution, commercial use 作ったスライドの公開と配布も自由Slides made with it may be published and handed out freely 次のものはその限りでない。それぞれのライセンスと権利表示を確かめ、各自の判断と責任で使うThe following are excepted: check their licenses and notices, and use them at your own discretion and responsibility KaTeX と書体(README の「ライセンス」に一覧)KaTeX and the fonts (listed in the README) 「カスタマイズの例」の二つの画面(© Takumi SHIOTA)The two images in “Examples of customization” (© Takumi SHIOTA) 引用の義務はないが、使うときのリポジトリへの言及、フィードバック、プルリクエストを歓迎Citing is not required, but mentions of the repository, feedback and pull requests are welcome https://github.com/ShiotaTakumi/Kamishibai