EvaMaeRey / flipbookr

Presenting code step-by-step and side-by-side with its output
https://evamaerey.github.io/flipbookr/
Other
198 stars 20 forks source link

make each reveal step/incremental slide a separate slide when printing to pdf? #21

Closed brshallo closed 4 years ago

brshallo commented 4 years ago

Printing a flipbook from chrome (or using pagedown::chrome_print()) prints only the final animation of a flipbook page. How would I change it so that it would print each step/increment/fragment into a separate slide?

I am trying to recreate the pagedown --> magick approach to creating gifs that I used here.

brshallo commented 4 years ago

Relevant issue yihui/xaringan#192 where handling of printing of incremental slides changed (so would only print last slide). Also issue in rstudio/pagedown#110 where @abichat is requesting ability to print incremental slides (currently still open).

brshallo commented 4 years ago

A solution is to add the following css (and it will print the incremental slides):

@media print {
  .has-continuation {
    display: block;
  }
}

Found in css file by @abichat .

Perhaps not a permanent solution, but will close issue.