summaryrefslogtreecommitdiff
path: root/tests/typ/math
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-08 10:43:03 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-08 10:44:24 +0100
commit1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (patch)
tree682124c2343db9491c84bddbdca026c676f220c6 /tests/typ/math
parent25b5bd117529cd04bb789e1988eb3a3db8025a0e (diff)
Require font to be a named argument
Diffstat (limited to 'tests/typ/math')
-rw-r--r--tests/typ/math/content.typ2
-rw-r--r--tests/typ/math/op.typ2
-rw-r--r--tests/typ/math/style.typ2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/typ/math/content.typ b/tests/typ/math/content.typ
index dc0ec85c..2e680671 100644
--- a/tests/typ/math/content.typ
+++ b/tests/typ/math/content.typ
@@ -15,5 +15,5 @@ $ x := #table(columns: 2)[x][y]/mat(1, 2, 3)
---
// Test font switch.
-#let here = text.with("Noto Sans")
+#let here = text.with(font: "Noto Sans")
$#here[f] := #here[Hi there]$.
diff --git a/tests/typ/math/op.typ b/tests/typ/math/op.typ
index 882a7c4a..2a1c2044 100644
--- a/tests/typ/math/op.typ
+++ b/tests/typ/math/op.typ
@@ -11,7 +11,7 @@ $ &sin x + log_2 x \
---
// Test scripts vs limits.
-#set text("New Computer Modern")
+#set text(font: "New Computer Modern")
Discuss $lim_(n->oo) 1/n$ now.
$ lim_(n->infinity) 1/n = 0 $
diff --git a/tests/typ/math/style.typ b/tests/typ/math/style.typ
index 22851900..017c62f2 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(family: "Fira Math")
+#show math.formula: set text(font: "Fira Math")
$ v := vec(1 + 2, 2 - 4, sqrt(3), arrow(x)) + 1 $