Skip to content
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

Rendering to PDF #12

Open
elenlefoll opened this issue Sep 18, 2024 · 2 comments
Open

Rendering to PDF #12

elenlefoll opened this issue Sep 18, 2024 · 2 comments

Comments

@elenlefoll
Copy link

I am a big fan of this package and have been using in an open textbook project written in Quarto. There are just a couple of issues that it would be fantastic to fix.

  1. Currently, question options do not render to PDF. Would it be possible to expand the package so that the options are printed with the corresponding radio/checkbox symbols? Of course, to get feedback on their answers, students would still have to use the HTML version, but it would make for a much better reading experience if the options were printed in PDF.

Many thanks for considering these two issues. I really like all the options of your package and have made use of most of them in my textbook draft so far!

@elenlefoll elenlefoll changed the title Rendering in PDF Rendering to PDF Sep 18, 2024
@agricolamz
Copy link
Owner

agricolamz commented Sep 22, 2024

Hi! Thank you for the reporting! This is a known issue, and my lazy strategy around it would be to render html and Ctrl/Cmnd + P and print it to pdf. However, in order to render it beautifully to pdf, I need to write more or less the same package but using LaTeX... And I'm not sure, whether I want to... I wonder, whether author of webexercises created a trick for it...

@elenlefoll
Copy link
Author

Hi!
I'm aware that webexercises renders to PDF and I had thought of migrating all my quizzes to this package in order to solve this PDF issue, but I prefer your package for a two important pedagogical reasons:

  1. Possibility to have questions for which multiple answers are correct.
  2. Possibility to give both positive and negative feedback for each question.

I have tried to look at the source code of webexercises to understand how they did it and it seems that each question-type function has an ifelse function to check whether the document is being rendered to PDF or HTML to then adapt the code as necessary: https://github.com/PsyTeachR/webexercises/blob/main/R/webexercises_fns.R.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants