Sidebyside exercises in worksheets that include non-full-width images

24 views
Skip to first unread message

Oscar Levin

unread,
Sep 9, 2026, 10:16:46 AM (9 days ago) Sep 9
to PreTeXt development
I'm writing a worksheet that should have two exercises laid out side by side.  Each exercise needs to include an image inside its statement, but that image should not be the full width of the column.  I thought adding a @width on the image would help, but it doesn't seem to (in either pdf or html).

It used to be we could lay out these exercises using an exercisegroup, which is how I was able to produce the desired worksheet shown here: https://math.oscarlevin.com/math228-fall26/course/activity-05-proofs-intro.html?printpreview=activity-05-proofs-intro (see the second page).

Is there currently a way to accomplish this that I'm just overlooking?  Or is a PR in my future?

Rob Beezer

unread,
Sep 11, 2026, 6:13:18 PM (7 days ago) Sep 11
to prete...@googlegroups.com
Dear Oscar,

Short answer: maybe a PR is in your future.

Normally an #image in a #sidebyside would be a complete panel unto itself
and it would fill the width of the panel. That behavior should be retained.

We have recycled the language of a #sidebyside for other layout purposes, like
the pieces of an #interactive. So "worksheet/../sidebyside/exercise/image" will
want special treatment, I guess. Guessing: an "image-inclusion" template
override and/or a div/.image-box with a @style giving a width.

Should an authored width be relative to the constricted width of the
panel/exercise or to the overall text-width? I think the former is easier, and
maybe more natural. And in the former case, it may be easier to construct an
error-check for a width greater than 100% of that which is available.

Rob
> --
> 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 <mailto:pretext-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/
> c51c5e99-8093-478e-826a-bbecb7736b50n%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-dev/c51c5e99-8093-478e-826a-
> bbecb7736b50n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages