Skip to content

Commit 6ec04e7

Browse files
committed
[test] stylability of tables
1 parent 80d3991 commit 6ec04e7

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

tests/table/styling/ref/1.png

3.73 KB
Loading

tests/table/styling/test.typ

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#import "/src/zero.typ": *
2+
#set page(width: auto, height: auto, margin: .5em)
3+
4+
5+
6+
#show table: format-table(none, auto)
7+
8+
#let strong_rows = (0,) // 0 is the header row
9+
#show selector.or(
10+
..strong_rows.map(r => table.cell.where(y: r))
11+
): strong
12+
13+
#table(
14+
columns: 2,
15+
["Version A"], [13.43e3],
16+
["Version B"], [2.89043e3],
17+
)

0 commit comments

Comments
 (0)