typst-tablex icon indicating copy to clipboard operation
typst-tablex copied to clipboard

Allow `rowspan` and `colspan` to take `auto`

Open platformer opened this issue 2 years ago • 2 comments

Description

Passing auto to rowspan or colspan would force the cell to take as much space as possible. For example:

#tablex(
  columns: 10,
  [a], colspanx(auto)[b], [c]
)

The b cell would span 8 columns.

Notes

I'm not sure what should happen if there are multiple automatically-sized spans in the same row/column. Either the available space could be divided evenly among each such cell, or it could be outright disallowed.

platformer avatar Aug 09 '23 03:08 platformer

Could also play with the idea of allowing 1fr, 2fr syntax.

PgBiel avatar Nov 17 '23 02:11 PgBiel

I am, however, unsure if this is feasible for rows, as theoretically there are unlimited rows. Could perhaps restrict that to a single page.

PgBiel avatar Nov 17 '23 02:11 PgBiel