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

response element interfering with interactive behavior in print #2312

Open
Tanaquil18 opened this issue Dec 11, 2024 · 8 comments
Open

response element interfering with interactive behavior in print #2312

Tanaquil18 opened this issue Dec 11, 2024 · 8 comments

Comments

@Tanaquil18
Copy link
Contributor

I have a desmos interactive in a task of an exercise along with a response element. Everything seems fine in html, but when I build the pdf, the screenshot and qr code are not inserted. When I comment out the response element, then the screenshot and qr code are inserted as I would expect.

@rbeezer
Copy link
Collaborator

rbeezer commented Dec 11, 2024

Can you post source here, with permission to add it to the sample article?

@Tanaquil18
Copy link
Contributor Author

Sure! The full exercise has a lot going on. Do you want a minimal example that demonstrates this issue?

@rbeezer
Copy link
Collaborator

rbeezer commented Dec 11, 2024

Yes, minimal may be better. Thanks.

@Tanaquil18
Copy link
Contributor Author

Tanaquil18 commented Dec 11, 2024

<exercise> <statement> <p> Some text. </p> <figure> <caption>Solutions to the equation <m>15x+6y=15</m></caption> <interactive xml:id="desmos-15xplus6yis15-a" desmos="vvw2yv58qm" width="85%" aspect="4:3" /> </figure> </statement> <response/> </exercise>

@rbeezer
Copy link
Collaborator

rbeezer commented Dec 11, 2024

Can you try a @label on the exercise and on the interactive? Required for the interactive exercise (was there no warning?), and recommended for the interactive.

@Tanaquil18
Copy link
Contributor Author

Whoops, too minimal! In the actual exercise, I have a label on every task, and the response is inside the task.

No, no warning about missing a label. Adding labels to exercise and the interactive does not change the behavior. With response in, no screenshot or qr code in pdf. Comment out the response, and the screenshot and qr code are inserted where they should be.

@rbeezer
Copy link
Collaborator

rbeezer commented Dec 11, 2024

In pretext-assembly.xsl (the pre-processor), when making a new version of source for consumption by converters to static formats, the conversion of Runestone-powered exercises fails to make other adjustments like dumbing down an interactive to a sidebyside. The LaTeX conversion does nothing with the interactive that bleeds through.

A fix will require a lot of surgery. Need to sleep on it, at a minimium.

@Tanaquil18
Copy link
Contributor Author

I "fixed" it for the time being using versions. Responses belong to a component that is built for the web target, and not for the print target. I don't think I have any other interactives and Runestone-powered exercises together.

This seems low priority to me, especially if it requires a lot of work. Someone authoring interactives and Runestone-powered exercises together cares that it works in html, not print.

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