AI in Education - Quarto, Reveal, and interactive presentations

Teaching
AI
RevealJS
Quarto
Author

George Ramzi

Published

18 May 2026

During my time as a lecturer, I have primarily been a Keynote user. Keynote is pretty nice, the built in visuals are tasteful, and for me I find the outline view an absolute joy to use, especially on iPad1

However, something I have always found a tempting offer is Reveal.js. In terms of interactivity, Reveal is unparalleled. As a piece of software, I have always found it intriguing.

However, there have always been a number of pain points that put me off…

  1. I don’t want to author in HTML. Reveal has Markdown support, but honestly it has always felt quite unnatural to me to use. I find myself making a single massive markdown cell, having to break it up arbitrarily to achieve a specific slide layout, or doing a markdown chunk per slide, or sacrificing customisation, and the whole experience feels pretty obtuse.
  2. Whilst HTML might open up a lot of interactivity, I do not have a web background; I don’t particularly like HTML, I find CSS a pain, and JavaScript has long been my least favourite programming language2. Whilst JS might open the door to customisation, the learning curve for me in particular would be high.
  3. One of the appeals to me of Reveal.js is being able to demonstrate Python code, something Jupyter allows you to achieve in its editor. However, it depends on having a backend running, which means you lose that interactivity when you publish the slides (Or have to maintain a Jupyter server for potentially hundreds of students to utilise simultaneously).
  4. Frankly, by default, Reveal is pretty ugly. Sorry if you are reading this and you were involved in picking the defaults, but it’s just not my style. To me, Reveal needs a lot of polish to get to a point I’d be happy with.
  5. Laying out slides is not convenient. Obviously something WYSIWYG like Powerpoint and Keynote means that being able to quickly reshape and redesign your slides layouts is incredibly convenient in a way Reveal does not match. Perhaps, again, if I were better with HTML I could alleviate this — But also, if I alleviate this issue with HTML, why am I using Markdown? I don’t want to have to drop to HTML over any and every issue.

This is all to say, whilst I love the concept of Reveal, I find it too inconvenient to use directly.

However, I’m always on the lookout for a convenient option or alternative.

For me, as a lecturer, I see a few options:

  1. Suck it up — Powerpoint and Keynote are alright.
  2. Reveal.js through Juptyer — Accept that you cannot distribute live slides, but enjoy some very dynamic visualisations; However, also accept some limitations compared to plain Reveal.js
  3. Look at upcoming frameworks like Marimo, which has a presentation framework (which I must experiment with…)
  4. Roll something entirely custom (an experiment for another day…)
  5. A billion different HTML presentation frameworks
  6. Quarto.

All of these have their own merits. Marimo in particular is very young, and I feel like it’s a real up-and-comping option — Whilst it’s not quite where I’d want it to be to consider it, I am keeping a close eye…

For me, however, when I discovered Quarto, I started to see something powerful enough, flexible enough, and complete enough, that perhaps it might finally be what I had been looking for.

Quarto

For those unfamiliar with Quarto, it’s worth briefly explaining it.

Quarto is, in essence, a publication framework. In many ways, it can be seen more as a competitor to LaTeX and Juptyer than to Powerpoint — Documents are written in Markdown, can be exported to many formats, allow for referencing, embedding either code or the output of that code (in some languages) directly into your documents, and much more.

Your documents are authored in QMD files — Markdown with a little extra syntax added on top to make documents authoring and typesetting a little nicer. For the most part, QMD is nice enough to interact with; I do find myself having to look up syntax and style classes more than I’d like.

Your Quarto-authored documents are then exported to whichever formats you like, using whatever templates you like with mostly sane defaults:

  • HTML
  • PDF
  • Word
  • Reveal.js
  • Powerpoint
  • Beamer
  • Github Flavoured Markdown
  • Hugo
  • Some Wiki formats
  • Jupyter

There a bunch of formats available, some of which I am barely aware of, some of which you might never need, but some of which make for very tempting offers. However, for me personally, there was only one interesting format — Reveal.js

My main complaint about Reveal.js — The feeling that I need to frequently drop out of Markdown and into HTML to format my slides — is mostly alleviated by Quarto and it’s few syntactic deviations from standard Markdown.

Syntax

For the most part, Quarto’s syntax is just Markdown.

In a few trivial ways, it differentiates.

For example, you can specify a div and assign any classes to it using:

::: {.cssclass}
content
:::

There’s a number of convenience classes added by default to allow you to layout your document or slides. For example:

::::{.columns}

:::{.column width=45%}
left column’s content
:::

:::{.column width=65%}
right column’s content
:::

::::

There’s also some simple classes such as:

:::{.r-vstack}
First item

Second item
:::

In this syntax, everything placed inside is stacked vertically. You can also use .r-hstack for a horizontal stack. Useful for positioning images.

You can also use .r-stack, where all items inside stack on top of each-other… Again, useful for specific cases in presentations.

Overall, you can achieve most things you would want. There are definitely limitations. If you’re used to a WYSIWYG presentation tool, you’re loosing a great deal of positional flexibility — Quickly resizing text boxes, placing images wherever you want, etc.

Personally, I’m happy with the positional compromises — I don’t mind a more restrictive layout (versus a WYSIWYG editor) for an easier time composing my lectures (the same trade-off most academics make when they choose LaTeX).

The final critical piece of syntax is the fragment. In Reveal, a fragment is essentially an animation step. You’re saying “This thing should be added to the list of things to animate” — By default, this animation is just starting hidden and then appearing.

This allows you to do incremental animations, particularly useful for slowly revealing parts of the slide as you present.

Here’s some sample text.

[This text starts hidden, then appears!]{.fragment}

:::{.fragment}
This line will appear…

and this line will also appear at the same time!

Reveal will treat this all as one big chunk, even though it occupies multiple lines!
:::

:::{.incremental}
- This will appear first
- Then when you progress the slide this will appear second
- And finally this will appear third when you progress the slide again!
:::

The fragment system is the underpinning of most animations in Reveal.

Embedding and Presenting Code

A particular highlight for me with regard to Quarto is its ability to render, highlight, and demonstrate code blocks in a file.

Reveal is already excellent at rendering code blocks, but the syntax for doing this in Quarto feels very natural.

++ TODO: Rewrite this code blocks

import numpy as np
import matplotlib.pyplot as plt

r = np.arange(0, 2, 0.01)
theta = 2 * np.pi * r
fig, ax = plt.subplots(subplot_kw={‘projection’: ‘polar’})
ax.plot(theta, r)
ax.set_rticks([0.5, 1, 1.5, 2])
ax.grid(True)
plt.show()

You are able to not just demonstrate code, but make Quarto highlight individual lines of the code cell as a fragment, so when demonstrating code you can step through at your own pace as you present.

Computation and Literate Programming

Another excellent feature of Quarto is its ability to execute inline code. This means that not only can you demonstrate code, you can

Talk about using Reveal.js with Quarto, creating plugins, specifically DAGraph.

Footnotes

  1. I wish the Mac version had the simplified, full-screen experience the iPad has.↩︎

  2. A tight competition with PHP.↩︎