Prefigure sizing

36 views
Skip to first unread message

Mark Fitch

unread,
Aug 21, 2026, 12:50:22 PMAug 21
to pretext...@googlegroups.com
I am replacing some SVG images with Prefigure ones. The SVG in HTML
automatically pop out to view a bigger version which is very useful. The
Prefigure images do not seem to have this, or I need to learn how they
should be embedded. I have them in image tags inside sidebysides inside
sbsgroup inside a figure. I can provide a github link later (rushing to
a meeting).

http://www.math.uaa.alaska.edu/~afmaf/classes/math251/lessons/section-limits-discover.html

Dr. Mark A. Fitch
Professor of Mathematics
Overseer, Associate of Arts/Science

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

David Austin

unread,
Aug 21, 2026, 1:46:13 PMAug 21
to pretext...@googlegroups.com
You've set this up properly.  Non-annotated PreFigure SVGs will exhibit the behavior you want, but it looks like you've annotated yours (which is great!).  We had a discussion at dropin the other day about modifying the behavior along the lines of what you'd like.  Perhaps Andrew Scholer could chime in?

--
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/0d4d6a1d-3694-4f77-96f0-8c18833f396a%40alaska.edu.

Andrew Scholer

unread,
Aug 21, 2026, 4:21:10 PMAug 21
to pretext...@googlegroups.com
Yes, a just filed PR adds annotated PreFigure diagrams to the images that can be expanded.

You can check out the behavior at this demo build:

Andrew

David Austin

unread,
Aug 21, 2026, 5:14:00 PMAug 21
to pretext...@googlegroups.com
I like that a lot, Andrew.  Thank you!  It also means that one doesn't accidentally start up the annotation reader just by perhaps inadvertently clicking the diagram.  I assume the diagram can be expanded with key presses or something equivalent?

Andrew Scholer

unread,
Aug 22, 2026, 10:22:55 AMAug 22
to pretext...@googlegroups.com
Yes, if you navigate to the image or the "expand" button that overlays the image and activate it with Enter or space.

I kept the images as an active element to zoom with to maintain something close to existing behavior. Though I'm not 100% convinced that is better behavior than only the expand button (visible on hover or focus) as the zoom trigger.

For normal images, activation would not normally do anything. But for PreFigure, perhaps image activation on the regular page should trigger annotations. What do you think David? Do you want the behavior to match other images? Or to trigger annotations on image activation and zoom only with the button?


Rob Beezer

unread,
Aug 23, 2026, 2:24:14 PMAug 23
to pretext...@googlegroups.com
@Mark - you might follow https://github.com/PreTeXtBook/pretext/pull/3170

On 8/21/26 10:45, David Austin wrote:
> You've set this up properly.  Non-annotated PreFigure SVGs will exhibit the
> behavior you want, but it looks like you've annotated yours (which is great!).
> We had a discussion at dropin the other day about modifying the behavior along
> the lines of what you'd like.  Perhaps Andrew Scholer could chime in?
>
> On Fri, Aug 21, 2026 at 12:50 PM 'Mark Fitch' via PreTeXt support <pretext-
> sup...@googlegroups.com <mailto:pretext...@googlegroups.com>> wrote:
>
> I am replacing some SVG images with Prefigure ones. The SVG in HTML
> automatically pop out to view a bigger version which is very useful. The
> Prefigure images do not seem to have this, or I need to learn how they
> should be embedded. I have them in image tags inside sidebysides inside
> sbsgroup inside a figure. I can provide a github link later (rushing to
> a meeting).
>
> http://www.math.uaa.alaska.edu/~afmaf/classes/math251/lessons/section-
> limits-discover.html <http://www.math.uaa.alaska.edu/~afmaf/classes/math251/
> lessons/section-limits-discover.html>
>
> Dr. Mark A. Fitch
> Professor of Mathematics
> Overseer, Associate of Arts/Science
>
> maf...@alaska.edu <mailto:maf...@alaska.edu>
> SSB 154
> University of Alaska Anchorage
> 3211 Providence Drive, Anchorage, AK 99508
>
> --
> 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%2Bunsu...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> support/0d4d6a1d-3694-4f77-96f0-8c18833f396a%40alaska.edu <https://
> groups.google.com/d/msgid/pretext-
> support/0d4d6a1d-3694-4f77-96f0-8c18833f396a%40alaska.edu>.
>
> --
> 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>.
> CANXmVMDJkRrEu4_a%2ByvThzJq%3Dm0z6brQv1k0OhX4KES2awFc7A%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-support/
> CANXmVMDJkRrEu4_a%2ByvThzJq%3Dm0z6brQv1k0OhX4KES2awFc7A%40mail.gmail.com?
> utm_medium=email&utm_source=footer>.

David Austin

unread,
Aug 24, 2026, 5:19:06 AMAug 24
to pretext...@googlegroups.com
I've been on the fence about this, but perhaps it's best if the the behavior with PreFigure images matches that of other images.  That provides a more consistent experience regardless of where the images are coming from.  Also, I've seen a few times where readers have accidentally clicked in an image and started the annotation explorer without understanding what they've done or how to undo it.  Perhaps the reader should express their intent to explore the image by first zooming.

A publication switch is probably asking too much?  😬

David

Andrew Scholer

unread,
Aug 24, 2026, 8:02:00 PMAug 24
to pretext...@googlegroups.com
David - 

I don't know that a switch is asking too much. But it might be pointlessly kicking the can down the road. Is there a good reason why a reasonable editorial choice for different works might make changing that reasonable? 

If not we should pick the most reasonable option and go with that.

Is consistency in the zoom behavior worth requiring an extra action to start annotations? I would tend to say it probably is. But I am happy to go with whatever you think is best.


David Austin

unread,
Aug 25, 2026, 6:20:40 AMAug 25
to pretext...@googlegroups.com
You're right.  I should get off the fence!  I also agree that consistency of the zoom experience should be a priority so that expanding is the first step in the exploration of a diagram.

Is that enough to go on?  I'll be at the second hour of dropin today.  Thanks for your work on this!

Reply all
Reply to author
Forward
0 new messages