Feedback links within sections.

14 views
Skip to first unread message

obi...@maseno.ac.ke

unread,
Dec 11, 2025, 1:39:40 AM (4 days ago) Dec 11
to PreTeXt development
We are planning to pilot two textbooks in January for Junior Secondary (grade 7) and Senior Secondary (grade 10). One feature (if it can be added) could really help us in getting feedback from teachers (and possibly students) as they use the books. We are particularly interested in the feedback from teachers on the examples that would be more appropriate for their students, pedagogical modifications e.t.c. A link within sections that enables submission of reviews, say to a google form will be really useful. Is this doable?

Many thanks and looking forward to positive conversations.

Georg Osang

unread,
Dec 11, 2025, 4:05:46 PM (4 days ago) Dec 11
to PreTeXt development
I've spent a bit of time just now trying to implement Andrew's suggestion from this thread:
Namely, using the html.js.extra stringparam to load some custom javascript to add review
links in a similar fashion to how permalinks were done. I haven't had any success getting
the script to load though, and I'm afraid I won't have time to experiment further in the next
two weeks.

Andrew Scholer

unread,
Dec 11, 2025, 6:39:02 PM (4 days ago) Dec 11
to prete...@googlegroups.com
This counts as a VERY quick and dirty hack... but it works.

This JS will hijack all the permalinks and turn them into review links that go to a google form:
https://github.com/ascholerChemeketa/pretext/blob/review-permalink-sample/examples/sample-book/ext/permalink-review-links.js

Live demo:
https://computerscience.chemeketa.edu/ascholer/pretext-test/review/section-math-induction.html

Note I have placed the file in the external files directory of the Sample Book, which is called "ext" based on the publisher file.

To load that code, there is this in the project file:
https://github.com/ascholerChemeketa/pretext/blob/c9db2ae60483d796197a51bdcf76ed6c9bd22256/examples/sample-book/project.ptx#L13

It points at the directory name that "external" will have in the output, which is "external".

The link currently redirects to a random google form I made. It should be trivial to sub that out for one you create.

Until there is a better solution, that hopefully helps.

Andrew Scholer

--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/33d40a23-234a-46df-933c-95b1aaedda05n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages