summaryrefslogtreecommitdiff
path: root/docs/src/tutorial/4-template.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/tutorial/4-template.md')
-rw-r--r--docs/src/tutorial/4-template.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/tutorial/4-template.md b/docs/src/tutorial/4-template.md
index 61116a7e..c97ebbc9 100644
--- a/docs/src/tutorial/4-template.md
+++ b/docs/src/tutorial/4-template.md
@@ -67,7 +67,7 @@ that content block.
```example
#let template(doc) = [
- #set text("Inria Serif")
+ #set text(font: "Inria Serif")
#show "something cool": [Typst]
#doc
]
@@ -86,7 +86,7 @@ previous chapter.
```example
#let conf(title, doc) = {
- set text(11pt, "Linux Libertine")
+ set text(font: "Linux Libertine", 11pt)
set par(justify: true)
set page(
paper: "us-letter",
@@ -266,7 +266,7 @@ path of the file after the `{from}` keyword.
>>> abstract: [],
>>> doc,
>>> ) = {
->>> set text(11pt, "Linux Libertine")
+>>> set text(font: "Linux Libertine", 11pt)
>>> set par(justify: true)
>>> set page(
>>> "us-letter",