-
Notifications
You must be signed in to change notification settings - Fork 331
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
Export Annotated Slide Deck to PDF #1868
Comments
I don't believe this works with the current chalkboard and print to PDF functionality (they work on totally different representations of the slide deck) |
Is there a suggested workflow for people, like me, who want to annotate their Quarto generated lecture slides and share the results? |
Honestly, print them out, annotate them, then scan the annotated pages back into a PDF. Crude but effective until the PDF printing and chalkboard modules know how to play together. |
I'm all for this "whatever works" kind of approach. But I'm missing something about how your suggestion would work for my use case. To be (more) specific, I want to
Will your above suggestion work for this? |
I can't imagine how my suggestion could work for that use case unless you were somehow training a camera on the printed slides as you go over them in class. I'm sorry this doesn't all work together -- we have integrated a 3rd party plugin (chalkboard) that doesn't happen to anticipate this use case. At this point I think we'd need to make direct changes to the plugin (or get them to make it work, looks like they don't intend to implement this but are open to a PR: rajgoel/reveal.js-plugins#97). So you could go the camera route but that seems quite involved! It is possible to save your annotations in a JSON file and then subsequently reload them: https://quarto.org/docs/presentations/revealjs/presenting.html#restoring-drawings. If you did this along with listing the ---
title: "chalkboard"
format:
revealjs:
chalkboard:
src: chalkboard.json
resources:
- chalkboard.json
--- Then: quarto publish quarto-pub slides.qmd
quarto publish netlify slides.qmd See docs on publishing here: https://quarto.org/docs/publishing/ We should be automatically picking up the |
Okay, we are now automatically including the ---
title: "chalkboard"
format:
revealjs:
chalkboard:
src: chalkboard.json
--- Commit: d68bdbc This will be available in tomorrow's version of our v1.1 pre-release: https://quarto.org/docs/download/prerelease.html |
Awesome. After installing the v1.1.70 pre-release, I tried your above code (saved as slides.qmd) with a sample annotation (saved as chalkboard.json) in the same folder (as slides.qmd). But the annotations are not reloaded. Am I missing something here? |
It's working on my end (albeit the chalkboard takes a second or two to load on each slide, that's probably by design to emulate drawing). If you could send a link to Git repo or Gist that fully reproduces what you are seeing and I can debug it from there. |
One note: you do need to re-render the |
So I made a rudimentary GitHub repo with my Is this to what you're referring above by "a link to a Git repo"? If not, can I ask you to elaborate a bit on what you require? If so, then here is some extra information about the steps I'm taking that result in the annotations not re-rendering.
|
Okay, I think I see the problem(s). There are two things that could be preventing you from seeing the annotations: (1) The chalkboard.json file is loaded as a remote resources so opening slides.html in Chrome won't work. The slides need to be served from a web server (which they will be once you quarto publish them). (2) Chalkboard annotations don't appear on the title slide until you navigate away from it and back (this is just a bug/vagary of the chalkboard plugin) From your repo I did this: git clone https://github.com/paul-sheridan/quarto-annotation-testing.git
cd quarto-annotation-testing
quarto preview slides.qmd And saw this after navigating away from the title slide and back: |
Terrific! Thanks a lot. I'm sorted now. I lost sight of the slides needing to be served from a web server... |
Are there any updates on directly downloading the PDF file with the annotations, or is this still the only option? |
How can I export to PDF a slide deck that has been annotated with the chalkboard pen tool?
I followed the instructions to print to PDF using Chrome as described in the Guide.
Here is a test annotation on the Quarto Demo Deck title slide:
Here what I get when attempting to print to PDF in Chrome:
It would seem that the annotation is being handled properly, but not the slide contents themselves.
Any suggestions?
The text was updated successfully, but these errors were encountered: