forked from dainachiba/RiichiBooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pie2e.sty
120 lines (105 loc) · 2.93 KB
/
pie2e.sty
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
% pie2e.sty Feb. 19, 1998 Shun-ichi Ito
% (Takayuki Yamaizumi さん作 ``pie.sty'' を LaTeX 2e 用に改変)
% pie.sty にあって pie2e.sty にないマクロ定義を復活させてみました。
% (March 9, 1998 Takayuki Yamaizumi)
% Modified by Michał "phoe" Herda, October 1, 2019.
%
% \usepackage{pie2e}
\DeclareRobustCommand\piefamily{%
\not@math@alphabet\piefamily\relax
\fontencoding{U}\fontfamily{pie}\selectfont}
\DeclareTextFontCommand{\textpie}{\piefamily}
\def\suo#1{{\@tempcnta=#1%
\piefamily\symbol{\@tempcnta}}}
\def\yisuo{\suo{1}}
\def\ersuo{\suo{2}}
\def\sansuo{\suo{3}}
\def\sisuo{\suo{4}}
\def\wusuo{\suo{5}}
\def\liusuo{\suo{6}}
\def\qisuo{\suo{7}}
\def\pasuo{\suo{8}}
\def\jiusuo{\suo{9}}
\def\chiwusuo{\suo{0}}
\def\rsuo#1{{\@tempcnta=#1\advance\@tempcnta 40%
\piefamily\symbol{\@tempcnta}}}
\def\ryisuo{\rsuo{1}}
\def\rersuo{\rsuo{2}}
\def\rsansuo{\rsuo{3}}
\def\rsisuo{\rsuo{4}}
\def\rwusuo{\rsuo{5}}
\def\rliusuo{\rsuo{6}}
\def\rqisuo{\rsuo{7}}
\def\rpasuo{\rsuo{8}}
\def\rjiusuo{\rsuo{9}}
\def\rchiwusuo{\rsuo{0}}
\def\tong#1{{\@tempcnta=#1\advance\@tempcnta 10%
\piefamily\symbol{\@tempcnta}}}
\def\yitong{\tong{1}}
\def\ertong{\tong{2}}
\def\santong{\tong{3}}
\def\sitong{\tong{4}}
\def\wutong{\tong{5}}
\def\liutong{\tong{6}}
\def\qitong{\tong{7}}
\def\patong{\tong{8}}
\def\jiutong{\tong{9}}
\def\chiwutong{\tong{0}}
\def\rtong#1{{\@tempcnta=#1\advance\@tempcnta 50%
\piefamily\symbol{\@tempcnta}}}
\def\ryitong{\rtong{1}}
\def\rertong{\rtong{2}}
\def\rsantong{\rtong{3}}
\def\rsitong{\rtong{4}}
\def\rwutong{\rtong{5}}
\def\rliutong{\rtong{6}}
\def\rqitong{\rtong{7}}
\def\rpatong{\rtong{8}}
\def\rjiutong{\rtong{9}}
\def\rchiwutong{\rtong{0}}
\def\wan#1{{\@tempcnta=#1\advance\@tempcnta 20%
\piefamily\symbol{\@tempcnta}}}
\def\yiwan{\wan{1}}
\def\erwan{\wan{2}}
\def\sanwan{\wan{3}}
\def\siwan{\wan{4}}
\def\wuwan{\wan{5}}
\def\liuwan{\wan{6}}
\def\qiwan{\wan{7}}
\def\pawan{\wan{8}}
\def\jiuwan{\wan{9}}
\def\chiwuwan{\wan{0}}
\def\rwan#1{{\@tempcnta=#1\advance\@tempcnta 60%
\piefamily\symbol{\@tempcnta}}}
\def\ryiwan{\rwan{1}}
\def\rerwan{\rwan{2}}
\def\rsanwan{\rwan{3}}
\def\rsiwan{\rwan{4}}
\def\rwuwan{\rwan{5}}
\def\rliuwan{\rwan{6}}
\def\rqiwan{\rwan{7}}
\def\rpawan{\rwan{8}}
\def\rjiuwan{\rwan{9}}
\def\rchiwuwan{\rwan{0}}
\def\dong{{\piefamily\symbol{31}}}
\def\nan{{\piefamily\symbol{32}}}
\def\xi{{\piefamily\symbol{33}}}
\def\bei{{\piefamily\symbol{34}}}
\def\rdong{{\piefamily\symbol{71}}}
\def\rnan{{\piefamily\symbol{72}}}
\def\rxi{{\piefamily\symbol{73}}}
\def\rbei{{\piefamily\symbol{74}}}
\def\bai{{\piefamily\symbol{35}}}
\def\fa{{\piefamily\symbol{36}}}
\def\zhong{{\piefamily\symbol{37}}}
\def\rbai{{\piefamily\symbol{75}}}
\def\rfa{{\piefamily\symbol{76}}}
\def\rzhong{{\piefamily\symbol{77}}}
\def\ura{{\piefamily\symbol{30}}}
\def\rura{{\piefamily\symbol{70}}}
\def\kotsu#1{#1#1#1}
\def\minkan#1{#1#1#1#1}
\def\ankan#1{\ura#1#1\ura}
\def\toitsu#1{#1#1}
\def\atama#1{#1#1}
\endinput