-
Notifications
You must be signed in to change notification settings - Fork 11
/
RiichiBook1.tex
246 lines (187 loc) · 6.91 KB
/
RiichiBook1.tex
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
%Preamble ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\documentclass{book}
\makeindex %mendex RiichiBook1.idx
% Put "\thispagestyle{empty}" in RiichiBook1.ind
% Font
\usepackage{pie2e} % Printing mahjong tiles (from the piemf package)
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{blindtext,tgpagella,textcomp,amsmath,tipa,lipsum,eurosym}
% graphic commands
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{graphicx, graphics,color,wrapfig,tikz}
\usepackage[abs]{overpic}
\usepackage[dvipdfmx]{pict2e}
\usepackage[dvipdfmx,colorlinks=true, urlcolor={blue!50!blue}, citecolor={blue!50!blue}, linkcolor={MyBlue}]{hyperref}
% To remove page numbers from TOC
%\let\Contentsline\contentsline
%\renewcommand\contentsline[3]{\Contentsline{#1}{#2}{}}
%\makeatletter
%\renewcommand{\@dotsep}{10000}
\makeatother
% Space, Header, section structure
\setcounter{tocdepth}{1} %\setcounter{secnumdepth}{1}
\usepackage{fancyhdr}
\usepackage[hang,bottom]{footmisc}
\usepackage{setspace,placeins,sectsty,appendix,makeidx,psfrag,lscape,bxascmac,verbatim,multicol}
\setlength{\footskip}{30pt}
%Paper size: A5
\usepackage[11pt]{extsizes}
\usepackage[paperwidth=148mm, paperheight=210mm, top=15mm, bottom = 15mm, inner=18mm, outer = 15mm]{geometry}
\special{papersize=148mm,210mm}
% customizing section titles
\usepackage{titlesec}
\partfont{\raggedright\mdseries\scshape}
\titleformat{\chapter}[display]{\bf\LARGE}{\vspace{-50pt}Chapter \thechapter}{.1em}{}
\titlespacing{\chapter}{0pt}{10pt}{20pt}
\titleformat{\section}[block]{\large\bfseries\filcenter}{\fbox{\thesection}}{1em}{}
\titlespacing{\section}{0pt}{10pt}{10pt}
\titleformat{\subsection}{\bf}{\thesubsection}{1em}{}
\titlespacing{\subsection}{0pt}{10pt}{2pt}
\titleformat{\subsubsection}{\bf\it}{}{0em}{}
\titlespacing{\subsubsection}{0pt}{10pt}{5pt}
% Table & figure
\usepackage{tabularx, tabulary, booktabs, dcolumn, threeparttable, longtable, multirow,colortbl,wallpaper,floatflt,caption}
%\usepackage{float} \floatstyle{plaintop} \restylefloat{table}
% Define Colors
\definecolor{MyBlue}{RGB}{5,113,176} \definecolor{MyRed}{RGB}{202,0,32}
\definecolor{MyGreen}{RGB}{77,175,74}
% Font for Japanese terms
\newcommand{\jap}{\tt}
% Mahjong tile display
\newenvironment{pierei}{\center \Huge }{\endcenter}
\newcommand{\bp}{\begin{pierei}}
\newcommand{\ep}{\end{pierei}}
\newenvironment{mj}[1]{\begin{equation} #1}{\end{equation}}
\newcommand{\bmj}{\begin{mj}{\text}}
\newcommand{\emj}{\end{mj}}
% Red Five
\def\rfs{{\color{red!75!black} \chiwusuo}} \def\rfd{{\color{red!75!black} \chiwutong}} \def\rfw{{\color{red!75!black} \chiwuwan}}
% List styles
\newcommand{\be}{\begin{enumerate}} \newcommand{\ee}{\end{enumerate}}
\newcommand{\bq}{\begin{quote}} \newcommand{\eq}{\end{quote}}
\newcommand{\bd}{\begin{description}} \newcommand{\ed}{\end{description}}
\newcommand{\bi}{\begin{itemize}} \newcommand{\ei}{\end{itemize}}
\newcommand{\bii}{\begin{itemize}\itemsep1.25em}
\newcommand{\bit}{\begin{itemize}\itemsep2.5em}
\def\i{\item} \def\sep{0.5em}
% Space
\def\vspl{\vspace{20pt}} \def\vsp{\vspace{10pt}} \def\vsps{\vspace{5pt}}
\def\vsptile{\vspace{-18pt}}
% Document information
\title{Riichi Book}
\author{Daina Chiba}
\newcommand{\thetitle}{Riichi Book I: A Mahjong Strategy Primer for European Players}
\newcommand{\theversion}{13}
\newcommand{\thedate}{\today}
%Text from here ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\begin{document}
% Front Matter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\frontmatter
\pagenumbering{roman}
% Cover Page 1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\thispagestyle{empty}
\ThisULCornerWallPaper{1}{figs/cover6.jpg} %2m
\newgeometry{left=11mm,bottom=0.1cm,right=15mm}
\begin{flushleft}
\vspace*{.24\paperheight}
\begin{spacing}{2.5}
\textcolor{White}{\fontsize{2.0cm}{3.6em}\scshape Riichi Book I}\\
{\LARGE A Mahjong Strategy Primer\\for European Players}
\end{spacing}
\vspace*{.08\paperheight}
\hfill {\LARGE Daina Chiba}
\end{flushleft}
\restoregeometry
\thispagestyle{empty}
\mbox{}\newpage
% Title Page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\thispagestyle{empty}
\setcounter{page}{1}
\pagebreak
\onehalfspacing
\begin{flushright}
\vspace*{.18\paperheight}
\begin{spacing}{3}
{\Huge Riichi Book I}\\
{\Large A Mahjong Strategy Primer for European Players}
\end{spacing}
\vspace*{.11\textheight}
%Version
{\Large Version \theversion}\\
\vspace*{.07\textheight}
{\Large
Daina Chiba\\
}
\vfill
\end{flushright}
\pagebreak
% Copyright ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\pagebreak
\thispagestyle{empty}
\noindent
{\small
Copyright \copyright ~2016--2020 Daina Chiba.\\
Permission is granted to copy, distribute, and/or modify this document
under the terms of the Creative Commons Attribution NonCommercial 3.0 Unported License, available at \url{https://bit.ly/1xIMXnA}.
\vspace{.2in}
\noindent
Cover photo \copyright ~2015 Katar\'{i}na M\'{o}zov\'{a}, Courtesy of Riichi Mahjong Slovakia.
\vspace{.2in}
\noindent
The original form of this book is \LaTeX\ source code. Compiling this
\LaTeX\ source has the effect of generating a device-independent
representation of a manuscript. The \LaTeX\ source for this book is available from
\url{https://github.com/dainachiba/RiichiBooks}.
\vfill
\noindent
{\large\bf About the Author}\\
\noindent
{\bf Daina Chiba} is a political scientist and an applied statistician working as a lecturer at the University of Essex in England.
He has been playing riichi mahjong for almost 20 years.
He can be reached at \href{mailto:daina.chiba@gmail.com}{\tt daina.chiba@gmail.com}.
} % end small
% Preface ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\pagebreak
\let\cleardoublepage\clearpage
\input{RiichiBook1-ch0-preface}
% Table of Contents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{\hypersetup{linkcolor={black}}
\tableofcontents
%\listoftables
}
\newpage
\pagenumbering{arabic}
\mainmatter
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Part 1: online
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\part{Playing Riichi Online} \label{part:online}
\input{RiichiBook1-ch1-tenhou1}
\input{RiichiBook1-ch2-tenhou2}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Part 2: tile efficiency
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\part{Basic Tile Efficiency} \label{part:tile}
\input{RiichiBook1-ch3-basics}
\input{RiichiBook1-ch4-five}
\input{RiichiBook1-ch5-yaku}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Part 3: strategies
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\part{Strategy Principles} \label{part:strat}
\input{RiichiBook1-ch6-scores}
\input{RiichiBook1-ch7-riichi}
\input{RiichiBook1-ch8-defense}
\input{RiichiBook1-ch9-call}
\input{RiichiBook1-ch10-grand}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Appendix
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\begin{appendices}
\appendixpage \noappendicestocpagenum \addappheadtotoc
\input{RiichiBook1-ch11-offline}
\input{RiichiBook1-ch12-appendix}
\end{appendices}
{\small \printindex}
\end{document}