typst/tests/typ/math/style.typ
2023-01-22 13:48:49 +01:00

16 lines
431 B
Typst

#let part = $ a b A B $
#let kinds = (serif, sans, cal, frak, mono, bb)
#let modifiers = (v => v, italic, bold, v => italic(bold(v)))
#let cells = ([:triangle:nested:], [--], [`italic`], [`bold`], [both])
#for k in kinds {
cells.push(raw(repr(k).trim("<function ").trim(">")))
for m in modifiers {
cells.push($ #m(#k(part)) $)
}
}
#set page(width: auto)
#set align(center)
#table(columns: 1 + modifiers.len(), ..cells)