diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/src/reference/styling.md | 4 | ||||
| -rw-r--r-- | docs/src/tutorial/2-formatting.md | 6 | ||||
| -rw-r--r-- | docs/src/tutorial/3-advanced.md | 16 | ||||
| -rw-r--r-- | docs/src/tutorial/4-template.md | 6 |
4 files changed, 16 insertions, 16 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 \~ ] 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 diff --git a/docs/src/tutorial/3-advanced.md b/docs/src/tutorial/3-advanced.md index 49eb8e31..0e337d86 100644 --- a/docs/src/tutorial/3-advanced.md +++ b/docs/src/tutorial/3-advanced.md @@ -50,7 +50,7 @@ to learn some new tricks. Let's start by writing some set rules for the document. ```example -#set text(11pt, "Linux Libertine") +#set text(font: "Linux Libertine", 11pt) #set par(justify: true) #set page( @@ -97,7 +97,7 @@ align it and increase its font weight by enclosing it in `[*stars*]`. ```example >>> #set page(width: 300pt, margin: 30pt) ->>> #set text(11pt, "Linux Libertine") +>>> #set text(font: "Linux Libertine", 11pt) #align(center, text(17pt)[ *A fluid dynamic model for glacier flow* @@ -111,7 +111,7 @@ supervisor, we'll add our own and their name. ```example >>> #set page(width: 300pt, margin: 30pt) ->>> #set text(11pt, "Linux Libertine") +>>> #set text(font: "Linux Libertine", 11pt) >>> >>> #align(center, text(17pt)[ >>> *A fluid dynamic model @@ -148,7 +148,7 @@ Now, let's add the abstract. Remember that the conference wants the abstract to be set ragged and centered. ```example:0,0,612,317.5 ->>> #set text(11pt, "Linux Libertine") +>>> #set text(font: "Linux Libertine", 11pt) >>> #set par(justify: true) >>> #set page( >>> "us-letter", @@ -210,7 +210,7 @@ keyword: <<< ... ->>> #set text(11pt, "Linux Libertine") +>>> #set text(font: "Linux Libertine", 11pt) >>> #set par(justify: true) #set page( >>> "us-letter", @@ -280,7 +280,7 @@ content. In our case, it passes it on to the `columns` function. >>> for glacier flow >>> ] >>> ->>> #set text(11pt, "Linux Libertine") +>>> #set text(font: "Linux Libertine", 11pt) >>> #set par(justify: true) >>> #set page( >>> "us-letter", @@ -342,7 +342,7 @@ a way to set any of that, we need to write our own heading show rule. >>> for glacier flow >>> ] >>> ->>> #set text(11pt, "Linux Libertine") +>>> #set text(font: "Linux Libertine", 11pt) >>> #set par(justify: true) >>> #set page( >>> "us-letter", @@ -421,7 +421,7 @@ differentiate between section and subsection headings: >>> for glacier flow >>> ] >>> ->>> #set text(11pt, "Linux Libertine") +>>> #set text(font: "Linux Libertine", 11pt) >>> #set par(justify: true) >>> #set page( >>> "us-letter", 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", |
