diff options
| author | Max <me@mkor.je> | 2025-03-31 09:38:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-31 09:38:04 +0000 |
| commit | 012e14d40cb44997630cf6469a446f217f2e9057 (patch) | |
| tree | 71f60052b2e8eae87c0c9ac2c20faebc293a1f39 /tests | |
| parent | 4f0fbfb7e003f6ae88c1b210fdb7b38f795fc9e4 (diff) | |
Unify layout of `vec` and `cases` with `mat` (#5934)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/math-cases-linebreaks.png | bin | 570 -> 506 bytes | |||
| -rw-r--r-- | tests/ref/math-equation-font.png | bin | 984 -> 1032 bytes | |||
| -rw-r--r-- | tests/ref/math-mat-vec-cases-unity.png | bin | 0 -> 1202 bytes | |||
| -rw-r--r-- | tests/ref/math-vec-linebreaks.png | bin | 856 -> 651 bytes | |||
| -rw-r--r-- | tests/suite/math/cases.typ | 4 | ||||
| -rw-r--r-- | tests/suite/math/mat.typ | 11 | ||||
| -rw-r--r-- | tests/suite/math/vec.typ | 4 |
7 files changed, 13 insertions, 6 deletions
diff --git a/tests/ref/math-cases-linebreaks.png b/tests/ref/math-cases-linebreaks.png Binary files differindex 543d5384..eb4971c4 100644 --- a/tests/ref/math-cases-linebreaks.png +++ b/tests/ref/math-cases-linebreaks.png diff --git a/tests/ref/math-equation-font.png b/tests/ref/math-equation-font.png Binary files differindex eb84634e..ec3c7231 100644 --- a/tests/ref/math-equation-font.png +++ b/tests/ref/math-equation-font.png diff --git a/tests/ref/math-mat-vec-cases-unity.png b/tests/ref/math-mat-vec-cases-unity.png Binary files differnew file mode 100644 index 00000000..bb85182e --- /dev/null +++ b/tests/ref/math-mat-vec-cases-unity.png diff --git a/tests/ref/math-vec-linebreaks.png b/tests/ref/math-vec-linebreaks.png Binary files differindex 6eeed42b..52ff0a8b 100644 --- a/tests/ref/math-vec-linebreaks.png +++ b/tests/ref/math-vec-linebreaks.png diff --git a/tests/suite/math/cases.typ b/tests/suite/math/cases.typ index 1c7b4a6b..306c1ae8 100644 --- a/tests/suite/math/cases.typ +++ b/tests/suite/math/cases.typ @@ -17,6 +17,6 @@ $ x = cases(1, 2) $ $ cases(a, b, c) $ --- math-cases-linebreaks --- -// Currently linebreaks are equivalent to commas, though this behaviour may -// change in the future. +// Warning: 40-49 linebreaks are ignored in branches +// Hint: 40-49 use commas instead to separate each line $ cases(a, b, c) cases(reverse: #true, a \ b \ c) $ diff --git a/tests/suite/math/mat.typ b/tests/suite/math/mat.typ index b7d6a687..80f19060 100644 --- a/tests/suite/math/mat.typ +++ b/tests/suite/math/mat.typ @@ -256,10 +256,17 @@ $ mat(delim: #(none, "["), 1, 2; 3, 4) $ $ mat(delim: #(sym.angle.r, sym.bracket.double.r), 1, 2; 3, 4) $ --- math-mat-linebreaks --- -// Unlike cases and vectors, linebreaks are discarded in matrices. This -// behaviour may change in the future. +// Warning: 20-29 linebreaks are ignored in cells +// Hint: 20-29 use commas instead to separate each line $ mat(a; b; c) mat(a \ b \ c) $ +--- math-mat-vec-cases-unity --- +// Test that matrices, vectors, and cases are all laid out the same. +$ mat(z_(n_p); a^2) + vec(z_(n_p), a^2) + cases(reverse: #true, delim: \(, z_(n_p), a^2) + cases(delim: \(, z_(n_p), a^2) $ + --- issue-1617-mat-align --- #set page(width: auto) $ mat(a, b; c, d) mat(x; y) $ diff --git a/tests/suite/math/vec.typ b/tests/suite/math/vec.typ index 5de7eca9..e5ee409e 100644 --- a/tests/suite/math/vec.typ +++ b/tests/suite/math/vec.typ @@ -51,6 +51,6 @@ $ vec(1, 2) $ #set math.vec(delim: (none, "%")) --- math-vec-linebreaks --- -// Currently linebreaks are equivalent to commas, though this behaviour may -// change in the future. +// Warning: 20-29 linebreaks are ignored in elements +// Hint: 20-29 use commas instead to separate each line $ vec(a, b, c) vec(a \ b \ c) $ |
