diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:43:03 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:44:24 +0100 |
| commit | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (patch) | |
| tree | 682124c2343db9491c84bddbdca026c676f220c6 /docs/src/tutorial/4-template.md | |
| parent | 25b5bd117529cd04bb789e1988eb3a3db8025a0e (diff) | |
Require font to be a named argument
Diffstat (limited to 'docs/src/tutorial/4-template.md')
| -rw-r--r-- | docs/src/tutorial/4-template.md | 6 |
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", |
