diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-18 19:27:31 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-18 19:27:31 +0100 |
| commit | a69b5874558eb50c96293813cbe67aac38174644 (patch) | |
| tree | c59e671a4f73b467fc1f7f4de1d01ed6cfe24afe /tests | |
| parent | a16726ae6652a795ff24f368ca25f93bae673366 (diff) | |
Rename formula to equation
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/compiler/content-field.typ | 6 | ||||
| -rw-r--r-- | tests/typ/math/content.typ | 2 | ||||
| -rw-r--r-- | tests/typ/math/style.typ | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/typ/compiler/content-field.typ b/tests/typ/compiler/content-field.typ index 0eeee458..b67c090d 100644 --- a/tests/typ/compiler/content-field.typ +++ b/tests/typ/compiler/content-field.typ @@ -1,6 +1,6 @@ // Integrated test for content fields. -#let compute(formula, ..vars) = { +#let compute(equation, ..vars) = { let vars = vars.named() let f(node) = { let func = node.func() @@ -28,14 +28,14 @@ .fold(0, (sum, v) => sum + v) } } - let result = f(formula.body) + let result = f(equation.body) [With ] vars .pairs() .map(p => $#p.first() = #p.last()$) .join(", ", last: " and ") [ we have:] - $ formula = result $ + $ equation = result $ } #compute($x y + y^2$, x: 2, y: 3) diff --git a/tests/typ/math/content.typ b/tests/typ/math/content.typ index 2e680671..a36960ff 100644 --- a/tests/typ/math/content.typ +++ b/tests/typ/math/content.typ @@ -10,7 +10,7 @@ $ sum_(i=#emoji.apple)^#emoji.apple.red i + monkey/2 $ $ x := #table(columns: 2)[x][y]/mat(1, 2, 3) = #table[A][B][C] $ --- -// Test non-formula math directly in content. +// Test non-equation math directly in content. #math.attach($a$, top: [b]) --- diff --git a/tests/typ/math/style.typ b/tests/typ/math/style.typ index 017c62f2..45704d80 100644 --- a/tests/typ/math/style.typ +++ b/tests/typ/math/style.typ @@ -26,5 +26,5 @@ $text(#red, "time"^2) + sqrt("place")$ --- // Test different font. -#show math.formula: set text(font: "Fira Math") +#show math.equation: set text(font: "Fira Math") $ v := vec(1 + 2, 2 - 4, sqrt(3), arrow(x)) + 1 $ |
