typst/tests/typ/math/alignment.typ

34 lines
376 B
XML

// Test implicit alignment math.
---
// Test alignment step functions.
$
"a" &= c \
&= c + 1 & "By definition" \
&= d + 100 + 1000 \
&= x && "Even longer" \
$
---
// Test post-fix alignment.
$
& "right" \
"a very long line" \
"left" \
$
---
// Test no alignment.
$
"right" \
"a very long line" \
"left" \
$
---
// Test #460 equations.
$
a &=b & quad c&=d \
e &=f & g&=h
$