Skip to content

ThomasWeinert/reveal-print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reveal-print

Extended print trigger for reveal.js

This plugin replaces the small snippet that looks for print-pdf in the query string. It reacts to the trigger and adds the print stylesheet.

It has a second trigger that materializes the fragments. This mode clones the slide for each fragment. The first slide will contains the first fragment, the second the first and the second and so on. The goal is to create a pdf that can be used to present.

Installation

You can install the plugin using bower or copy the file manually.

bower install --save reveal-print

After that add the plugin to the initialization:

dependencies: [
  { src: 'bower-components/rveal-print/src/print.js' },
}

Options

{
  trigger: {
    print: 'print-pdf',
    expand: 'print-pdf-expand'
  },
  css: 'path/to/print/style.css'
}

All options are optional.

trigger.print

String expected in the query string to trigger print output.

trigger.expand

String expected in the query string to trigger fragment slide expansion. This will trigger print output as well.

css

The plugin will compile the path to the stand reveal.js print stylesheet automatically. If here is a problem with that, the url can be provided here.

About

Extended print trigger for reveal.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published