Tabular vertical heading spacing issue

5 views
Skip to first unread message

Andrew Scholer

unread,
Feb 14, 2026, 2:55:10 PMFeb 14
to prete...@googlegroups.com
I have a spacing issue with vertical headers that have borders. There is a 2em left padding applied to vertical headings.This prevents them from properly aligning with centered content in their column. (See below.)

If the cell does not have a border, there is a separate rule that overrides that padding and with smaller, equal left and right padding. This is the case for all the examples in the SA, so the issue is not visible there.  

I think that small, equal amounts of padding should be used in all cases. Just want to make sure there is not some rationale for the larger, left only padding that I am missing.

Sample
image.png


Behavior without borders from SA:
image.png


Rob Beezer

unread,
Feb 14, 2026, 4:43:03 PMFeb 14
to prete...@googlegroups.com
Dear Andrew,

Short answer: I don't recall s whole lot of care going into the placement of the
vertical headers.

Notes:

* Not finding relevant commits too well.

* What is the LaTeX output doing?

* For row/@header="yes" do @halign and/or @valign make sense? I suspect they
would be easy to pass along as classes. (Again: LaTeX?)

Rob

On 2/14/26 11:54, Andrew Scholer wrote:
> I have a spacing issue with vertical headers that have borders. There is a 2em
> left padding applied to vertical headings.This prevents them from properly
> aligning with centered content in their column. (See below.)
>
> If the cell does not have a border, there is a separate rule that overrides that
> padding and with smaller, equal left and right padding. This is the case for all
> the examples in the SA, so the issue is not visible there.
>
> I think that small, equal amounts of padding should be used in all cases. Just
> want to make sure there is not some rationale for the larger, left only padding
> that I am missing.
>
> Sample
> image.png
>
>
> Behavior without borders from SA:
> image.png
>
>
> --
> 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/
> CACm44N__%2ByOD2HgKpa3nO_Jd-fbw0zNh%2Bon9J%3DO%2BLL3%3DzpC6MA%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-dev/CACm44N__%2ByOD2HgKpa3nO_Jd-
> fbw0zNh%2Bon9J%3DO%2BLL3%3DzpC6MA%40mail.gmail.com?
> utm_medium=email&utm_source=footer>.

Andrew Scholer

unread,
Feb 14, 2026, 7:37:39 PMFeb 14
to prete...@googlegroups.com
Thanks Rob.

LaTeX has IMO much better output. Both in terms of spacing and orientation. In LaTeX the title runs up from the data, which to my eye is preferable. (Both specify "90 degrees" in the output, but the engines disagree on the direction of angle measurement.)
image.png

row@halign or @valign on vertical headers is a bit of a mess.

In HTML, you have to use @halign on the header to control what is visually the vertical alignment. Yes, technically the text is being left/right aligned within its rotated context, but given that the alignment is specified on the row or cell, and not the contents, I think @valign makes more sense.

image.png

In LaTeX, halign is ignored and valign breaks the output.

image.png




I would be happy to do a PR making HTML out of the box behavior look like LaTeX. (And ignore @Xaligns.)


If you want to dive into @Xaligns in vertical headers, I'm happy to handle HTML output. Someone else would have to opine on the one true way to implement that alignment in LaTeX. 



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/MTAwMDA0MS5iZWV6ZXI.1771105380%40pnsh.
Reply all
Reply to author
Forward
0 new messages