sed "s/mathjax\: \'static\/mathjax\/MathJax.js\',//g" output/index.html > index.html; mv index.html output/index.html
- 直接在URL 後加上pdf-print 就可以變成輸出模式
- 然後直接用chrome 列印輸出成 pdf
- 如果想要讓輸出更符合原始畫面大小,可以在
output/static/revealjs/dist/reveal.js修改- 找到
a=Math.floor(s.width*(1+e.margin)),o=Math.floor(s.height*(1+e.margin)) - 修改成
a=Math.floor( 1250 * ( 1 + e.margin ) ),o=Math.floor( (s.height + 40) * ( 1 + e.margin )
- 找到
- 或者,直接改
output/index.html,定義widthandheight
Reveal.initialize({
// The "normal" size of the presentation, aspect ratio will
// be preserved when the presentation is scaled to fit different
// resolutions. Can be specified using percentage units.
width: 1440,
height: 900,