| 1 |
%% |
| 2 |
%% rubikpatternsLIST.tex |
| 3 |
%% part of the rubikpatterns package v5.0 |
| 4 |
%% authors: RWD Nickalls & A Syropoulos |
| 5 |
%% 25 February 2018 |
| 6 |
%% Rubik bundle v5.0 |
| 7 |
%%------------------------ |
| 8 |
%% this file requires the rubikrotation and rubkpatterns packages |
| 9 |
%% run this file as : $ pdflatex --shell-escape rubikpatternsLIST.tex |
| 10 |
%%------------------------ |
| 11 |
|
| 12 |
\documentclass[a4paper]{article} |
| 13 |
|
| 14 |
\usepackage{tikz} |
| 15 |
\usepackage{rubikcube,rubikrotation,rubikpatterns} |
| 16 |
|
| 17 |
%-------------------------- |
| 18 |
\usepackage{url,ifpdf} |
| 19 |
%--------------------- |
| 20 |
\ifpdf |
| 21 |
\usepackage[verbose]{microtype} |
| 22 |
\usepackage{cmap} |
| 23 |
\usepackage[pdfencoding=auto]{hyperref} |
| 24 |
|
| 25 |
\hypersetup{% |
| 26 |
pdftitle={rubikpatternsLIST.pdf}, |
| 27 |
pdfsubject={Rubik cube, Rubik bundle}, |
| 28 |
pdfkeywords={Rubik cube LaTeX} |
| 29 |
} |
| 30 |
\fi |
| 31 |
%%------------------ |
| 32 |
\pagestyle{myheadings} |
| 33 |
\markright{\texttt{rubikpatternsLIST.pdf} \ (Rubik bundle v5.0) \ \texttt{www.ctan.org/pkg/rubik}} |
| 34 |
%------------------------------------- |
| 35 |
%% need to use a negthinspace $\!$ before \ShowSequence |
| 36 |
%% to adjust for the first [ char in the cs string |
| 37 |
%% this makes the first line align correctly |
| 38 |
\newcommand{\ShowPattern}[1]{% |
| 39 |
\noindent% |
| 40 |
\RubikCubeSolvedWB |
| 41 |
\RubikRotation{#1} |
| 42 |
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU} |
| 43 |
\hspace{0.5cm}% was 1cm |
| 44 |
\begin{minipage}{9cm} |
| 45 |
\noindent$\!$\ShowSequence{,\ }{\texttt}{\SequenceShort}, |
| 46 |
\newline\noindent\texttt{\SequenceInfo}. |
| 47 |
\end{minipage} |
| 48 |
} |
| 49 |
|
| 50 |
%====================== |
| 51 |
\begin{document} |
| 52 |
|
| 53 |
|
| 54 |
\ifpdf\pdfbookmark[1]{Title}{Title}\fi |
| 55 |
\title{List of Rubik patterns\\% |
| 56 |
\smallskip\normalsize\texttt{www.ctan.org/tex-archives/macros/latex/contrib/rubik/rubikpatternsLIST.pdf}% |
| 57 |
\footnote{This file is part of the Rubik bundle v5.0, 2018. |
| 58 |
To generate this file, use the following command: |
| 59 |
\newline \texttt{\$ pdflatex --shell-escape rubikpatternsLIST.tex}}} |
| 60 |
\author{RWD Nickalls\,\footnote{email: \textsf{[email protected]}}% |
| 61 |
\ \ \& A Syropoulos\,\footnote{email: \textsf{[email protected]}}} |
| 62 |
\date{25 February 2018 (Rubik bundle v5.0)} |
| 63 |
\maketitle |
| 64 |
|
| 65 |
|
| 66 |
%========================================== |
| 67 |
\section{Rubik patterns} |
| 68 |
|
| 69 |
A Rubik pattern is the configuration generated by a sequence of rotations |
| 70 |
(or `moves') from some initial starting configuration (typically a `solved' |
| 71 |
configuration). For example, `sixspot' is a well known pattern generated |
| 72 |
from a solved Rubik cube by the rotation sequence |
| 73 |
\texttt{U,Dp,R,Lp,F,Bp,U,Dp}, as follows: |
| 74 |
|
| 75 |
\bigskip |
| 76 |
|
| 77 |
\noindent\hfil% |
| 78 |
\RubikCubeSolvedWB |
| 79 |
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}% |
| 80 |
\RubikRotation{\sixspot}% |
| 81 |
\quad\SequenceBraceA{sixspot}{\ShowSequence{}{\Rubik}{\SequenceLong}}\quad% |
| 82 |
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}% |
| 83 |
\hfil% |
| 84 |
|
| 85 |
\bigskip |
| 86 |
|
| 87 |
\medskip |
| 88 |
{\noindent}The code for this image is as follows: |
| 89 |
|
| 90 |
\begin{quote} |
| 91 |
\begin{verbatim} |
| 92 |
\usepackage{tikz} |
| 93 |
\usepackage{rubikcube,rubikrotation,rubikpatterns} |
| 94 |
... |
| 95 |
\noindent\hfil% |
| 96 |
\RubikCubeSolvedWB% |
| 97 |
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}% |
| 98 |
\RubikRotation{\sixspot}% |
| 99 |
\quad\SequenceBraceA{sixspot}{% |
| 100 |
\ShowSequence{}{\Rubik}{\SequenceLong}% |
| 101 |
}% |
| 102 |
\quad\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU}% |
| 103 |
\hfil% |
| 104 |
\end{verbatim} |
| 105 |
\end{quote} |
| 106 |
|
| 107 |
|
| 108 |
Note that the appearance of a pattern generated by a given |
| 109 |
rotation sequence is, of course, sensitive to |
| 110 |
(a)~the particular colour configuration of the solved |
| 111 |
cube used, and (b)~the initial orientation of the cube. |
| 112 |
|
| 113 |
The initial condition associated with all the pattern images |
| 114 |
shown in this document is the solved form of the `WB' colour |
| 115 |
configuration (White opposite Blue), since this is the solved |
| 116 |
cube colour configuration used by the Reid website, from which |
| 117 |
nearly all these patterns are drawn. |
| 118 |
|
| 119 |
The following image shows the WB cube form (set up using the command |
| 120 |
\verb!\RubikCubeSolvedWB!) displayed in a semi-flat (SF) mode |
| 121 |
(\verb!\DrawRubikCubeSF!) so we can see all the faces |
| 122 |
---see the \textsc{rubikcube} documentation for details. |
| 123 |
|
| 124 |
\bigskip |
| 125 |
|
| 126 |
\RubikCubeSolvedWB% |
| 127 |
\ShowCube{5cm}{0.5}{\DrawRubikCubeSF}% |
| 128 |
\hspace{3mm}% |
| 129 |
\begin{minipage}{5cm} |
| 130 |
\begin{verbatim} |
| 131 |
\usepackage{tikz} |
| 132 |
\usepackage{rubikcube,rubikrotation} |
| 133 |
... |
| 134 |
\RubikCubeSolvedWB% |
| 135 |
\ShowCube{2cm}{0.5}{\DrawRubikCubeSF}% |
| 136 |
\end{verbatim} |
| 137 |
\end{minipage} |
| 138 |
|
| 139 |
%==================== |
| 140 |
\section{Typesetting} |
| 141 |
|
| 142 |
The remainder of this document just displays the various patterns |
| 143 |
made available with the \textsc{rubikpatterns} package. We display |
| 144 |
the patterns using the following \verb!\ShowPattern! command, which |
| 145 |
uses the \verb!\RubikRotation! command (from the \textsc{rubikrotation} |
| 146 |
package), and takes the pattern macro-name as the argument: |
| 147 |
This command draws the cube from the right-upper (RU) viewpoint, |
| 148 |
and shows the rotation sequence and metadata. |
| 149 |
|
| 150 |
Note that since each sequence starts with a \verb![name],! we include |
| 151 |
a negative thin space (\verb[$\![) just before the \verb!\ShowSequence! |
| 152 |
command to adjust the position of the narrow initial \verb![! character |
| 153 |
in order to align it correctly with the subsequent line. |
| 154 |
|
| 155 |
\begin{verbatim} |
| 156 |
%---------------------------------------- |
| 157 |
\usepackage{tikz} |
| 158 |
\usepackage{rubikcube,rubikrotation,rubikpatterns} |
| 159 |
... |
| 160 |
\newcommand{\ShowPattern}[1]{% |
| 161 |
\noindent% |
| 162 |
\RubikCubeSolvedWB |
| 163 |
\RubikRotation{#1} |
| 164 |
\ShowCube{2.4cm}{0.6}{\DrawRubikCubeRU} |
| 165 |
\hspace{0.5cm}% |
| 166 |
\begin{minipage}{9cm} |
| 167 |
\noindent$\!$\ShowSequence{,\ }{\texttt}{\SequenceShort}, |
| 168 |
\newline\noindent\texttt{\SequenceInfo}. |
| 169 |
\end{minipage} |
| 170 |
} |
| 171 |
%------------------------------------------ |
| 172 |
\end{verbatim} |
| 173 |
|
| 174 |
|
| 175 |
For example, the first pattern below (Pons Asinorum) is typeset |
| 176 |
using the following command: |
| 177 |
|
| 178 |
\begin{verbatim} |
| 179 |
\bigskip\ShowPattern{\ponsasinorum} |
| 180 |
\end{verbatim} |
| 181 |
|
| 182 |
|
| 183 |
%----------------------------- |
| 184 |
\section{List of Patterns} |
| 185 |
|
| 186 |
\bigskip\ShowPattern{\PonsAsinorum} |
| 187 |
|
| 188 |
\bigskip\ShowPattern{\CheckerboardsThree} |
| 189 |
|
| 190 |
\bigskip\ShowPattern{\CheckerboardsSix} |
| 191 |
|
| 192 |
\bigskip\ShowPattern{\Stripes} |
| 193 |
|
| 194 |
\bigskip\ShowPattern{\CubeInCube} |
| 195 |
|
| 196 |
\bigskip\ShowPattern{\CubeInCubeInCube} |
| 197 |
|
| 198 |
\bigskip\ShowPattern{\ChristmasCross} |
| 199 |
|
| 200 |
\bigskip\ShowPattern{\PlummersCross} |
| 201 |
|
| 202 |
\bigskip\ShowPattern{\Anaconda} |
| 203 |
|
| 204 |
\bigskip\ShowPattern{\Python} |
| 205 |
|
| 206 |
\bigskip\ShowPattern{\BlackMamba} |
| 207 |
|
| 208 |
\bigskip\ShowPattern{\GreenMamba} |
| 209 |
|
| 210 |
\bigskip\ShowPattern{\FemaleRattlesnake} |
| 211 |
|
| 212 |
\bigskip\ShowPattern{\MaleRattlesnake} |
| 213 |
|
| 214 |
\bigskip\ShowPattern{\FemaleBoa} |
| 215 |
|
| 216 |
\bigskip\ShowPattern{\MaleBoa} |
| 217 |
|
| 218 |
\bigskip\ShowPattern{\FourSpot} |
| 219 |
|
| 220 |
\bigskip\ShowPattern{\sixspot} |
| 221 |
|
| 222 |
\bigskip\ShowPattern{\OrthogonalBars} |
| 223 |
|
| 224 |
\bigskip\ShowPattern{\SixTs} |
| 225 |
|
| 226 |
\bigskip\ShowPattern{\SixTwoOne} |
| 227 |
|
| 228 |
\bigskip\ShowPattern{\ExchangedPeaks} |
| 229 |
|
| 230 |
\bigskip\ShowPattern{\TwoTwistedPeaks} |
| 231 |
|
| 232 |
\bigskip\ShowPattern{\FourTwistedPeaks} |
| 233 |
|
| 234 |
\bigskip\ShowPattern{\ExchangedChickenFeet} |
| 235 |
|
| 236 |
\bigskip\ShowPattern{\TwistedChickenFeet} |
| 237 |
|
| 238 |
\bigskip\ShowPattern{\ExchangedRings} |
| 239 |
|
| 240 |
\bigskip\ShowPattern{\TwistedRings} |
| 241 |
|
| 242 |
\bigskip\ShowPattern{\EdgeHexagonTwo} |
| 243 |
|
| 244 |
\bigskip\ShowPattern{\EdgeHexagonThree} |
| 245 |
|
| 246 |
\bigskip\ShowPattern{\TomParksPattern} |
| 247 |
|
| 248 |
\bigskip\ShowPattern{\RonsCubeInCube} |
| 249 |
|
| 250 |
\bigskip\ShowPattern{\TwistedDuckFeet} |
| 251 |
|
| 252 |
\bigskip\ShowPattern{\ExchangedDuckFeet} |
| 253 |
|
| 254 |
\bigskip\ShowPattern{\Superflip} |
| 255 |
|
| 256 |
\bigskip |
| 257 |
|
| 258 |
|
| 259 |
%------------------------ |
| 260 |
\section{References} |
| 261 |
|
| 262 |
\begin{itemize} |
| 263 |
\item Fridrich website (Fridrich J). |
| 264 |
\ \ \url{http://www.ws.binghamton.edu/fridrich/} |
| 265 |
See the `Pretty patterns' webpage |
| 266 |
\url{http://www.ws.binghamton.edu/fridrich/ptrns.html} |
| 267 |
|
| 268 |
\item Kociemba website (Kociemba H). \url{http://www.kociemba.org/cube.htm} |
| 269 |
{\newline}---for superflip see: \url{http://www.kociemba.org/math/oh.htm} |
| 270 |
|
| 271 |
\item Randelshofer website (Randelshofer W). Pretty patterns. \url{http://www.randelshofer.ch/rubik/patterns/U080.01.html} |
| 272 |
|
| 273 |
\item Reid patterns web page (Reid M). |
| 274 |
\url{http://www.cflmath.com/~reid/Rubik/patterns.html} |
| 275 |
|
| 276 |
\end{itemize} |
| 277 |
|
| 278 |
|
| 279 |
\begin{center} |
| 280 |
------ END ------ |
| 281 |
\end{center} |
| 282 |
|
| 283 |
\end{document} |