Reproducing examples in handouts

34 views
Skip to first unread message

Jesse Oldroyd

unread,
Feb 16, 2026, 1:55:59 PMFeb 16
to PreTeXt support
I'm sorry if this has been answered elsewhere, but I'm trying to use the new handout division to create guided notes for my calculus course. Right now, my plan is to create a handout at the end of each section of my notes containing xrefs to important results/examples in the section for students to fill in notes on, as demonstrated very crudely at the end of the linked notes below:


I have two questions about this:
  1. Is it possible to display the content the xrefs lead to automatically? As it stands, students need to click on the link to display the content.
  2. Clicking on enough links pushes content off of the single page of the handout (using Firefox). Can I adjust the handout so that it expands to multiple pages if necessary, depending on which xrefs are expanded?
Thank you!

Rob Beezer

unread,
Feb 16, 2026, 4:17:46 PMFeb 16
to pretext...@googlegroups.com
> Is it possible to display the content the xrefs lead to automatically? As it stands, students need to click on the link to display the content.

Years ago, I believe David Farmer wrote some Javascrupt to open every "born
hidden" knowl on a page. Maybe. Or something like that. I can't remember why.

Without passing judgement on the utility, I think JS could open all #xref
knowls, and/or all "born hidden" knowls. In other words, I think the HTML has
enough information to make that happen. It could be a publisher setting
(automatically for all pages) or it could be a "user menu" choice to open them
on a per-page base (either or).

I think it might also be possible for you to add-in your own hacked/custom JS to
do this. It might be useful experiment and a jumping-off point for somebody who
might think this is worth doing carefully/universally.

Rob

On 2/16/26 10:55, Jesse Oldroyd wrote:
> I'm sorry if this has been answered elsewhere, but I'm trying to use the new
> handout division to create guided notes for my calculus course. Right now, my
> plan is to create a handout at the end of each section of my notes containing
> xrefs to important results/examples in the section for students to fill in notes
> on, as demonstrated very crudely at the end of the linked notes below:
>
> HTML: https://j-oldroyd.github.io/wvwc-calculus/preview/wvwc-calculus/section-
> limits-and-continuity.html <https://j-oldroyd.github.io/wvwc-calculus/preview/
> wvwc-calculus/section-limits-and-continuity.html>
> Source: https://github.com/j-oldroyd/wvwc-calculus/
> blob/750c7bb5e07464809a036e42a1f0182228db46e2/source/partial-
> derivatives.ptx#L259 <https://github.com/j-oldroyd/wvwc-calculus/
> blob/750c7bb5e07464809a036e42a1f0182228db46e2/source/partial-derivatives.ptx#L259>
>
> I have two questions about this:
>
> 1. Is it possible to display the content the xrefs lead to automatically? As it
> stands, students need to click on the link to display the content.
> 2. Clicking on enough links pushes content off of the single page of the
> handout (using Firefox). Can I adjust the handout so that it expands to
> multiple pages if necessary, depending on which xrefs are expanded?
>
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com <mailto:pretext-
> support+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> support/8ea62d06-8e87-4a5f-9bf7-07883b22d35an%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-
> support/8ea62d06-8e87-4a5f-9bf7-07883b22d35an%40googlegroups.com?
> utm_medium=email&utm_source=footer>.

Jesse Oldroyd

unread,
Feb 28, 2026, 11:57:59 AM (9 days ago) Feb 28
to PreTeXt support

Thank you!  I’ll try playing with the JavaScript then.
Reply all
Reply to author
Forward
0 new messages