| 12345678910111213141516171819202122 |
- #set text(font: "Times New Roman", size: 12pt)
- // C: strong вокруг всего header
- #show table.header: it => strong(it)
- #table(
- table.header([Aaa], [Bbb]),
- [ccc], [ddd],
- )
- #pagebreak()
- // D: пересборка детей шапки с сильным выделением содержимого ячеек
- #show table.header: it => table.header(..it.children.map(c => {
- if type(c) == content and c.func() == table.cell {
- let fields = c.fields
- let body = fields.remove("body")
- table.cell(..fields, strong(body))
- } else {
- strong(c)
- }
- }))
- #table(
- table.header([Aaa], table.cell(colspan: 2)[Ccc]),
- [ccc], [ddd], [eee],
- )
|