From b4584eae3358e66f7ab0b63e495fe78887a3c599 Mon Sep 17 00:00:00 2001 From: szdytom Date: Wed, 9 Jul 2025 14:40:38 +0800 Subject: [PATCH] change & update fonts Signed-off-by: szdytom --- build.toml | 12 ++++++++---- math.typ | 3 +++ styles.typ | 5 ++++- 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 math.typ diff --git a/build.toml b/build.toml index 53e0884..0699633 100644 --- a/build.toml +++ b/build.toml @@ -7,12 +7,16 @@ url = "https://github.com/notofonts/noto-cjk/releases/download/Sans2.004/08_Noto patterns = [".otf"] [[fonts]] -url = "https://github.com/TrionesType/zhuque/releases/download/v0.211/ZhuqueFangsong-v0.211.zip" +url = "https://github.com/TrionesType/zhuque/releases/download/v0.212/ZhuqueFangsong-v0.212.zip" patterns = [".ttf"] -#[[fonts]] -#url = "https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip" -#patterns = [".ttf"] +[[fonts]] +url = "https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip" +patterns = [".ttf"] + +[[fonts]] +url = "https://mirrors.ctan.org/fonts/concmath-otf.zip" +patterns = [".otf"] [typst] version = "0.13.1" diff --git a/math.typ b/math.typ new file mode 100644 index 0000000..ed2e515 --- /dev/null +++ b/math.typ @@ -0,0 +1,3 @@ +#let ee = "e" +#let ii = "i" +#let span = $op("span")$ \ No newline at end of file diff --git a/styles.typ b/styles.typ index 6787faf..37984cf 100644 --- a/styles.typ +++ b/styles.typ @@ -9,6 +9,7 @@ #let zhfont_serif = ("Noto Serif CJK SC",) #let zhfont_fangsong = ("Zhuque Fangsong (technical preview)", "Noto Serif CJK SC") #let monofont = ("Fira Code",) +#let mathfont = ("Concrete Math", ..zhfont_serif) #let tab = h(2em) #let halftab = h(1em) @@ -99,7 +100,8 @@ bottom: 4pt + theme_color_set.at("10") )) set footnote(numbering: "注1") - show math.equation: set text(font: ("New Computer Modern Math", ..zhfont_serif)) + show math.equation: set text(font: mathfont) + hide[#title ] body @@ -249,6 +251,7 @@ h(1fr) text(sym.square.filled, fill: theme_color_set.at("60")) } + place.flush() } #let ploting-styles = (