summaryrefslogtreecommitdiff
path: root/docs/src/tutorial/2-formatting.md
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 /docs/src/tutorial/2-formatting.md
parent25b5bd117529cd04bb789e1988eb3a3db8025a0e (diff)
Require font to be a named argument
Diffstat (limited to 'docs/src/tutorial/2-formatting.md')
-rw-r--r--docs/src/tutorial/2-formatting.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/tutorial/2-formatting.md b/docs/src/tutorial/2-formatting.md
index 4c9704ef..ed166db0 100644
--- a/docs/src/tutorial/2-formatting.md
+++ b/docs/src/tutorial/2-formatting.md
@@ -100,7 +100,7 @@ Let's add a few more styles to our document. We want larger margins and a serif
font. For the purposes of the example, we'll also set another page size.
```example
-#set text(10pt, "New Computer Modern")
+#set text(font: "New Computer Modern", 10pt)
#set page(
"a6",
margin: (x: 1.8cm, y: 1.5cm),
@@ -171,7 +171,7 @@ can do this by setting the `numbering` parameter of the
[`heading`]($func/heading) function.
```example
->>> #set text("New Computer Modern")
+>>> #set text(font: "New Computer Modern")
#set heading(numbering: "1.")
= Introduction
@@ -190,7 +190,7 @@ each level. We can also use
[letters, roman numerals, and symbols]($func/numbering) for our headings:
```example
->>> #set text("New Computer Modern")
+>>> #set text(font: "New Computer Modern")
#set heading(numbering: "1.a")
= Introduction