Skip to content

gadenbuie/revealjs-text-resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • Press Alt/Opt + + to increase text size

  • Press Alt/Opt + - to decrease text size

  • Press Alt/Opt + 0 to reset the text size

Example

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