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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
|
%% rubikpatternsLIST.tex
%% part of the rubikpatterns package v 4.0
%% authors: RWD Nickalls & A Syropoulos
%% 03 March 2017
%%------------------------
%% this file uses the rubikrotation package
%% run this file as : $ pdflatex --shell-escape rubikpatternsLIST.tex
%%------------------------
\documentclass[a4paper]{article}
%------LUA-----------
\usepackage{ifluatex}
\ifluatex
\usepackage{shellesc} %% for use with LUAlatex
\usepackage{fontspec}
\else
\fi
%--------------------
\usepackage{tikz}
\usepackage{rubikcube}
\usepackage{rubikrotation}
\usepackage{rubikpatterns}
%--------------------------
\usepackage{url,ifpdf}
%---------------------
\ifpdf
\usepackage[verbose]{microtype}
\usepackage{cmap}
\usepackage[pdfencoding=auto]{hyperref}
\hypersetup{%
pdftitle={rubikpatternsLIST.pdf},
pdfsubject={Rubik cube, Rubik bundle},
pdfkeywords={Rubik cube LaTeX}
}
\fi
%%-------------------
%-------------
\pagestyle{myheadings}
\markright{\texttt{rubikpatternsLIST.pdf} \ \
(Rubik bundle v4.0, March 03, 2017) }
%-------------------------------------
\newcommand{\ShowPattern}[1]{%
\noindent%
\RubikCubeSolvedWB
\RubikRotation{#1}
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}
\hspace{0.5cm}% was 1cm
\begin{minipage}{9cm}
\noindent\ShowSequence{,\ }{\texttt}{\SequenceShort},
\newline\noindent\texttt{\SequenceInfo}.
\end{minipage}
}
%-------------------------
%======================
\begin{document}
\ifpdf\pdfbookmark[1]{Title}{Title}\fi
\title{List of Rubik patterns\\%
\smallskip\normalsize\texttt{www.ctan.org/tex-archives/macros/latex/contrib/rubik/rubikpatternsLIST.pdf}%
\footnote{This file is part of the Rubik bundle. To generate this file,
use the following command:
\newline \texttt{\$ pdflatex --shell-escape rubikpatternsLIST.tex}}}
\author{RWD Nickalls\,\footnote{email: \textsf{dick@nickalls.org}}%
\ \ \& A Syropoulos\,\footnote{email: \textsf{asyropoulos@yahoo.com}}}
\date{March 03, 2017 (v4.0)}
\maketitle
%==========================================
\section{Rubik patterns}
A Rubik pattern is the configuration generated by a sequence of rotations
(or `moves') from some initial starting configuration (typically a `solved'
configuration). For example, `sixspot' is a well known pattern generated from
a solved Rubik cube by the rotation sequence \texttt{U,Dp,R,Lp,F,Bp,U,Dp}, as follows:
\bigskip
\noindent\hfil%
\RubikCubeSolvedWB
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}%
\RubikRotation{\sixspot}%
\quad\SequenceBraceA{sixspot}{\ShowSequence{}{\Rubik}{\SequenceLong}}\quad%
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}%
\hfil%
\bigskip
\medskip
{\noindent}The code for this image is as follows:
\begin{quote}
\begin{verbatim}
\usepackage{tikz}
\usepackage{rubikcube,rubikrotation,rubikpatterns}
...
\noindent\hfil%
\RubikCubeSolvedWB%
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}%
\RubikRotation{\sixspot}%
\quad\SequenceBraceA{sixspot}{%
\ShowSequence{}{\Rubik}{\SequenceLong}%
}%
\quad\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}%
\hfil%
\end{verbatim}
\end{quote}
Note that the appearance of a pattern generated by a given rotation sequence is,
of course, sensitive to (a)~the particular colour configuration of the solved
cube used, and (b)~the initial orientation of the cube.
The initial condition associated with all the pattern images shown in this
document is the solved form of the `WB' colour configuration
(White opposite Blue), since this is the solved cube colour configuration used
by the Reid website, from which nearly all these patterns are drawn.
The following image shows the WB cube form (set up using the command
\verb!\RubikCubeSolvedWB!) displayed in a semi-flat (SF) mode
(\verb!\DrawRubikCubeSF!) so we can see all the faces
---see the \textsc{rubikcube} documentation for details.
\bigskip
\RubikCubeSolvedWB%
\ShowCube{2cm}{0.5}{\DrawRubikCubeSF}%
\medskip
{\noindent}The code for this image is as follows:
\begin{quote}
\begin{verbatim}
\usepackage{tikz}
\usepackage{rubikcube,rubikrotation}
...
\RubikCubeSolvedWB%
\ShowCube{2cm}{0.5}{\DrawRubikCubeSF}%
\end{verbatim}
\end{quote}
\section{Typesetting}
The remainder of this document just displays the various patterns made available
with the \textsc{rubikpatterns} package.
We display the patterns using the following \verb!\ShowPattern! command, which
uses the \verb!\RubikRotation! command (from the \textsc{rubikrotation} package),
and takes the pattern macro-name as the argument:
This command draws the cube from the right-upper (RU) viewpoint, and shows the
rotation sequence and metadata.
\begin{verbatim}
%----------------------------------------
\usepackage{tikz}
\usepackage{rubikcube,rubikrotation,rubikpatterns}
...
\newcommand{\ShowPattern}[1]{%
\noindent%
\RubikCubeSolvedWB
\RubikRotation{#1}
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}
\hspace{0.5cm}%
\begin{minipage}{9cm}
\noindent\ShowSequence{,\ }{\texttt}{\SequenceShort},
\newline\noindent\texttt{\SequenceInfo}.
\end{minipage}
}
%------------------------------------------
\end{verbatim}
\pagebreak
For example, the first pattern below (Pons Asinorum) is typeset using the following
command:
\begin{verbatim}
\bigskip\ShowPattern{\ponsasinorum}
\end{verbatim}
%-----------------------------
\section{List of Patterns}
\bigskip\ShowPattern{\PonsAsinorum}
\bigskip\ShowPattern{\CheckerboardsThree}
\bigskip\ShowPattern{\CheckerboardsSix}
\bigskip\ShowPattern{\Stripes}
\bigskip\ShowPattern{\CubeInCube}
\bigskip\ShowPattern{\CubeInCubeInCube}
\bigskip\ShowPattern{\ChristmasCross}
\bigskip\ShowPattern{\PlummersCross}
\bigskip\ShowPattern{\Anaconda}
\bigskip\ShowPattern{\Python}
\bigskip\ShowPattern{\BlackMamba}
\bigskip\ShowPattern{\GreenMamba}
\bigskip\ShowPattern{\FemaleRattlesnake}
\bigskip\ShowPattern{\MaleRattlesnake}
\bigskip\ShowPattern{\FemaleBoa}
\bigskip\ShowPattern{\MaleBoa}
\bigskip\ShowPattern{\FourSpot}
\bigskip\ShowPattern{\sixspot}
\bigskip\ShowPattern{\OrthogonalBars}
\bigskip\ShowPattern{\SixTs}
\bigskip\ShowPattern{\SixTwoOne}
\bigskip\ShowPattern{\ExchangedPeaks}
\bigskip\ShowPattern{\TwoTwistedPeaks}
\bigskip\ShowPattern{\FourTwistedPeaks}
\bigskip\ShowPattern{\ExchangedChickenFeet}
\bigskip\ShowPattern{\TwistedChickenFeet}
\bigskip\ShowPattern{\ExchangedRings}
\bigskip\ShowPattern{\TwistedRings}
\bigskip\ShowPattern{\EdgeHexagonTwo}
\bigskip\ShowPattern{\EdgeHexagonThree}
\bigskip\ShowPattern{\TomParksPattern}
\bigskip\ShowPattern{\RonsCubeInCube}
\bigskip\ShowPattern{\TwistedDuckFeet}
\bigskip\ShowPattern{\ExchangedDuckFeet}
\bigskip\ShowPattern{\Superflip}
\bigskip
%------------------------
\section{References}
\begin{itemize}
\item Fridrich website (Fridrich J). \ \ \url{http://www.ws.binghamton.edu/fridrich/}
See the `Pretty patterns' webpage
\url{http://www.ws.binghamton.edu/fridrich/ptrns.html}
\item Kociemba website (Kociemba H). \url{http://www.kociemba.org/cube.htm}
{\newline}---for superflip see: \url{http://www.kociemba.org/math/oh.htm}
\item Randelshofer website (Randelshofer W). Pretty patterns. \url{http://www.randelshofer.ch/rubik/patterns/U080.01.html}
\item Reid patterns web page (Reid M).
\url{http://www.cflmath.com/~reid/Rubik/patterns.html}
\end{itemize}
\begin{center}
------ END ------
\end{center}
\end{document}
|