PgBiel / typst-tablex

More powerful and customizable tables in Typst
Apache License 2.0
376 stars 13 forks source link

When using rowspanx/colspans, can't adjust the leading within the table #131

Closed Super-wyc closed 8 months ago

Super-wyc commented 8 months ago

If i use rowspanx/colspans in tablex, i can't adjust the leading within the table. for example:

#figure(
  tablex(
    columns: (1fr, 1fr, 1fr, 1fr), 
    align: center + horizon, 
    auto-lines: false, 
    repeat-header: true, 
  hlinex(),
  [name],[span/m],[frequency/Hz],[amplitude/m],
  hlinex(),
  rowspanx(4)[bridge],rowspanx(4)[1650],[0.183],[0.239],
  (),(),[0.230],[0.144],
  (),(),[0.276],[0.117],
  (),(),[0.327],[0.148],
  hlinex(),
  ),
  kind: table,
  caption: [parameter]
)

I can't adjust leading with code as:

#show figure: set par(leading: 0.8em)