For Reveal.js and Quarto
A paragraph with some text and a link.
The options below have user configurable options. In a regular Reveal.js presentation, these can be set through JavaScript, but Quarto makes it configurable through YAML options.
The menubarclass option sets the classname of menubars.
Simplemenu will show the menubar(s) on all pages. If you do not want to show the menubar on certain pages, use data-state=“hide-menubar” on that section. This behaviour also works when exporting to PDF using the Reveal.js ?print-pdf option.
The menuclass option sets the classname of the menu.
Simplemenu looks inside this menu for list items (LI’s).
The activeclass option is the class an active menuitem gets.
The activeelement option sets the item that gets the active class.
You may want to change it to the anchor inside the li, like this: activeelement: "a"
.
You can add the HTML for the header (and/or footer) through this option. This way you no longer need to edit the template.
You can also move the slide number or the controls to your header or footer. If they are nested there manually, or through the barhtml
option, they will then display inside that header or footer.
Sometimes you’ll want to limit your presentation to horizontal slides only. To still use ‘chapters’, you can use the flat
option. By default, it is set to false
, but you can set it to true
. Then, when a data-name is set for a slide, any following slides will keep that menu name.
To stop inheriting the previous slide menu name, start a new named section, or add data-sm="false"
to your slide.
When you have a lot of subjects/chapters in your menubar, they might not all fit in a row. You can then tweak the scale in the options. Simplemenu copies the Reveal.js (slide) scaling and adds a scale
option on top of that.
It is set to be two-thirds of the main scaling.
For more demos go to the Simplemenu plugin for Reveal.js. Not all of the options in the regular plugin are available in the Quarto plugin.