summaryrefslogtreecommitdiff
path: root/docs/src/reference/styling.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/reference/styling.md
parent25b5bd117529cd04bb789e1988eb3a3db8025a0e (diff)
Require font to be a named argument
Diffstat (limited to 'docs/src/reference/styling.md')
-rw-r--r--docs/src/reference/styling.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/reference/styling.md b/docs/src/reference/styling.md
index a8e38b4f..cdc47f29 100644
--- a/docs/src/reference/styling.md
+++ b/docs/src/reference/styling.md
@@ -20,7 +20,7 @@ settable parameters. In the example below, we use two set rules to change the
[heading numbering]($func/heading.numbering) style.
```example
-#set text("New Computer Modern")
+#set text(font: "New Computer Modern")
#set heading(numbering: "I.")
= Introduction
@@ -85,8 +85,8 @@ fantasy encyclopedia.
#set heading(numbering: "(I)")
#show heading: it => block[
#set align(center)
- #set text("Inria Serif")
\~ _#it.title;_
+ #set text(font: "Inria Serif")
#it.numbers \~
]