YouTube playback in PDF

14 views
Skip to first unread message

rhutch...@gmail.com

unread,
Aug 29, 2025, 9:50:29 AM (7 days ago) Aug 29
to PreTeXt support
I am unable to get the QR codes for YouTube videos to play at the specified start and stop times in my compiled PDF. For example, this <video xml:id="jeopardy-theme" youtube="AQFxpN30DMU" start="112" end="122" play-at="select" width="25%"/> starts playing at 112 seconds in the HTML but not the PDF -- it starts at 0 seconds.

A secondary issue is that no QR code is generated for videos with the red YouTube arrow "fig leaf" image. <video youtube="cEfhiCqlawI" start="0" end="6" play-at="select" preview="generic" width="25%"/> I'm assuming I would need to add an xml:id as well as remove [preview="generic"] for all examples with YouTube links.

Best wishes,
Rob Hutchinson

Rob Beezer

unread,
Aug 29, 2025, 11:34:30 AM (7 days ago) Aug 29
to pretext...@googlegroups.com
Dear Rob,

I just checked the start/stop problem, and it was not as simple as an oversight
(which I was hoping for!). I'll need to dig a bit deeper later today.

And no good ideas yet on the second one.

Which tool are you using to build these days: xsltproc, pretext/pretext script,
CLI Python package?

Rob
> --
> 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/6fb8f62a-a9bd-4958-877d-6948602e513en%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/6fb8f62a-
> a9bd-4958-877d-6948602e513en%40googlegroups.com?utm_medium=email&utm_source=footer>.

Rob Hutchinson

unread,
Aug 29, 2025, 2:10:16 PM (7 days ago) Aug 29
to pretext...@googlegroups.com
I’m still using xsltproc to build.
_________________________
Robert Hutchinson, PhD
Professor of Music
University of Puget Sound
Tacoma, WA 98416

> On Aug 29, 2025, at 8:34 AM, 'Rob Beezer' via PreTeXt support <pretext...@googlegroups.com> wrote:
>
> Dear Rob,
> You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/U0JdVjfeCa8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-support/MTAwMDAzOS5iZWV6ZXI.1756481662%40pnsh.

Rob Beezer

unread,
Aug 29, 2025, 2:42:00 PM (7 days ago) Aug 29
to pretext...@googlegroups.com
OK, I see the start/stop problem. (An ampersand is necessary in the URL, and
that is a special character in both XML and the LaTeX used to make a PDF.)
There is even a comment that the current code might produce bugs. ;-) Fixable,
but might take some care.

Rob

Rob Beezer

unread,
Aug 29, 2025, 2:48:11 PM (7 days ago) Aug 29
to pretext...@googlegroups.com
On 8/29/25 11:01, Rob Hutchinson wrote:
> I’m still using xsltproc to build.

I feared as much. ;-) I'm surprised that is working for you - it is possible
you are substantially out-of-date with PreTeXt proper.

And you are two generations behind on tools. Where is Jahrme when we need him?

Can you attend the Monday "Drop-In" sessions? There are folks there who can
walk you though a setup on your Mac. But your source will also need some
attention. So it'll be sort of disruptive. But it is also hard to say why your
QR codes are not being built.

I'll host Drop-In this coming Monday (US Labor Day holiday), but can say if the
regulars will be there or not. But any Monday will work, subject to your
teaching schedule.

Rob

Rob Hutchinson

unread,
Aug 29, 2025, 4:27:28 PM (7 days ago) Aug 29
to pretext...@googlegroups.com
The drop in is at noon on Mondays?
_________________________
Robert Hutchinson, PhD
Professor of Music
University of Puget Sound
Tacoma, WA 98416

> On Aug 29, 2025, at 11:48 AM, 'Rob Beezer' via PreTeXt support <pretext...@googlegroups.com> wrote:
> --
> You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/U0JdVjfeCa8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-support/MTAwMDA0OC5iZWV6ZXI.1756493288%40pnsh.

Rob Beezer

unread,
Aug 30, 2025, 5:45:55 PM (6 days ago) Aug 30
to pretext...@googlegroups.com
Now 8 AM - 10 AM Pacific. There is a regular announcement on "pretext-announce"
with each week's details.

Zoom link: https://prose.runestone.academy/dropin
Reply all
Reply to author
Forward
0 new messages