QR codes and static images for local video

3 views
Skip to first unread message

Mark Fitch

unread,
Jul 31, 2025, 8:16:00 PM7/31/25
to PreTeXt support

A temporary problem I am experiencing involves videos that I am hosting locally. "pretext build print" fails because the expected png containing a QR code is not generated. No version of the pretext generate command produces one. The video is hosted locally for the moment, because I am still developing the video (not ready for YouTube).

Is there an easy workaround? In the long term I will decide the videos are good enough to upload and then everything will be a youtube reference.

See the (very incomplete) project at: http://www.math.uaa.alaska.edu/~afmaf/classes/crystals/section-symmetry.html

Code: 

    <figure xml:id="figure-triangular-prism">
      <caption>3 and 2 fold Rotational Symmetries</caption>
      <video source="video/rotate_3"/>
    </figure>

Error: (fro XeLaTeX)
LaTeX Warning: File `generated/qrcode/figure-triangular-prism-2.png' not found
on input line 601.

! Unable to load picture or PDF file 'generated/qrcode/figure-triangular-prism-
2.png'.
<to be read again>
                   }
l.601 ...ted/qrcode/figure-triangular-prism-2.png}



Dr. Mark A. Fitch
Professor of Mathematics

maf...@alaska.edu
907-786-1656
SSB 154
University of Alaska Anchorage
3211 Providence Drive, Anchorage, AK 99508

Oscar Levin

unread,
Jul 31, 2025, 10:30:17 PM7/31/25
to PreTeXt support
Hi Mark,

I think this is my fault.  At some point in the last two years when refactoring the `pretext generate` routine, I think I dropped support for qr codes for anything besides interactives.  I suspect that if you have an interactive in your source, then qr codes would be generated for everything that needs one, which might explain why this bug has gone so long without being reported.

I'm working on a fix now, so look for a new CLI version later tonight or tomorrow that should have a fix.

Oscar.

Oscar Levin

unread,
Aug 1, 2025, 12:43:28 AM8/1/25
to pretext...@googlegroups.com
Try out 2.25.1 and see how that works for you, when you get a chance.

--
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.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/53984327-ca8a-41ff-b86d-5cd0dc825d03n%40googlegroups.com.

Mark Fitch

unread,
Aug 1, 2025, 2:05:24 AM8/1/25
to pretext...@googlegroups.com

The QR images are now generated. Thank you. The PDF is produced.

The video preview (image) for the these was not generated (just some text saying BUG IMAGE NOT GENERATED). I want to check if that is a local issue (security settings block some web access when I am at home).

Reply all
Reply to author
Forward
0 new messages