HTML: figure/sidebyside/tabular causes tabular to appear in right margin

10 views
Skip to first unread message

Jeremy Sylvestre

unread,
Aug 21, 2026, 1:41:41 PM (2 days ago) Aug 21
to PreTeXt development
Best demonstrated by just looking at a live example:

This example was created from the following source which jing says is schema-compliant.

figure
  caption
  sidebyside
    figure
      caption
      image
    figure
      caption
      sidebyside
        tabular

None of the elements above were given any attributes. In particular, no @width/@widths or @margins on the sidebyside elements.

Regards,
Jeremy S

Rob Beezer

unread,
Aug 22, 2026, 3:02:00 PM (yesterday) Aug 22
to prete...@googlegroups.com
A one-panel #sidebyside is a hold-over from the (very) old days.

What does the schema say if you get rid of the #sidebyside?

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/
> CALMYOneE98_Oc80hNT_s_N-%2BB%3D-WYDwknkk8PR6wiv%2B4Ey1QtQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-dev/CALMYOneE98_Oc80hNT_s_N-%2BB%3D-
> WYDwknkk8PR6wiv%2B4Ey1QtQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Jeremy Sylvestre

unread,
Aug 22, 2026, 4:42:32 PM (yesterday) Aug 22
to prete...@googlegroups.com
Turns out this is an artifact of me returning to an older codebase without being able to keep 5 years of announcements in my head. ;)

In particular this one
from 2021 where tabular were removed as a child of figure.

I was still operating off my memory of a (very?) old discussion where it was strongly asserted that, going by the CMOS description of "table", most tabular were not, in fact, tables.

Somewhat more recently there was also this discussion

https://groups.google.com/g/pretext-dev/c/B2IwQKkEr-I/m/q5Ntc-DqAwAJ

asking whether a truth table or a table-of-values for a function were properly "tables".


My present case: a weighted graph alongside a table of values for the weight function.


In any case, I've re-authored as


figure

caption

sidebyside

image

tabular


Passes schema validation and output looks good.


Thanks for taking the time to reply.

Sean Fitzpatrick

unread,
Aug 22, 2026, 7:46:43 PM (yesterday) Aug 22
to PreTeXt development
I asked about this not long ago (and long ago, as the thread linked by Jeremy demonstrates).

To answer Rob: the schema does not allow figure/tabular, so it also will not allow 

sidebyside 
  figure/image
  figure/tabular

However, there remains support in the XSL (at least for HTML and LaTeX) for figure/tabular: no errors at build time, and output looks as I've would expect. 

I had completely forgotten about the idea of creating "function-table" as a replacement for tabular that could be a child of figure. 

I think Alex pointed out that this would create a duplicate of tabular, with a new name, and that it would be easier to just allow tabular. 

In any case, this remains an unresolved issue for APEX. 

For things like a table of values, I'm considering moving from

figure/tabular/cell/m

to

figure/p/m/\begin{array}

This should be visually equivalent, and schema compliant, but my concern is that accessibility would be worse.

--
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.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/CALMYOncVZMOR0AQgUPrW%2BCOcGSu7UMc-qp3pB-gg8uJ6Fj%2BGag%40mail.gmail.com.

Rob Beezer

unread,
3:03 PM (6 hours ago) 3:03 PM
to prete...@googlegroups.com
On 8/22/26 13:42, Jeremy Sylvestre wrote:
> Turns out this is an artifact of me returning to an older codebase without being
> able to keep 5 years of announcements in my head. ;)

Seems I can't remember larger tasks from two weeks ago. ;-)

> My present case: a weighted graph alongside a table of values for the weight
> function.
>
>
> In any case, I've re-authored as
>
>
> figure
>
> caption
>
> sidebyside
>
> image
>
> tabular
>
>
> Passes schema validation and output looks good.

Yes, that looks like what I would suggest.

Your previous example also had a #sidebyside inside a #sidebyside/#figure. I'd
never intended them to nest like that.

> Thanks for taking the time to reply.

Thanks for your inventive experiments. I've got a couple holes to fill in the
schema now.

Rob
Reply all
Reply to author
Forward
0 new messages