Why are footnote references not numbered left to right in a table cell with rowspan?

The rowspan and colspan (see image below) works as expected. However, adding footnotes to cells begins the footnote numbering in an unexpected manner.

I would expect the numbering to go from left to right as the cells A and B span multiple rows and begin at the first row.

#table(
  columns: 4,
  align: center + horizon,
  //header
  table.cell(rowspan: 2)[*A* #footnote[#lorem(10)]],
  table.cell(rowspan: 2)[*B* #footnote[#lorem(10))]],
  table.cell(colspan: 2)[*C* #footnote[#lorem(5)]],
  [*D*], [*E*],

  // additional rows with data
)

2 Likes

The closest explanation that I can see is Why is a `rowspan` cell with `colspan` equal to number of columns seemingly only spanning one row? - #4 by PgBiel. Perhaps @PgBiel can describe more in depth or correct me.

I seem to recall a forum post or GitHub issue about a similar issue (perhaps about heading or list/enum numbering?) but can’t seem to find it.

It seems clear to me that numbering is applied from the first non-row-spanned cell and then carries on.

Yeah, the rowspan is laid out after its last row, not its first. Until then, its size is unknown.