mirror of
https://github.com/typst/typst
synced 2025-05-15 09:35:28 +08:00
35 lines
400 B
Typst
35 lines
400 B
Typst
// Test implicit alignment math.
|
|
|
|
---
|
|
// Test alignment step functions.
|
|
#set page(width: 225pt)
|
|
$
|
|
"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
|
|
$
|