mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
16 lines
484 B
Typst
16 lines
484 B
Typst
#let part = $ a b A B $
|
|
#let kinds = (math.serif, math.sans, math.cal, math.frak, math.mono, math.bb)
|
|
#let modifiers = (v => v, math.italic, math.bold, v => math.italic(math.bold(v)))
|
|
|
|
#let cells = ([:triangle:nested:], [--], [`italic`], [`bold`], [both])
|
|
#for kk in kinds {
|
|
cells.push(raw(repr(kk).trim("<function ").trim(">")))
|
|
for mm in modifiers {
|
|
cells.push($ mm(kk(part)) $)
|
|
}
|
|
}
|
|
|
|
#set page(width: auto)
|
|
#set align(center)
|
|
#table(columns: 1 + modifiers.len(), ..cells)
|