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/2-formatting.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/src/tutorial/2-formatting.md') 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 -- cgit v1.2.3