55# ###########################################################################################
66
77@testset " All Available Fields" verbose = true begin
8- matrix = [(i, j) for i in 1 : 3 , j in 1 : 3 ]
8+ matrix = [(i, j) for i in 1 : 4 , j in 1 : 4 ]
99
1010 @testset " Without Cropping" begin
1111 expected = """
1212# Table Title
1313
1414## Table Subtitle
1515
16- | **Row** | **Rows** | **Col. 1**<br>`1` | **Merged Column[^1]**<br>`2` | ─────── |
17- |--------------:|--------------:|------------------:|-----------------------------:|--------:|
18- | 1 | **Row 1** | (1, 1) | (1, 2) | (1, 3) |
19- | **Row Group** | ───────────── | ───────────────── | ──────────────────────────── | ─────── |
20- | 2 | **Row 2** | (2, 1) | (2, 2)[^2] | (2, 3) |
21- | 3 | **Row 3** | (3, 1) | (3, 2) | (3, 3) |
22- | ───────────── | ───────────── | ───────────────── | ──────────────────────────── | ─────── |
23- | | **Summary 1** | 10 | 20 | 30 |
24- | | **Summary 2** | 20 | 40 | 60 |
16+ | **Row** | **Rows** | **Col. 1**<br>`1` | **Merged Column[^1]**<br>`2` | ─────── | **Col. 4**<br>`4` |
17+ |--------------:|--------------:|------------------:|-----------------------------:|--------:|------------------:|
18+ | 1 | **Row 1** | (1, 1) | (1, 2) | (1, 3) | (1, 4) |
19+ | **Row Group** | ───────────── | ───────────────── | ──────────────────────────── | ─────── | ───────────────── |
20+ | 2 | **Row 2** | (2, 1) | (2, 2)[^2] | (2, 3) | (2, 4) |
21+ | 3 | **Row 3** | (3, 1) | (3, 2) | (3, 3) | (3, 4) |
22+ | 4 | **Row 4** | (4, 1) | (4, 2) | (4, 3) | (4, 4) |
23+ | ───────────── | ───────────── | ───────────────── | ──────────────────────────── | ─────── | ───────────────── |
24+ | | **Summary 1** | 10 | 20 | 30 | 40 |
25+ | | **Summary 2** | 20 | 40 | 60 | 80 |
2526
2627[^1]: Footnote in column label
2728[^2]: Footnote in data
@@ -33,7 +34,7 @@ Source Notes
3334 String,
3435 matrix;
3536 backend = :markdown ,
36- column_labels = [[" Col. $i " for i in 1 : 3 ], [" $i " for i in 1 : 3 ]],
37+ column_labels = [[" Col. $i " for i in 1 : 4 ], [" $i " for i in 1 : 4 ]],
3738 footnotes = [(:column_label , 1 , 2 ) => " Footnote in column label" , (:data , 2 , 2 ) => " Footnote in data" ],
3839 merge_column_label_cells = [MergeCells (1 , 2 , 2 , " Merged Column" , :c )],
3940 row_group_labels = [2 => " Row Group" ],
@@ -53,15 +54,16 @@ Source Notes
5354
5455## Table Subtitle
5556
56- | **Rows** | **Col. 1**<br>`1` | **Merged Column[^1]**<br>`2` | ─────── |
57- |--------------:|------------------:|-----------------------------:|--------:|
58- | **Row 1** | (1, 1) | (1, 2) | (1, 3) |
59- | **Row Group** | ───────────────── | ──────────────────────────── | ─────── |
60- | **Row 2** | (2, 1) | (2, 2)[^2] | (2, 3) |
61- | **Row 3** | (3, 1) | (3, 2) | (3, 3) |
62- | ───────────── | ───────────────── | ──────────────────────────── | ─────── |
63- | **Summary 1** | 10 | 20 | 30 |
64- | **Summary 2** | 20 | 40 | 60 |
57+ | **Rows** | **Col. 1**<br>`1` | **Merged Column[^1]**<br>`2` | ─────── | **Col. 4**<br>`4` |
58+ |--------------:|------------------:|-----------------------------:|--------:|------------------:|
59+ | **Row 1** | (1, 1) | (1, 2) | (1, 3) | (1, 4) |
60+ | **Row Group** | ───────────────── | ──────────────────────────── | ─────── | ───────────────── |
61+ | **Row 2** | (2, 1) | (2, 2)[^2] | (2, 3) | (2, 4) |
62+ | **Row 3** | (3, 1) | (3, 2) | (3, 3) | (3, 4) |
63+ | **Row 4** | (4, 1) | (4, 2) | (4, 3) | (4, 4) |
64+ | ───────────── | ───────────────── | ──────────────────────────── | ─────── | ───────────────── |
65+ | **Summary 1** | 10 | 20 | 30 | 40 |
66+ | **Summary 2** | 20 | 40 | 60 | 80 |
6567
6668[^1]: Footnote in column label
6769[^2]: Footnote in data
@@ -73,7 +75,7 @@ Source Notes
7375 String,
7476 matrix;
7577 backend = :markdown ,
76- column_labels = [[" Col. $i " for i in 1 : 3 ], [" $i " for i in 1 : 3 ]],
78+ column_labels = [[" Col. $i " for i in 1 : 4 ], [" $i " for i in 1 : 4 ]],
7779 footnotes = [(:column_label , 1 , 2 ) => " Footnote in column label" , (:data , 2 , 2 ) => " Footnote in data" ],
7880 merge_column_label_cells = [MergeCells (1 , 2 , 2 , " Merged Column" , :c )],
7981 row_group_labels = [2 => " Row Group" ],
@@ -105,7 +107,7 @@ Source Notes
105107| | **Summary 1** | 10 | 20 | ⋯ |
106108| | **Summary 2** | 20 | 40 | ⋯ |
107109
108- *1 column and 1 row omitted*
110+ *2 columns and 2 rows omitted*
109111
110112[^1]: Footnote in column label
111113[^2]: Footnote in data
@@ -144,12 +146,12 @@ Source Notes
144146|--------------:|--------------:|-----------:|----------------------:|---|
145147| 1 | **Row 1** | (1, 1) | (1, 2) | ⋯ |
146148| ⋮ | ⋮ | ⋮ | ⋮ | ⋱ |
147- | 3 | **Row 3 ** | (3 , 1) | (3 , 2) | ⋯ |
149+ | 4 | **Row 4 ** | (4 , 1) | (4 , 2) | ⋯ |
148150| ───────────── | ───────────── | ────────── | ───────────────────── | ─ |
149151| | **Summary 1** | 10 | 20 | ⋯ |
150152| | **Summary 2** | 20 | 40 | ⋯ |
151153
152- *1 column and 1 row omitted*
154+ *2 columns and 2 rows omitted*
153155
154156[^1]: Footnote in column label
155157[^2]: Footnote in data
0 commit comments