-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabel.typ
More file actions
70 lines (67 loc) · 1.07 KB
/
label.typ
File metadata and controls
70 lines (67 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#import "barcode.typ": *
#let hi-vis-text(
content
) = {
set text()
text(
size: 7pt,
font: "Jetbrains Mono",
weight: 700,
)[#content]
}
#let label(
content,
) = {
set text(
font: ("IBM Plex Sans", "Noto Sans CJK SC"),
hyphenate: false,
)
let content = upper(content)
box(
inset: 0.25cm,
grid(
columns: 2,
gutter: 0.2cm,
align: horizon,
barcode(content),
box(
[
#set text(size: 6pt, weight: 700)
网络开拓者协会资产
#linebreak()
#set text(size: 6pt, weight: 500)
BITNP Property
#linebreak()
#hi-vis-text(
content,
)
]
),
)
)
}
#let double-side(
content,
) = {
set text(
font: ("IBM Plex Sans", "Noto Sans CJK SC"),
hyphenate: false,
)
let content = upper(content)
table(
columns: 3,
inset: 0cm,
stroke: 0pt,
label(content),
box(
inset: (
left: 2.3cm,
),
),
rotate(
180deg,
)[
#label(content)
],
)
}