Skip to content

Quarto Reveal plugin to fit slide contents to vertical height

Notifications You must be signed in to change notification settings

g-simmons/slide-contents-wrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Quarto Plugin: Reveal Slide Contents Wrap

Author: Gabriel Simmons @g-simmons

This is a Quarto plugin for Reveal.js slides made with Quarto. The plugin wraps the contents of each slide inside a div, except for the first child. This div is then dynamically resized to fit inside the slide, without overflowing.

Installation

To use the plugin, add the following YAML metadata to the top of your Quarto file:

output:
  quarto::revealjs:
    plugins:
      - name: "Reveal Slide Contents Wrap"
        src: "path/to/reveal-slide-contents-wrap.js"

Make sure to replace path/to/reveal-slide-contents-wrap.js with the actual path to the JavaScript file containing the plugin.

Usage

To use the plugin, simply include an H2 header as the first child of each slide. The rest of the slide content will be wrapped inside a div that is dynamically resized to fit inside the slide. Any overflow is hidden to ensure that all content stays within the boundaries of the slide.

License

This plugin is released under the MIT License. You are free to use, modify, and distribute it as you see fit, as long as you include the original license and attribution.

About

Quarto Reveal plugin to fit slide contents to vertical height

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published