https://github.com/andrie/reveal-auto-agenda
https://github.com/andrie/reveal-auto-agenda
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrie/reveal-auto-agenda
- Owner: andrie
- License: mit
- Created: 2022-08-04T03:31:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T10:46:03.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T21:58:37.741Z (3 months ago)
- Language: Lua
- Size: 474 KB
- Stars: 27
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reveal-auto-agenda
A quarto extension for `reveal.js` that automatically creates agenda slides from H1 heading titles.
## Installation
To install this extension in your current directory (or into the Quarto project that you're currently working in), use the following command:
``` shell
quarto install extension andrie/reveal-auto-agenda
```## Enabling
Add this to your document or project options:
``` yaml
filters:
- reveal-auto-agenda
```## Usage
Simply create your slides as normal, with H1 header slides marking transitions between agenda items.
Important: the extension assumes that your H1 header slides contains no other content, and that you want these slides to be replaced by the rolling agenda.
This extension:
- Creates a list of the text of each H1 slide.
- Insert this list into the body of each H1 slide.
- Inserts CSS that marks the active section with a border box around the text.## Example

## Custom CSS
The extension will create custom CSS elements. You can override these in your own CSS template:
``` css
.agenda {
}.agenda-slide h1 {
size: 0em;
display: none;
}.agenda-inactive {
opacity: 0.25;
margin-top: -0.5em;
margin-bottom: -0.5em;
}.agenda-active {
margin-top: -0.5em;
margin-bottom: -0.5em;
}
```## Global options
To change the default behaviour, include `auto-agenda` options in your yaml:
``` yaml
filters:
- reveal-auto-agenda
auto-agenda:
bullets: numbered
heading: Agenda
```You can change these options:
| Option | Description |
|-----------|-------------------------------------------------------------------------------------------|
| `bullets` | Change the agenda slides to have: |
| | \- `none`: No bullets or numbers |
| | \- `bullets`: Bullet list (the default) |
| | \- `numbered`: Numbered list |
| `heading` | If you set this option, then each agenda slide will have a heading above the agenda list. |
| | Use this to set a heading to "Agenda", "Table of Contents", or similar. |## Exclude auto-agenda from specific slides
If you want to suppress the agenda on a particular slide, add the class `no-auto-agenda` to the slide:
``` md
# Header {.no-auto-agenda}
```## Live preview
You can view a live preview of an example presentation at .