typst/tests/typ/math/block-alignment.typ
2023-09-18 14:51:34 +02:00

34 lines
440 B
Typst

// Test alignment of block equations.
---
// Test unnumbered
#let eq(alignment) = {
show math.equation: set align(alignment)
$ a + b = c $
}
#eq(center)
#eq(left)
#eq(right)
#set text(dir: rtl)
#eq(start)
#eq(end)
---
// Test numbered
#let eq(alignment) = {
show math.equation: set align(alignment)
$ a + b = c $
}
#set math.equation(numbering: "(1)")
#eq(center)
#eq(left)
#eq(right)
#set text(dir: rtl)
#eq(start)
#eq(end)