typst/tests/suite/math/alignment.typ
2024-04-13 08:39:45 +00:00

35 lines
491 B
Typst

// Test implicit alignment math.
--- math-align-weird ---
// Test alignment step functions.
#set page(width: 225pt)
$
"a" &= c \
&= c + 1 & "By definition" \
&= d + 100 + 1000 \
&= x && "Even longer" \
$
--- math-align-post-fix ---
// Test post-fix alignment.
$
& "right" \
"a very long line" \
"left" \
$
--- math-align-implicit ---
// Test no alignment.
$
"right" \
"a very long line" \
"left" \
$
--- math-align-toggle ---
// Test #460 equations.
$
a &=b & quad c&=d \
e &=f & g&=h
$