From 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 8 Mar 2023 10:43:03 +0100 Subject: Require font to be a named argument --- docs/src/tutorial/3-advanced.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/src/tutorial/3-advanced.md') 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", -- cgit v1.2.3