PgBiel / typst-tablex

More powerful and customizable tables in Typst
MIT License
370 stars 12 forks source link

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

Closed Super-wyc closed 5 months ago

Super-wyc commented 5 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)