PgBiel/typst-tablex

Hlines not drawn with `gutter-restrict: top`

dmorawetz opened this issue · 3 comments

I use this package for all my tables to replicate the booktabs style, and it is wonderful to use.

However, with the latest version of tablex and typst, the following code, does not show the hline.

#import "tablex.typ": tablex, hlinex

#tablex(
  columns: 3,
  row-gutter: 1em,
  auto-lines: false,
  [H1], [H2], [H3],
  hlinex(gutter-restrict: top),
  [seconde], [row], [with content]
)

image

But gutter-restrict: bottom works as expected.

image

What can I do to fix this? Plus, is there maybe an option to draw it right in the center of the gutter?

For now, I use bottom everywhere, but it is way more visually pleasing if it is aligned right. Please help my OCD :)

PgBiel commented

Fixed in 7029956, thanks!

There are still some other minor gutter issues I wish to fix before the next release, but you can use the code from that commit (or from main) in the meantime.

PgBiel commented

is there maybe an option to draw it right in the center of the gutter?

Not currently; please open a separate issue suggesting this :)

Wow, thanks for this fast fix! It works :D

Top looks pretty slick, I think the center option is not necessary, now.