https://knxm.github.io/reveal.js/msfd37.html
\documentclass{beamer}
\title{No Largest Prime Number}
\author{Euclid of Alexandria}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Outline}
\tableofcontents
\end{frame}
\end{document}
\pause
<!doctype html>
<html lang="en"> <!-- 日本語ならば "ja" に変更 -->
<head>
<meta charset="utf-8">
<title>reveal.js - Math Plugin</title>
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../dist/reveal.css">
<link rel="stylesheet" href="../dist/theme/night.css" id="theme">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h2>reveal.js Math Plugin</h2>
<p>Render math with KaTeX, MathJax 2 or MathJax 3</p>
</section>
<section>
<h3>The Lorenz Equations</h3>
\[\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned} \]
</section>
<!-- 省略 -->
</div>
</div>
<script src="../dist/reveal.js"></script>
<script src="../plugin/math/math.js"></script>
<script>
Reveal.initialize({
history: true,
transition: 'linear',
mathjax2: {
config: 'TeX-AMS_HTML-full',
TeX: {
Macros: {
R: '\\mathbb{R}',
set: [ '\\left\\{#1 \\; ; \\; #2\\right\\}', 2 ]
}
}
},
// There are three typesetters available
// RevealMath.MathJax2 (default)
// RevealMath.MathJax3
// RevealMath.KaTeX
//
// More info at https://revealjs.com/math/
plugins: [ RevealMath.MathJax2 ]
});
</script>
</body>
</html>
<!-- The Content Division element -->
<!-- The Generic Section element -->
プレゼンテーションツール
<!-- headings -->
<!-- unordered list -->
- Microsoft PowerPoint
<!--an item in a list -->
- Apple Keynote
- Google Slide
プレゼンテーションツール
- Microsoft PowerPoint
- Apple Keynote
- Google Slide
部分表示にはspan要素を用いる.
部分表示にはspan要素を用いる.
cf.) How to use two-column layout with reveal.js (stack overflow)
1st column
2nd column
\[
\tiny
\begin{aligned}
f(h) &= f(0)+\int_{0}^{h}f'(t)\,dt \\
&= f(0)+\left[-(h-t)f'(t)\right]_{0}^{h}+\int_{0}^{h}(h-t)f''(t)\,dt \\
&= f(0)+f'(0)h + \int_{0}^{h}(h-t)f''(t)\,dt \\
&= f(0)+f'(0)h + \left[-\frac{(h-t)^2}{2}f''(t)\right]_{0}^{h}
+\int_{0}^{h}\frac{(h-t)^2}{2}f'''(t)\,dt \\
&= \cdots\\
&= f(0)+f'(0)h + \frac{f''(0)}{2}h^2+\cdots+\frac{f^{(n)}(0)}{n!}h^{n}
+\int_{0}^{h}\frac{(h-t)^n}{n!}f^{(n+1)}(t)\,dt
\end{aligned}
\]
's' キーで,スピーカーノート表示
Ctrl+Shift+F でスライド内を検索可能
検索キーワードが最初に出現したスライドを表示
ソースコードの表示
monokai.css と zenburn.css が用意されている.
<code class="html" data-trim data-line-numbers="1-3, 10-12 | 6-8">
プレゼンテーションツール
- Microsoft PowerPoint
- Apple Keynote
- Google Slide
</code>
Alt + click または Ctrl + click でズーム
Markdownとは書きやすく読みやすい書式であり,
Plain textで書かれた文書をHTML等へ変換できる.
## Markdown Slide 1
A paragraph with some text and a [link](https://hakim.se).
---
## Markdown Slide 2
- Item 1
- Item 2
## Markdown Slide 3
### fragment
- Item 1
- Item 2
Geometry Center Videos, Revisited
上記から「共有」→「埋め込む」→「コピー」
function setup() {
createCanvas(360, 360);
background(204);
}
function draw() {
if (mouseIsPressed) {
fill(0);
} else {
fill(255);
}
ellipse(mouseX, mouseY, 80, 80);
}
URLに以下のようにprint-pdfを追加
Webブラウザの印刷機能でPDFに保存
「1枚あたりのページ数」で複数頁印刷
印刷する際は white.css 等に変更
jsdelivr, cdnjs 等のCDN(Content Delivery Network)を利用することで,手軽にスライドを作成可能
上記ファイルをコピーして
<title>…</title>と
<section>…</section>を
編集すればOK