aanno / ad-reveal

A template for starting node-based asciidoctor-reveal slides (https://github.com/asciidoctor/asciidoctor-reveal.js/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ad-reveal

Author: Thomas Pasch

This is a simple template for setting up slides based on the great asciidoctor-reveal project.

Some feature supported by this template/example:

Get started

Initial setup:

npm install

For converting a presentation:

node ad-reveal.js <presentation.adoc>

The resulting *.html file only renders in browser if served by a server. Therefore:

./node_modules/.bin/light-server -s . -p 4000

and direct your browser to http://localhost:4000

Examples

FAQs

Configuration

Plugin/extensions

PDF Slide

The reveal PDF method is not working. Use decktape - but with the generic method as is:

mkdir screenshots
./node_modules/.bin/decktape generic --screenshots-size 1024x768 --screenshots -s 1024x768 --chrome /usr/bin/google-chrome  http://localhost:4000/presentation.html presentation.pdf

MathJax3

Problems related to reveal:

Problems related to asciidoctor:

But I could not get this to work...

Kroki

Reveal Version

You can find the reveal version used by opening

https://github.com/asciidoctor/asciidoctor-reveal.js/blob/v4.1.0/package.json

in your browser. For example, for @asciidoctor/reveal version 4.1.0, reveal.js version 3.9.2 is used. To use reveal.js version 4, you have to wait for @asciidoctor/reveal version 5.

STEM

If stem is included, there will be the following code included into the Html:

<script type="text/x-mathjax-config">MathJax.Hub.Config({
tex2jax: {
  inlineMath: [["\\(", "\\)"]],
  displayMath: [["\\[", "\\]"]],
  ignoreClass: "nostem|nolatexmath"
},
asciimath2jax: {
  delimiters: [["\\$", "\\$"]],
  ignoreClass: "nostem|noasciimath"
},
TeX: { equationNumbers: { autoNumber: "none" } }
});</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-MML-AM_HTMLorMML"></script>

Use a custom version of asciidoctor.js

TODOs

References

About

A template for starting node-based asciidoctor-reveal slides (https://github.com/asciidoctor/asciidoctor-reveal.js/)


Languages

Language:JavaScript 58.5%Language:CSS 22.8%Language:HTML 18.7%