diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-05-17 10:36:07 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-05-17 15:34:20 +0200 |
| commit | f56408a73c8127f99aae932c5e46ee41099256f8 (patch) | |
| tree | 94f329fd73b5cdec567019fa2506997d4e83cbb9 /tests | |
| parent | c2eddff485d1d13d5077d02a9593bd8d3656e702 (diff) | |
Fix equations in RTL text (#4150)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-3696-equation-rtl.png | bin | 0 -> 660 bytes | |||
| -rw-r--r-- | tests/ref/math-at-line-end.png | bin | 0 -> 479 bytes | |||
| -rw-r--r-- | tests/ref/math-at-line-start.png | bin | 0 -> 476 bytes | |||
| -rw-r--r-- | tests/ref/math-at-par-end.png | bin | 0 -> 450 bytes | |||
| -rw-r--r-- | tests/ref/math-at-par-start.png | bin | 0 -> 418 bytes | |||
| -rw-r--r-- | tests/ref/math-consecutive.png | bin | 0 -> 176 bytes | |||
| -rw-r--r-- | tests/ref/math-linebreaking-empty.png | bin | 615 -> 664 bytes | |||
| -rw-r--r-- | tests/suite/math/equation.typ | 5 | ||||
| -rw-r--r-- | tests/suite/math/interactions.typ | 20 |
9 files changed, 25 insertions, 0 deletions
diff --git a/tests/ref/issue-3696-equation-rtl.png b/tests/ref/issue-3696-equation-rtl.png Binary files differnew file mode 100644 index 00000000..1ebf2dc2 --- /dev/null +++ b/tests/ref/issue-3696-equation-rtl.png diff --git a/tests/ref/math-at-line-end.png b/tests/ref/math-at-line-end.png Binary files differnew file mode 100644 index 00000000..6e4173a7 --- /dev/null +++ b/tests/ref/math-at-line-end.png diff --git a/tests/ref/math-at-line-start.png b/tests/ref/math-at-line-start.png Binary files differnew file mode 100644 index 00000000..05221db1 --- /dev/null +++ b/tests/ref/math-at-line-start.png diff --git a/tests/ref/math-at-par-end.png b/tests/ref/math-at-par-end.png Binary files differnew file mode 100644 index 00000000..dd3393fa --- /dev/null +++ b/tests/ref/math-at-par-end.png diff --git a/tests/ref/math-at-par-start.png b/tests/ref/math-at-par-start.png Binary files differnew file mode 100644 index 00000000..d69b214a --- /dev/null +++ b/tests/ref/math-at-par-start.png diff --git a/tests/ref/math-consecutive.png b/tests/ref/math-consecutive.png Binary files differnew file mode 100644 index 00000000..63209657 --- /dev/null +++ b/tests/ref/math-consecutive.png diff --git a/tests/ref/math-linebreaking-empty.png b/tests/ref/math-linebreaking-empty.png Binary files differindex 8fd4dbb9..2b0917a6 100644 --- a/tests/ref/math-linebreaking-empty.png +++ b/tests/ref/math-linebreaking-empty.png diff --git a/tests/suite/math/equation.typ b/tests/suite/math/equation.typ index dd2745d1..dddba501 100644 --- a/tests/suite/math/equation.typ +++ b/tests/suite/math/equation.typ @@ -210,3 +210,8 @@ $ <quadratic> // Error: 14-24 cannot reference equation without numbering // Hint: 14-24 you can enable equation numbering with `#set math.equation(numbering: "1.")` Looks at the @quadratic formula. + +--- issue-3696-equation-rtl --- +#set page(width: 150pt) +#set text(lang: "he") +תהא סדרה $a_n$: $[a_n: 1, 1/2, 1/3, dots]$ diff --git a/tests/suite/math/interactions.typ b/tests/suite/math/interactions.typ index 37185962..f5a3218c 100644 --- a/tests/suite/math/interactions.typ +++ b/tests/suite/math/interactions.typ @@ -34,6 +34,26 @@ $#here[f] := #here[Hi there]$. // Test boxes with a baseline are respected #box(stroke: 0.2pt, $a #box(baseline:0.5em, stroke: 0.2pt, $a$)$) +--- math-at-par-start --- +// Test that equation at start of paragraph works fine. +$x$ is a variable. + +--- math-at-par-end --- +// Test that equation at end of paragraph works fine. +One number is $1$ + +--- math-at-line-start --- +// Test math at the natural end of a line. +#h(60pt) Number $1$ exists. + +--- math-at-line-end --- +// Test math at the natural end of a line. +#h(50pt) Number $1$ exists. + +--- math-consecutive --- +// Test immediately consecutive equations. +$x$$y$ + --- issue-2821-missing-fields --- // Issue #2821: Setting a figure's supplement to none removes the field #show figure.caption: it => { |
