| 123456789101112131415161718192021 |
- #set text(font: "Times New Roman", size: 12pt)
- #show table: it => {
- let fields = it.fields
- let children = fields.remove("children")
- table(..fields, ..children.map(c => {
- if type(c) == content and c.func() == table.header {
- table.header(..c.children.map(h => {
- if type(h) == content and h.func() == table.cell {
- let f = h.fields
- let b = f.remove("body")
- table.cell(..f, strong(b))
- } else { strong(h) }
- }))
- } else { c }
- }))
- }
- #table(
- columns: 3,
- table.header([Aaa], table.cell(colspan: 2)[Ccc], []),
- [ccc], [ddd], [eee],
- )
|