bold-test4.typ 467 B

1234567891011121314151617
  1. #set text(font: "Times New Roman", size: 12pt)
  2. *Контроль жирного* и обычный текст.
  3. #show table.header: it => table.header(..it.children.map(c => {
  4. if type(c) == content and c.func() == table.cell {
  5. let fields = c.fields
  6. let body = fields.remove("body")
  7. table.cell(..fields, strong(body))
  8. } else {
  9. strong(c)
  10. }
  11. }))
  12. #table(
  13. columns: 3,
  14. table.header([Aaa], table.cell(colspan: 2)[Ccc], []),
  15. [ccc], [ddd], [eee],
  16. )