-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
excluding certain slides while rendering #80
Comments
Hmm, adding some kind of class like that would probably require a change to the xaringan package as all renderthis does is call the package to render the slides. renderthis does have a |
Btw this is a good idea, so I would reach out to the Quarto team too as they could probably add something like this to the revealjs slides. |
Thanks! This helps. It would be awesome if the Here is one simple piece of code I whipped together to extract the slide numbers that have the class that I would like to exclude
With the help of that, it would be straightforward to run something like:
Of course, the |
This is the kind of thing that's easy to get right for one particular slide deck and hard to get right for all slide decks all the time. We're using browser automation via chromote for complex slides and doing the filtering in the browser is the only reliable way to ensure you're hiding the slides you want to hide. That said, this could be relatively easy with CSS that could be added to the slide deck. (To be clear, added by authors to their own stylesheets and not injected by renderthis.) A @media print {
.remark-slide-container:has(.remark-slide-content.no_handout) {
display: none;
}
} |
Yes, Garrick, I agree that the function may not work for every slide deck. The point was that I am OK with having to provide slide numbers to the Anyway, I am suggesting that it would be very useful to have a |
Ya'll is this spam? |
I often make slide decks (I still use Xaringan, but this will also be true when I move to Quarto for making my slides) that include several slides I do not want to include in a pdf handout.
So, I'll make an extensive set of slides and render those to html for my actual live presentation. But, when I share a pdf handout of the presentation afterwards, I usually want to exclude several slides (e.g., slides with copyrighted material, slides with the password for the wifi at a conference, slides that contain video, etc.).
It would be great if I could add a class to a slide that
renderthis
uses to skip it when building the pdf. For example, something like this:and then use:
renderthis::to_pdf("slides.Rmd", skip = "not_handout")
Of course, if there already is some way to hack this, that would be great too.
The text was updated successfully, but these errors were encountered: