-
Notifications
You must be signed in to change notification settings - Fork 13
/
Chess.tex
executable file
·130 lines (117 loc) · 6.36 KB
/
Chess.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
% !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf"
\documentclass{standalone}
\usepackage{tikzducks}
\colorlet{dark}{black!75!white}
\colorlet{light}{yellow!70!brown!50!white}
\colorlet{accent}{orange!50!brown}
\colorlet{cutline}{green}
\newif\ifcutlines
%\cutlinestrue
% Bauer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\bauer}[2][]{%
\begin{tikzpicture}[#1,scale=0.75]
\duck[body=#2,bill=accent]
\ifcutlines
\draw[cutline] (1.,0.1) -- (1.,0.5);
\fi
\end{tikzpicture}
}
% Turm %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\turm}[2][]{%
\begin{tikzpicture}[#1]
\begin{scope}[scale=0.38]
\duck[body=#2,bill=accent]
\end{scope}
\path[fill=gray,yshift=-45,xshift=-8] (0.0959,0.1866) .. controls (0.0908,0.2574) and (0.0900,0.3748) .. (0.1928,0.3609) .. controls (0.2295,0.3527) and (0.2359,0.3750) .. (0.2326,0.4070) .. controls (0.2337,0.4816) and (0.2438,0.5571) .. (0.2849,0.6214) .. controls (0.3553,0.7835) and (0.3522,0.9650) .. (0.3641,1.1382) .. controls (0.3678,1.2187) and (0.3676,1.2993) .. (0.3675,1.3799) .. controls (0.3183,1.3832) and (0.2443,1.3768) .. (0.2356,1.4412) .. controls (0.2297,1.6004) and (0.2294,1.7604) .. (0.2367,1.9196) .. controls (0.2988,1.9217) and (0.3843,1.9393) .. (0.4339,1.9106) .. controls (0.4300,1.8436) and (0.4255,1.7539) .. (0.5208,1.7857) .. controls (0.5477,1.7857) and (0.5820,1.7785) .. (0.5698,1.8176) .. controls (0.5717,1.8659) and (0.5553,1.9453) .. (0.6308,1.9238) .. controls (0.7009,1.9243) and (0.7710,1.9230) .. (0.8411,1.9226) .. controls (0.8425,1.8787) and (0.8439,1.8348) .. (0.8453,1.7909) .. controls (0.8892,1.7909) and (0.9331,1.7909) .. (0.9770,1.7909) .. controls (0.9784,1.8348) and (0.9798,1.8787) .. (0.9812,1.9226) .. controls (1.0478,1.9226) and (1.1143,1.9226) .. (1.1809,1.9226) .. controls (1.1794,1.7563) and (1.1845,1.5897) .. (1.1771,1.4236) .. controls (1.1574,1.3706) and (1.0943,1.3835) .. (1.0492,1.3790) .. controls (1.0532,1.1475) and (1.0506,0.9124) .. (1.1071,0.6864) .. controls (1.1310,0.6073) and (1.1880,0.5375) .. (1.1819,0.4508) .. controls (1.1864,0.4236) and (1.1780,0.3839) .. (1.1895,0.3637) .. controls (1.2346,0.3602) and (1.3001,0.3702) .. (1.3145,0.3141) .. controls (1.3197,0.2396) and (1.3177,0.1647) .. (1.3193,0.0900) .. controls (0.9114,0.0900) and (0.5036,0.0900) .. (0.0957,0.0900) .. controls (0.0958,0.1222) and (0.0959,0.1544) .. (0.0959,0.1866) -- cycle;
\ifcutlines
\draw[green] (0.4,-1.55) -- (0.4,-1.15);
\fi
\end{tikzpicture}
}
% Springer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\springer}[2][]{%
\begin{tikzpicture}[#1]
\begin{pgfinterruptboundingbox}
\begin{scope}[yshift=-6]
\clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4);
\fill[#2,rotate=-5](0.28,2.26)ellipse (0.3 and 0.4);
\end{scope}
\end{pgfinterruptboundingbox}
\duck[body=#2,bill=accent,horsetail,mohican=accent]
\begin{pgfinterruptboundingbox}
\begin{scope}[yshift=-5,xshift=1]
\clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4);
\fill[#2,rotate=-5](1.06,2.2) ellipse (0.3 and 0.4);
\end{scope}
\end{pgfinterruptboundingbox}
\ifcutlines
\draw[cutline] (1.,0.1) -- (1.,0.5);
\fi
\end{tikzpicture}
}
% Laeufer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\laeufer}[2][]{%
\begin{tikzpicture}[#1]
\duck[body=#2,bill=accent,crozier=accent]
% mita
\path[fill=accent] (0.5101,1.8761) .. controls (0.6355,2.4588) and (0.9681,2.6303) .. (0.9681,2.6303) -- (1.0260,2.4101) -- (1.1548,2.6202) .. controls (1.1548,2.6202) and (1.4167,2.2951) .. (1.3398,1.8247) .. controls (1.0829,1.7440) and (0.6286,1.8104) .. (0.5101,1.8761) -- cycle;
\ifcutlines
\draw[cutline] (1.,0.1) -- (1.,0.5);
\fi
\end{tikzpicture}
}
% Dame %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\dame}[2][]{%
\begin{tikzpicture}[#1]
\duck[body=#2,necklace=gray,longhair=accent,bill=accent]
\begin{scope}[yshift=2]
\fill[#2] \duckpathqueencrown;
\end{scope}
\ifcutlines
\draw[cutline] (1.,0.1) -- (1.,0.5);
\fi
\end{tikzpicture}
}
% Koenig %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\koenig}[2][]{%
\begin{tikzpicture}[#1]
\duck[body=#2,shorthair=accent,bill=accent]
\begin{scope}[yshift=4]
\fill[#2] \duckpathkingcrown;
\end{scope}
\ifcutlines
\draw[cutline] (1.,0.1) -- (1.,0.5);
\fi
\end{tikzpicture}
}
% aufsteller %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\bigstand}[1]{%
\begin{tikzpicture}
\fill[#1] (0,0) arc(90:270:0.8) -- cycle;
\ifcutlines
\draw[green] (-0.8,-0.8) -- (-0.4,-0.8);
\fi
\end{tikzpicture}
}
\newcommand{\smallstand}[1]{%
\begin{tikzpicture}[scale=0.75]
\fill[#1] (0,0) arc(90:270:0.8) -- cycle;
\ifcutlines
\draw[green] (-0.8,-0.8) -- (-0.4,-0.8);
\fi
\end{tikzpicture}
}
\begin{document}
\begin{tabular}{cccccccc}
\turm[xscale=-1]{dark} & \springer[xscale=-1]{dark} & \laeufer[xscale=-1]{dark} & \dame[xscale=-1]{dark} & \koenig{dark} & \laeufer{dark} & \springer{dark} & \turm{dark}\\
\bauer[xscale=-1]{dark} & \bauer[xscale=-1]{dark} & \bauer[xscale=-1]{dark} & \bauer[xscale=-1]{dark} & \bauer{dark} & \bauer{dark} & \bauer{dark} & \bauer{dark}\\[1cm]
\bauer[xscale=-1]{light} & \bauer[xscale=-1]{light} & \bauer[xscale=-1]{light} & \bauer[xscale=-1]{light} & \bauer{light} & \bauer{light} & \bauer{light} & \bauer{light}\\
\turm[xscale=-1]{light} & \springer[xscale=-1]{light} & \laeufer[xscale=-1]{light} & \dame[xscale=-1]{light} & \koenig{light} & \laeufer{light} & \springer{light} & \turm{light}\\
\ifcutlines
\bigstand{gray} & \bigstand{dark} & \bigstand{dark} & \bigstand{dark} & \bigstand{dark} & \bigstand{dark} & \bigstand{dark} & \bigstand{gray}\\
\smallstand{dark} & \smallstand{dark} & \smallstand{dark} & \smallstand{dark} & \smallstand{dark} & \smallstand{dark} & \smallstand{dark} & \smallstand{dark}\\
\smallstand{light} & \smallstand{light} & \smallstand{light} & \smallstand{light} & \smallstand{light} & \smallstand{light} & \smallstand{light} & \smallstand{light}\\
\bigstand{gray} & \bigstand{light} & \bigstand{light} & \bigstand{light} & \bigstand{light} & \bigstand{light} & \bigstand{light} & \bigstand{gray}\\
\fi
\end{tabular}
\end{document}