-
Notifications
You must be signed in to change notification settings - Fork 1
/
doc-fonts-noto-sans.saty
106 lines (100 loc) · 5.62 KB
/
doc-fonts-noto-sans.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@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};
author = {Yuito Murase};
show-title = true;
show-toc = false;
|) '<
+p{Note: Currently, SATySFi doesn't work with fonts-noto-sans:NotoSans-ExtraCondensed\* fonts. You should avoid using those fonts at the moment.}
+show-latin-font(`fonts-noto-sans:NotoSans-Black`);
+show-latin-font(`fonts-noto-sans:NotoSans-BlackItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-Bold`);
+show-latin-font(`fonts-noto-sans:NotoSans-BoldItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-Condensed`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedBlack`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedBlackItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedBold`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedBoldItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedExtraBold`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedExtraBoldItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedExtraLight`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedExtraLightItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedLight`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedLightItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedMedium`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedMediumItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedSemiBold`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedSemiBoldItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedThin`);
+show-latin-font(`fonts-noto-sans:NotoSans-CondensedThinItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-ExtraLight`);
+show-latin-font(`fonts-noto-sans:NotoSans-ExtraLightItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-Italic`);
+show-latin-font(`fonts-noto-sans:NotoSans-Light`);
+show-latin-font(`fonts-noto-sans:NotoSans-LightItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-Medium`);
+show-latin-font(`fonts-noto-sans:NotoSans-MediumItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-Regular`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiBold`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiBoldItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensed`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedBlack`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedBlackItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedBold`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedBoldItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedExtraBold`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedExtraBoldItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedExtraLight`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedExtraLightItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedLight`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedLightItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedMedium`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedMediumItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedSemiBold`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedSemiBoldItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedThin`);
+show-latin-font(`fonts-noto-sans:NotoSans-SemiCondensedThinItalic`);
+show-latin-font(`fonts-noto-sans:NotoSans-Thin`);
+show-latin-font(`fonts-noto-sans:NotoSans-ThinItalic`);
>