Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gadenbuie/revealjs-text-resizer

Resize text on quarto slides
https://github.com/gadenbuie/revealjs-text-resizer

quarto quarto-extension quarto-slides revealjs slides

Last synced: 5 days ago
JSON representation

Resize text on quarto slides

Awesome Lists containing this project

README

        

# Reveal.js Text Resizer

_An extension for [Quarto slides](https://quarto.org/docs/presentations/revealjs/)_

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](https://pkg.garrickadenbuie.com/revealjs-text-resizer/example.html)

## Installing

```bash
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`:

```yaml
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](example.qmd).