Skip to content

Commit 153743b

Browse files
committed
upgrade libs.
1 parent 868f751 commit 153743b

File tree

6 files changed

+28
-22
lines changed

6 files changed

+28
-22
lines changed

demo-ds.pdf

-145 KB
Binary file not shown.

demo-ds.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "tids.typ": tids
2-
#import "@preview/gentle-clues:0.6.0": warning
2+
#import "@preview/gentle-clues:1.1.0": *
33

44
#let metadata = (
55
title: [FXC1117 Flux Capacitor],

demo-ds.zh.pdf

-217 KB
Binary file not shown.

demo-ds.zh.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#import "tids.zh.typ": tids
2-
#import "@preview/gentle-clues:0.6.0": warning
1+
#import "tids.typ": tids
2+
#import "@preview/gentle-clues:1.1.0": *
33

44
#let metadata = (
55
title: [FXC1117 通量电容器],

tids.typ

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#import "@preview/cetz:0.1.2": canvas, plot
1+
#import "@preview/cetz:0.3.1": canvas
2+
#import "@preview/cetz-plot:0.1.0": plot, chart
23

34
#let company_info = (
45
name: "Mingshu Semiconductors Inc.",
@@ -16,13 +17,13 @@
1617
), features: [], applications: [], desc: [], rev_list: [], doc: []) = {
1718

1819
let fonts = (
19-
serif: ("Times New Roman", "Source Serif", "Liberation Serif"),
20-
sans: ("Dejavu Sans", "Arial", "Helvetica Neue", "Helvetica", "Source Sans"),
21-
mono: ("Consolas", "Source Mono"),
20+
serif: ("Times New Roman", "Noto Serif", "Liberation Serif"),
21+
sans: ("Dejavu Sans", "Arial", "Noto Sans"),
22+
mono: ("Consolas", "Noto Sans Mono"),
2223
text: ("Arial", "Dejavu Sans"),
2324
text_strong: ("Arial", "Dejavu Sans"),
24-
headings: ("Arial", "Dejavu Sans", "Helvetica Neue", "Helvetica"),
25-
code: ("Source Mono"),
25+
headings: ("Arial", "Dejavu Sans"),
26+
code: ("Consolas", "Noto Sans Mono"),
2627
)
2728

2829
set text(font: fonts.text, size: 11pt)
@@ -88,7 +89,8 @@
8889
line(length: 100%, stroke: 1pt)
8990
v(-0.65em)
9091
set text(10pt, baseline: 0pt)
91-
locate(loc => if calc.odd(loc.page()) {
92+
context {
93+
if calc.odd(here().page()) {
9294
grid(
9395
columns: (5fr, 1fr),
9496
rows: (auto),
@@ -113,10 +115,10 @@
113115
Copyright © #link(company_info.website_url)[#company_info.name]],
114116
)
115117
}
116-
)
118+
}
117119
}
118120

119-
let current_chapter() = locate(loc => {
121+
let current_chapter() = context {
120122
let elems = query(
121123
heading.where(level:2).before(loc),
122124
loc,
@@ -125,7 +127,7 @@
125127
let elem = elems.last()
126128
h(1fr) + emph(counter(heading).at(loc).map(str).join(".") + h(.75em) + elem.body) + h(1fr)
127129
}
128-
})
130+
}
129131

130132
let afterwords_page() = {
131133

@@ -169,7 +171,8 @@
169171
footer-descent: 2em,
170172
header: [
171173
#set text(10pt)
172-
#locate(loc => if calc.odd(loc.page()) {
174+
#context {
175+
if calc.odd(here().page()) {
173176
grid(
174177
columns: (1fr, 1fr),
175178
rows: (100%),
@@ -202,7 +205,7 @@
202205
],
203206
)
204207
}
205-
)
208+
}
206209
#v(-0.65em)
207210
#line(length: 100%, stroke: 1pt)
208211
],

tids.zh.typ

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#import "@preview/cetz:0.1.2": canvas, plot
1+
#import "@preview/cetz:0.3.1": canvas
2+
#import "@preview/cetz-plot:0.1.0": plot, chart
23

34
#let company_info = (
45
name: "命数半导电股份有限公司",
@@ -16,11 +17,11 @@
1617

1718
let fonts = (
1819
serif: ("Source Han Serif", "Liberation Serif"),
19-
sans: ("Source Han Sans", "Helvetica Neue", "Helvetica"),
20+
sans: ("Source Han Sans"),
2021
mono: ("Source Han Mono"),
2122
text: ("Source Han Serif", "Liberation Serif"),
2223
text_strong: ("Source Han Sans"),
23-
headings: ("Source Han Sans", "Helvetica Neue", "Helvetica"),
24+
headings: ("Source Han Sans"),
2425
code: ("Source Han Mono"),
2526
)
2627

@@ -87,7 +88,8 @@
8788
line(length: 100%, stroke: 1pt)
8889
v(-0.65em)
8990
set text(10pt, baseline: 0pt)
90-
locate(loc => if calc.odd(loc.page()) {
91+
context {
92+
if calc.odd(here().page()) {
9193
grid(
9294
columns: (5fr, 1fr),
9395
rows: (auto),
@@ -112,7 +114,7 @@
112114
Copyright © #link(company_info.website_url)[#company_info.name]],
113115
)
114116
}
115-
)
117+
}
116118
}
117119

118120
let current_chapter() = locate(loc => {
@@ -168,7 +170,8 @@
168170
footer-descent: 2em,
169171
header: [
170172
#set text(10pt)
171-
#locate(loc => if calc.odd(loc.page()) {
173+
#context {
174+
if calc.odd(loc.page()) {
172175
grid(
173176
columns: (1fr, 1fr),
174177
rows: (100%),
@@ -201,7 +204,7 @@
201204
],
202205
)
203206
}
204-
)
207+
}
205208
#v(-0.65em)
206209
#line(length: 100%, stroke: 1pt)
207210
],

0 commit comments

Comments
 (0)