diff options
| author | Alex Saveau <saveau.alexandre@gmail.com> | 2023-04-20 10:48:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-20 19:48:11 +0200 |
| commit | 851b154a6cb1d558b0091f1a63baa4d3414a7356 (patch) | |
| tree | a726571ad105e898cdad8f627aac0a8466c93e0b /tests/typ/math/alignment.typ | |
| parent | 42b93b7b534557205a6dc3dfda8fe3cfccfcc458 (diff) | |
Convert math alignment to single-pass algorithm (#891)
Diffstat (limited to 'tests/typ/math/alignment.typ')
| -rw-r--r-- | tests/typ/math/alignment.typ | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/typ/math/alignment.typ b/tests/typ/math/alignment.typ new file mode 100644 index 00000000..8482d89e --- /dev/null +++ b/tests/typ/math/alignment.typ @@ -0,0 +1,28 @@ +// Test implicit alignment math. + +--- +// Test alignment step functions. +#set page(width: 300pt) +$ +"abc" &= c \ +&= c + 1 & "By definition" \ +&= d + 100 + 1000 \ +&= x && "Even longer" \ +$ + +--- +// Test post-fix alignment. +#set page(width: 300pt) +$ +& "right" \ +"a very long line" \ +$ + +--- +// Test alternating alignment. +#set page(width: 300pt) +$ +"abc" & "abc abc abc" & "abc abc" \ +"abc abc" & "abc abc" & "abc" \ +"abc abc abc" & "abc" & "abc abc abc" \ +$ |
