[TOC]
- Node.js
- Reveal.js:
git clone [email protected]:hakimel/reveal.js.git
- Install
cd reveal.js/
npm install node-sass puppeteer
npm install
npm audit fix
- Install
- Local MathJax
cd plugin/; git clone [email protected]:mathjax/MathJax.git
- Math:
{ src: 'plugin/math/math.js', async: true }
- MathJax
math: {
mathjax: 'plugin/MathJax/MathJax.js',
config: 'TeX-AMS_HTML-full' // See http://docs.mathjax.org/en/latest/config-files.html
// pass other options into `MathJax.Hub.Config()`
// TeX: { Macros: macros }
}
- Max Scale:
maxScale: 1.5
- Title:
<title><Title></title>
- Normal Slide:
<html> -> <body> -> <div class="reveal"> -> <div class="reveal"> -> <section>
<section>
...
</section>
- Vertical Slide:
<html> -> <body> -> <div class="reveal"> -> <div class="reveal"> -> <section> -> <section>
<section>
<section>
...
</section>
</section>
- Text:
<p>
<p data-markdown>
...
</p>
- Picture
![<Title>](<PicDir>)
<img src="<PicDir>" width="<Width>" height="<Height>"/>
- Video:
<video>
<video controls>
<source src="<VideoDir>" type="video/mp4">
</video>
- Aside:
<aside>
<aside data-markdown class="notes">
...
</aside>
data-markdown
- Working Directory: Reveal.js root dir
- Can use all html tag
<section data-markdown="asset/md/slide.md"
data-separator="^\r?\n====\r?\n$"
data-separator-vertical="^\r?\n----\r?\n$"
data-separator-notes="^\r?\n[Nn]otes?:\r?\n$">
</section>
...
Note:
...
==== # Herizon Slide Seperate
...
Note:
...
---- # Vertical Slide Seperate
...
Note:
...
npm start
- Run indicating port:
npm start -- --port=<Port>
- Default port: 8000
- Run indicating port:
- Open
http://localhost:<Port>
to view slides - Full Screen:
f
- Exit:
<ESC>
- Exit:
- Presentation Mode:
s
- Exit:
<CTRL-c>
- Export to PDF:
http://localhost:<Port>/?print-pdf
- Export with speaker note:
http://localhost:<Port>/?print-pdf&showNotes=true