-
Notifications
You must be signed in to change notification settings - Fork 1
/
doc-fonts-noto-sans-cjk-jp.saty
65 lines (56 loc) · 2.53 KB
/
doc-fonts-noto-sans-cjk-jp.saty
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
@require: stdjabook
@require: code
@require: itemize
@require: math
@require: base/block
@require: base/inline
let lorem = {Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}
let lemon = {あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。}
let mathexample = {${\abs{\mathrm{Orb}_G\(x\)} \cdot \abs{\mathrm{Stab}_G\(x\)} = \abs{G}}}
let make-heading fontname ctx =
ctx |> set-paragraph-margin 30pt 0pt
|> set-font-size 14pt
|> Block.of-inline ?:(true) true false (Inline.of-string fontname)
let-block ctx +show-math-font name =
let heading = ctx |> make-heading name
in
let example = ctx
|> set-math-font name
|> Block.of-inline ?:(true) true true (Inline.read mathexample)
in
Block.concat [heading; example]
let-block ctx +show-cjk-font name =
let heading = ctx |> make-heading name
in
let example = ctx
|> set-font HanIdeographic (name, 1., 0.)
|> set-font Kana (name, 1., 0.)
|> Block.of-inline ?:(true) true true (Inline.read lemon)
in
Block.concat [heading; example]
let-block ctx +show-latin-font name =
let heading = ctx |> make-heading name
in
let example = ctx
|> set-font Latin (name, 1., 0.)
|> set-font OtherScript (name, 1., 0.)
|> Block.of-inline ?:(true) true true (Inline.read lorem)
in
Block.concat [heading; example]
in
document (|
title = {\SATySFi;-fonts-noto-sans-cjk-jp};
author = {Yuito Murase};
show-title = true;
show-toc = false;
|) '<
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansCJKjp-Black`);
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansCJKjp-Bold`);
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansCJKjp-DemiLight`);
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansCJKjp-Light`);
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansCJKjp-Medium`);
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansCJKjp-Regular`);
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansCJKjp-Thin`);
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansMonoCJKjp-Bold`);
+show-cjk-font(`fonts-noto-sans-cjk-jp:NotoSansMonoCJKjp-Regular`);
>