Bug in caption placement? Or mistake by me?

11 views
Skip to first unread message

Sean Fitzpatrick

unread,
Jan 16, 2026, 11:42:52 AM (10 days ago) Jan 16
to PreTeXt support
I'm inclined to say bug, because the output is correct in LaTeX/PDF.

Here is the offending figure:

There is some clash between the info buttons for the long descriptions and the auto-captions for the subfigures, and things aren't in the right place.
It's almost like there is a column break between the info button for the first figure, and its caption.

I am seeing this on both Firefox and Chrome.

I can post the full source if wanted, but I think it's easier to read if I leave out the asymptote code. I don't see anything wrong with how this is structured.

I have:

<figure xml:id="fig_coordplanes">
  <caption>The <m>xy</m> plane in (a), the <m>yz</m> plane in (b), and the <m>xz</m> plane in (c)</caption>
  <sidebyside widths="33% 33% 33%" margins="0%">
    <figure xml:id="fig_spacexy_3D">
      <caption/>
      <image>
        <shortdescription>(Yes, there is one)</shortdescription>
        <description>
          <p>A longer description is here</p>
        </description>
        <asymptote label="img_spacexy_3D">
          (lots of asymptote code here)
        </asymptote>
      </image>
    </figure>
    <figure xml:id="fig_spaceyz_3D">
      <caption/>
      <image>
        <shortdescription>(Yes, there is one)</shortdescription>
        <description>
          <p>A longer description is here</p>
        </description>
        <asymptote label="img_spaceyz_3D">
          (lots of asymptote code here)
        </asymptote>
      </image>
    </figure>
    <figure xml:id="fig_spacexz_3D">
      <caption/>
      <image>
        <shortdescription>(Yes, there is one)</shortdescription>
        <description>
          <p>A longer description is here</p>
        </description>
        <asymptote label="img_spacexz_3D">
          (lots of asymptote code here)
        </asymptote>
      </image>
    </figure>
  </sidebyside>
</figure>
    

Sean Fitzpatrick

unread,
Jan 16, 2026, 11:46:56 AM (10 days ago) Jan 16
to PreTeXt support
I don't see anything obviously wrong when I inspect the HTML. The first caption is inside the div for the first figure.
But it is being placed in the wrong part of the grid layout used by the sidebyside.

Andrew Scholer

unread,
Jan 16, 2026, 11:58:34 AM (10 days ago) Jan 16
to pretext...@googlegroups.com
Yes, it looks like a bug related to aligning the figcaptions into a visual "row" even when the images have different sizes.

It looks like the SA doesn't have an example of using long descriptions in figures in a sidebyside. I can take a look at it, but it might require building more structure into the HTML, so I'm not sure it will be a one line fix.

Want to make a quick issue?

Andrew

--
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/989880ee-0962-467f-85bb-8090683dedb7n%40googlegroups.com.

Sean Fitzpatrick

unread,
Jan 16, 2026, 1:28:40 PM (10 days ago) Jan 16
to PreTeXt support
Sure, I'll add an issue. I am seeing this in APEX as well, but not everywhere, so it's hard to say what triggers it.
I'll put some reference links in the issue.

I don't recall noticing this in APEX before, so I wonder if it is a (relatively) recent change.
Reply all
Reply to author
Forward
0 new messages