From 7597b997890647aa0546ec7bfef1eae4e33cedcb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 25 Feb 2023 19:14:08 +0100 Subject: New default style --- docs/src/general/changelog.md | 11 ++++++++++- docs/src/reference/styling.md | 3 +-- docs/src/tutorial/2-formatting.md | 8 ++++---- 3 files changed, 15 insertions(+), 7 deletions(-) (limited to 'docs/src') diff --git a/docs/src/general/changelog.md b/docs/src/general/changelog.md index 6d3ad42f..b9f5c8d2 100644 --- a/docs/src/general/changelog.md +++ b/docs/src/general/changelog.md @@ -5,7 +5,16 @@ description: | --- # Changelog -## Unreleased +## February 25, 2023 +- Font changes + - New default font: Linux Libertine + - New default font for raw blocks: DejaVu Sans Mono + - New default font for math: Book weight of New Computer Modern Math + - Lots of new math fonts available + - Removed Latin Modern fonts in favor of New Computer Modern family + - Removed unnecessary smallcaps fonts which are already accessible through + the corresponding main font and the [`smallcaps`]($func/smallcaps) function +- Improved default spacing for headings - Added [`panic`]($func/panic) function - Added [`clusters`]($type/string.clusters) and [`codepoints`]($type/string.codepoints) methods for strings diff --git a/docs/src/reference/styling.md b/docs/src/reference/styling.md index 8e3937b4..a8e38b4f 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("Latin Modern Roman") +#set text("New Computer Modern") #set heading(numbering: "I.") = Introduction @@ -131,7 +131,6 @@ to: See the documentation of the [`label` function]($func/label) for more details. ```example -#set text("Noto Serif") #show "Project": smallcaps #show "badly": "great" diff --git a/docs/src/tutorial/2-formatting.md b/docs/src/tutorial/2-formatting.md index dd0352bd..4c9704ef 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, "Latin Modern Roman") +#set text(10pt, "New Computer Modern") #set page( "a6", margin: (x: 1.8cm, y: 1.5cm), @@ -151,7 +151,7 @@ We could also have specified separate margins for each side by passing a dictionary with the keys `{left}`, `{right}`, `{top}`, and `{bottom}`. Next is the set [`text`]($func/text) set rule. Here, we set the font size to -`{10pt}` and font family to `{"Latin Modern Roman"}`. The Typst app comes with +`{10pt}` and font family to `{"New Computer Modern"}`. The Typst app comes with many fonts that you can try for your document. When you are in the text function's argument list, you can discover the available fonts in the autocomplete panel. @@ -171,7 +171,7 @@ can do this by setting the `numbering` parameter of the [`heading`]($func/heading) function. ```example ->>> #set text("Latin Modern Roman") +>>> #set text("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("Latin Modern Roman") +>>> #set text("New Computer Modern") #set heading(numbering: "1.a") = Introduction -- cgit v1.2.3