bold-test6.typ 601 B

123456789101112131415161718192021
  1. #set text(font: "Times New Roman", size: 12pt)
  2. #show table: it => {
  3. let fields = it.fields
  4. let children = fields.remove("children")
  5. table(..fields, ..children.map(c => {
  6. if type(c) == content and c.func() == table.header {
  7. table.header(..c.children.map(h => {
  8. if type(h) == content and h.func() == table.cell {
  9. let f = h.fields
  10. let b = f.remove("body")
  11. table.cell(..f, strong(b))
  12. } else { strong(h) }
  13. }))
  14. } else { c }
  15. }))
  16. }
  17. #table(
  18. columns: 3,
  19. table.header([Aaa], table.cell(colspan: 2)[Ccc], []),
  20. [ccc], [ddd], [eee],
  21. )