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

Negative line expansion across cells

Open dixslyf opened this issue 1 year ago • 0 comments

Negative line expansion does not work across cells:

#import "@preview/tablex:0.0.6": tablex, hlinex

#tablex(
  columns: (50pt, 50pt, 50pt),
  auto-lines: false,
  hlinex(),
  [], [], [],
  hlinex(expand: -40pt),
  [], [], [],
  hlinex(expand: -50pt),
  [], [], [],
  hlinex(expand: -60pt),  // Does not work
  [], [], [],
  hlinex(expand: -100pt),  // Does not work
)

image

More context: https://github.com/PgBiel/typst-tablex/issues/74#issuecomment-1815590377:

Indeed, when this feature was added I intended to add negative expand, but it turned out to be more complicated than I thought. The problem is mostly that the line can span multiple cells, and currently lines are broken down to each cell they span, so we'd need to reduce the line across cell boundaries. This will probably be done at some point, but will take a while. Thanks for the request!

dixslyf avatar Dec 02 '23 08:12 dixslyf