Masaki Kagaya (2015.3.24)
https://github.com/hakimel/reveal.js からダウンロードして展開します。Apache や Nginx を起動しているのであれば、ブラウザーからのアクセスが許可されているディレクトリで展開します。
<div class="reveal">
<div class="slides">
<section data-markdown="slide.md"
data-separator="^\n\n\n"
data-vertical="^\n\n"
data-charset="utf-8">
</section>
</div>
</div>
コンテンツの後の改行数は data-separator
属性で指定した数に合わせます。
# タイトル
## 見出し
コンテンツ
dependencies: [
...
{
src: 'plugin/highlight/highlight.js',
async: true,
callback: function() { hljs.initHighlightingOnLoad(); }
},
]
Apache や Nginx が利用できない場合、index.html
のあるディレクトリで
コマンドプロンプトやターミナルから HTTP サーバーを起動させ、http://localhost:3000/#/
にブラウザーでアクセスします。
Ruby 1.9.2+
ruby -run -e httpd . -p 3000
Python 3
python3 -m http.server 3000
Python 2
python -m SimpleHTTPServer 3000
PHP 5.4+
php -S localhost:3000
Google Chrome で http://localhost/?print-pdf#/
にアクセスして
「ファイル -> 印刷 -> PDF に保存」。余白は「なし」にします。
https://gist.github.com/masakielastic/9d15ee8f46488183f8c0 から入手できます。