-
Notifications
You must be signed in to change notification settings - Fork 0
/
flashs.tex
147 lines (127 loc) · 3.25 KB
/
flashs.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
\usepackage[margin=0mm, top=2mm, left=2mm, right=2mm, bottom=0mm]{geometry}
\usepackage{tikz}
\usepackage{pinyin}
\pgfmathsetmacro{\cardwidth}{4.85}
\pgfmathsetmacro{\cardheight}{6.50}
\newcommand{\cgrave}[1]{\`#1}
\newcommand{\cacute}[1]{\'#1}
\newcommand{\ccheck}[1]{\v#1}
\newcommand{\covbar}[1]{\=#1}
\newcommand{\flashcard}[2]{
{\noindent\ignorespaces}%
\begin{tikzpicture}[grow=west]%
\draw[lightgray, rounded corners=0.2cm] (0,0) rectangle (\cardwidth, \cardheight) node[black, pos=.5, scale=2, text width=2cm, align=center] {#1} node[black, pos=(0.5), shift={(0.0ex,-15ex)}, text width=4cm, align=center] {#2};%
\end{tikzpicture}%
\hspace{0.25cm}%
}
\newcommand\page[9]{%
\def\tempA{#1}%
\def\tempa{#2}%
\def\tempaa{#3}%
\def\tempB{#4}%
\def\tempb{#5}%
\def\tempbb{#6}%
\def\tempC{#7}%
\def\tempc{#8}%
\def\tempcc{#9}%
\pageCont
}
\newcommand\pageCont[9]{%
\def\tempD{#1}%
\def\tempd{#2}%
\def\tempdd{#3}%
\def\tempE{#4}%
\def\tempe{#5}%
\def\tempee{#6}%
\def\tempF{#7}%
\def\tempf{#8}%
\def\tempff{#9}%
\pageContCont
}
\newcommand\pageContCont[9]{%
\def\tempG{#1}%
\def\tempg{#2}%
\def\tempgg{#3}%
\def\tempH{#4}%
\def\temph{#5}%
\def\temphh{#6}%
\def\tempI{#7}%
\def\tempi{#8}%
\def\tempii{#9}%
\pageContContCont
}
\newcommand\pageContContCont[9]{%
\def\tempJ{#1}%
\def\tempj{#2}%
\def\tempjj{#3}%
\def\tempK{#4}%
\def\tempk{#5}%
\def\tempkk{#6}%
\def\tempL{#7}%
\def\templ{#8}%
\def\templl{#9}%
\pageContContContCont
}
\newcommand\pageContContContCont[9]{%
\def\tempM{#1}%
\def\tempm{#2}%
\def\tempmm{#3}%
\def\tempN{#4}%
\def\tempn{#5}%
\def\tempnn{#6}%
\def\tempO{#7}%
\def\tempo{#8}%
\def\tempoo{#9}%
\pageContContContContCont
}
\newcommand\pageContContContContCont[3]{%
\def\tempP{#1}%
\def\tempp{#2}%
\def\temppp{#3}%
\makePage
}
\newcommand{\makePage}{
\raggedright{
\flashcard{\tempA}{}%
\flashcard{\tempB}{}%
\flashcard{\tempC}{}%
\flashcard{\tempD}{}%
\vspace{0.25cm}%
\flashcard{\tempE}{}%
\flashcard{\tempF}{}%
\flashcard{\tempG}{}%
\flashcard{\tempH}{}%
\vspace{0.25cm}%
\flashcard{\tempI}{}%
\flashcard{\tempJ}{}%
\flashcard{\tempK}{}%
\flashcard{\tempL}{}%
\vspace{0.25cm}%
\flashcard{\tempM}{}%
\flashcard{\tempN}{}%
\flashcard{\tempO}{}%
\flashcard{\tempP}{}%
}
\newpage
\raggedleft{%
\flashcard{\tempd}{\tempdd}%
\flashcard{\tempc}{\tempcc}%
\flashcard{\tempb}{\tempbb}%
\flashcard{\tempa}{\tempaa}%
\vspace{0.25cm}%
\flashcard{\temph}{\temphh}%
\flashcard{\tempg}{\tempgg}%
\flashcard{\tempf}{\tempff}%
\flashcard{\tempe}{\tempee}%
\vspace{0.25cm}%
\flashcard{\templ}{\templl}%
\flashcard{\tempk}{\tempkk}%
\flashcard{\tempj}{\tempjj}%
\flashcard{\tempi}{\tempii}%
\vspace{0.25cm}%
\flashcard{\tempp}{\temppp}%
\flashcard{\tempo}{\tempoo}%
\flashcard{\tempn}{\tempnn}%
\flashcard{\tempm}{\tempmm}%
}
}