revealjs-text-resizer

Reveal.js Text Resizer

An extension for Quarto slides

This is a small extension that makes it easy to adjust the size of the text on Quarto-based Reveal.js slides, without having to disable Reveal.js’s built-in slide scaling features.

This extension is for anyone who has presented with Quarto slides and tried to press Ctrl/Cmd + +/- to adjust the font size to find the text stubbornly stays exactly the same size.

Try it out

Installing

quarto add gadenbuie/revealjs-text-resizer

This will install the extension under the _extensions subdirectory. If you’re using version control, you will want to check in this directory.

Then, add the following to the YAML frontmatter of your slides.qmd:

revealjs-plugins:
  - revealjs-text-resizer

Using

The extension adds three keyboard shortcuts to your slides:

Example

Here is the source code for a minimal example: example.qmd.