diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-05-17 10:36:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-17 08:36:07 +0000 |
| commit | 2188a4bf48d802b516f4721a02a7b080edc8f46d (patch) | |
| tree | baacf34d2a79b5ff117aa7e0552703a984f7bed3 /tests/suite | |
| parent | 4ae376f2c7ba9621479640afbe45936c6c859cff (diff) | |
Fix equations in RTL text (#4150)
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/math/equation.typ | 5 | ||||
| -rw-r--r-- | tests/suite/math/interactions.typ | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/suite/math/equation.typ b/tests/suite/math/equation.typ index d5771f95..d4fba36b 100644 --- a/tests/suite/math/equation.typ +++ b/tests/suite/math/equation.typ @@ -224,3 +224,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 03d5a6e7..9a9b13ec 100644 --- a/tests/suite/math/interactions.typ +++ b/tests/suite/math/interactions.typ @@ -35,6 +35,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 => { |
