decktape icon indicating copy to clipboard operation
decktape copied to clipboard

Add an option to toggle rendering fragments "all in one" or "one for each" slide(s)

Open astefanutti opened this issue 9 years ago • 10 comments

Ideally, that should be a global option supported for all presentation backends.

astefanutti avatar Oct 21 '15 15:10 astefanutti

For reveal.js this is possible by turning fragments via the url: http://yourpresentation/?fragments=false

riezebosch avatar Jan 29 '16 15:01 riezebosch

The fragments option has been set to false in the reveal.js plugin a768e10e25af2d91111d055422794d1163317285.

astefanutti avatar Aug 05 '16 17:08 astefanutti

The title of this issue should be renamed now - it should be "add option to allow creating one slide per fragment". In my presentations, I often use fragments to "animate" images, with sequences of images, each being a new fragment rendered over the old, progressing through the animation. The PDF is useless if it doesn't have these.

jroper avatar Sep 29 '16 04:09 jroper

@jroper thanks for the feedback. I infer you're exporting reveal.js presentations for which I assumed passing fragments=true in the URL query string would force the fragments to be rendered one per slide. Though it happens the query string parameter does not take precedence over the globally configured fragments option.

So I've just pushed 9e1ad32, that should enable you to export one slide per fragment by adding ?fragments=true to your presentation URLs, until a consistent solution across all the supported presentation frameworks is worked out. In the meantime, I'm renaming this issue.

astefanutti avatar Sep 29 '16 09:09 astefanutti

This would really be a very useful improvement - I am using fragments a lot to improve the flow of argument in lectures, but it is painful for students to have PDFs one per each additional fragment. Manual removal in the post-processing would also add a lot of manual work per each release. So I would really love to see this issue fixed - adding the fragments=false parameter to the notebook URI does not work on my system.

mfhepp avatar Nov 08 '19 01:11 mfhepp

@mfhepp what presentation framework do you use?

astefanutti avatar Nov 08 '19 07:11 astefanutti

@astefanutti I am using RISE 5.5.1 with Jupyter Notebooks 5.7.4 from the Anaconda distribution.

mfhepp avatar Nov 08 '19 11:11 mfhepp

It would be great to have it supported for remarkjs too by checking the value of countIncrementalSlide in the remarkjs' presentation HTML passed to decktape

// Disable counting of incremental slides in the slide counting
countIncrementalSlides: false,

bdamele avatar Jan 16 '20 16:01 bdamele