quarto-verticator

Verticator

For Quarto

A quarto extension for Reveal.js that adds indicators to show the amount of slides in a vertical stack.

Sometimes you would like to have an indication of how many slides are remaining in a vertical stack. This plugin does just that. It is visually similar to the indicators at fullPage.js.

The following demos are from the regular Reveal.js plugin, but the Quarto plugin works the same way:

Don’t overdo it. You probably don’t want 30 bullets on the right-hand side of your presentation.

Verticator follows your theme

If you do not override the colors in the configuration, Verticator detects what colors you use in your theme CSS. This works on both regular slides and on slides that have an inverted color. For example, if the theme is dark, and you use a data-attribute of data-background-color="#fff" on one or more slides, those slides will then have a white background. In standard Reveal themes, the text in those white slides will then invert to be very dark gray. Verticator just copies that behaviour. The theme color is set as a CSS variable (--c-theme-color) in the Reveal element, and can also be used by other elements.

Overriding colors

Overriding colors can be done in several ways:

Installation

Installation with Quarto

quarto add martinomagnifico/quarto-verticator

Other installations

The original plugin is also published to npm. To use Verticator in a normal Reveal.js installation, or for more information about the original plugin, go to Martinomagnifico/reveal.js-verticator

Configuration

There are a few options that you can change in the YAML options. The values below are default and do not need to be set if not changed.

format:
  revealjs:
    verticator:
      themetag: 'h1'
      color: ''
      inversecolor: ''
      skipuncounted: false
      clickable: true
      position: 'auto'
      offset: '3vmin'
      autogenerate: true
      tooltip: false
      scale: 1
revealjs-plugins:
  - verticator

Like it?

If you like it, please star this repo.

License

MIT licensed

Copyright (C) 2024 Martijn De Jongh (Martino)