AsciiDoc Presentation Extension

A Demonstration

Basic commands

  • Do you see the arrows at the bottom right corner?

  • You can use them to navigate the slides. Or use your keyboard arrows.

  • Or Space to go forward, and Shift+Space to go back.

  • There are much more special keys for you to try:

    • ESC to get a slide overview

    • F to toggle fullscreen mode

    • ? to see all the available commands. There are much more!

Images

image::media/morpheus.jpg[]

results in:

morpheus

Background Images

image::media/background.jpg[background, size=cover]

results in:

Background GIFs

image::media/surprise.gif[background, size=cover]

results in:

Background Videos

[background-video="https://url.org/video.mp4",options="loop,muted"]

PlantUml

[plantuml]
....
database Git
actor Alice
Git -> Alice: Pull
Alice -> Alice: Work
Git -[#red]> Git: Push
....

results in:

Diagram

Graphviz

....
[graphviz]
digraph foo {
  rankdir=LR;
  node [style=rounded]
  node1 [shape=box]
  node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
  node3 [shape=record, label="{ a | b | c }"]
  node1 -> node2 -> node3
}
....

results in:

Diagram

Mermaid

Sample Git Flow diagram done by Mermaid.Js

[mermaid]
%%{init: { 'theme': 'neutral', 'gitGraph': {'rotateCommitLabel': false}} }%%
   gitGraph
       commit id:"1"

results in:

Diagram

Column layout

  • Edgar Allen Poe

  • Sheri S. Tepper

  • Bill Bryson

Edgar Allan Poe (/poʊ/; born Edgar Poe; January 19, 1809 – October 7, 1849) was an American writer, editor, and literary critic.

Columns with size

  • Kotlin

  • Java

  • Scala

Programming language for Android, mobile cross-platform and web development, server-side, native, and data science. Open source forever Github.

Lists

* Im
* a
* List

results in:

  • Im

  • a

  • List

Lists

. Step 1
. Step 2
.. Step 2a
.. Step 2b
. Step 3

results in:

  1. Step 1

  2. Step 2

    1. Step 2a

    2. Step 2b

  3. Step 3

Lists with steps

  • Press any key

  • And again

  • And once more

Descriptions

first term:: definition of first term
second term:: definition of second term

results in:

first term

definition of first term

second term

definition of second term

Source Code

[source, clojure]
----
(def lazy-fib
  (concat
   [0 1]
   ((fn fibonacci [a b]
        (lazy-cons (+ a b) (fibonacci b (+ a b)))) 0 1)))
----

results in:

(def lazy-fib
  (concat
   [0 1]
   ((fn fibonacci [a b]
        (lazy-cons (+ a b) (fibonacci b (+ a b)))) 0 1)))

Tables

[%header, cols=2*]
|===
|Character
|Seen in

|Donald Duck
|Mickey Mouse
|===

results in:

CharacterSeen in

Donald Duck

Mickey Mouse

Quotes

A person who never made a mistake never tried anything new.
— Albert Einstein

Math formulas

MathJax formulas are also supported.

$ J(\theta_0,\theta_1) = \sum_{i=0} $

\( x = {-b \pm \sqrt{b^2-4ac} \over 2a} \)

results in:

$ J(\theta_0,\theta_1) = \sum_{i=0} $

\( x = {-b \pm \sqrt{b^2-4ac} \over 2a} \)

QR codes

https://google.com/