Comprehensive TeX Archive Network

Direc­tory tex-archive/macros/latex/contrib/rubik

September 25, 2015
the RUBIK bundle 2015/09/25
 - rubikcube package v3.0      -> macros and commands for typesetting
 - rubikrotation package v3.0  -> macros and Perl program for rotations

The RUBIK bundle provides two complementary packages for documenting the
Rubik cube (3x3x3) notation, configurations and rotation sequences.
The two packages are (a) rubikcube package, and (b) rubikrotation package.

 (1) Rubikcube package

 The  rubikcube  package   provides  a collection of LaTeX commands 
 and macros for  typesetting  Rubik cube  configurations  and rotation 
 instructions using the  PGF/TikZ graphic languages.
 This is a stand-alone LaTeX package. However, it is expected to be used in 
 conjunction with its complementary rubikrotation package.

 (2) Rubikrotation package

 The rubikrotation package, is a dynamic extension to
 the rubikcube package. It consists of  the  Perl script 
 rubikrotation.pl  and style option rubikrotation.sty.
 The rubikrotation package  implements rotation sequences and 
 random  scrambling of the Rubik cube on-the-fly using a
 RubikRotation command. It returns the new state in a form 
 which is then used for typesetting by the rubikcube package.

 Since the  RubikRotation command works by CALLing the  
 Perl script rubikrotation.pl, it follows that the rubikrotation
 package requires (a) Perl to be installed, and (b) (Pdf)LaTeX needs
 to  be run using the --shell-escape command-line switch.

 (3) New features

 (a) All rotation commands can now use the rotation-code as an argument; 
     for example, the rotation \rr{D} can now be typeset using the 
     command \cmd{\rr\{D\}} etc.  The new rotation commands are:
     The original rotation command formats (e.g.,\rrD) are still supported
     for  backwards compatibility.

 (b) \ShowCube and \ShowCubeF  are new commands for displaying
     a cube inside a minipage.

 (c) \RubikCubeGrey is a new command for setting up a `starter cube' 
     for which the only allocated colours are those for the centre cubies
     The colour configuration matches that of the \RubikCubeSolved  command.

RWD Nickalls    email: dick@nickalls.org
A Syropoulos    email: asyropoulos@yahoo.com
Copyright 2014 RWD Nickalls & A Syropoulos


This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (at your option) any later version.
The latest version of this license is in
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.
The RUBIK bundle consists of the following files

package files:
 - rubikcube.ins,
 - rubikcube.dtx,
 - rubikcube.sty,
 - rubikrotation.ins,
 - rubikrotation.dtx,
 - rubikrotation.sty,
 - rubikrotation.pl  (Perl script)
documentation and README:
 - rubikcube.pdf
 - rubikrotation.pdf,
 - rubikrotationPL.pdf, Prel program documentation
 - rubikrotationPL.tex
 - rubikrotation.1,   MAN file for perl script
 - README.txt (this file)
image files:
 - pdf -files for the rubikcube documentation (6 pictures)
 - pdf -files for the rubikrotation documentation (4 pictures)
 - example-rot.pdf,
 - example-rot.tex
bash and bat files (for running rotation examples) 
If you have any ideas, questions, suggestions or bugs to report, please
feel free to contact us.


Name Size Date Notes
README.txt 4011 2015-09-24 21:39
Ru­bik-doc-figA.pdf 3929 2015-09-24 21:01
Ru­bik-doc-figB.pdf 4076 2015-09-24 21:01
Ru­bik-doc-figC.pdf 2799 2015-09-24 21:01
Ru­bik-doc-figD.pdf 2908 2015-09-24 21:01
Ru­bik-doc-figE.pdf 4064 2015-09-24 21:01
Ru­bik-doc-figF.pdf 7033 2015-09-24 21:01
Ru­bikrot-doc-figA.pdf 1538 2015-09-24 21:03
Ru­bikrot-doc-figB.pdf 1856 2015-09-24 21:03
Ru­bikrot-doc-figC.pdf 3864 2015-09-24 21:03
Ru­bikrot-doc-figD.pdf 9342 2015-09-24 21:03
ex­am­ples.bat 77 2015-09-24 21:03
ex­am­ples.pdf 204366 2015-09-24 21:03
ex­am­ples.sh 146 2015-09-24 21:03
ex­am­ples.tex 16403 2015-09-24 23:23
ru­bikcube.dtx 223704 2015-09-24 21:01
ru­bikcube.ins 3131 2015-09-24 21:01
ru­bikcube.pdf 724329 2015-09-24 21:01
ru­bikro­ta­tion.1 1725 2015-09-24 21:03
ru­bikro­ta­tion.dtx 54775 2015-09-24 21:03
ru­bikro­ta­tion.ins 3181 2015-09-24 21:03
ru­bikro­ta­tion.pdf 372478 2015-09-24 21:03
ru­bikro­ta­tion.pl 47481 2015-09-24 21:03
ru­bikro­ta­tionPL.pdf 163436 2015-09-24 21:03
ru­bikro­ta­tionPL.tex 51570 2015-09-24 21:03

Down­load the con­tents of this pack­age in one zip archive (1.5M).

ru­bik – Doc­u­ment Ru­bik cube con­fig­u­ra­tions and ro­ta­tion se­quences

The bun­dle pro­vides two pack­ages:

  • ru­bikcube pro­vides com­mands for type­set­ting Ru­bik cubes and their trans­for­ma­tions; and
  • ru­bikro­ta­tion which can pro­cess a se­quence of Ru­bik ro­ta­tion moves, with the help of a Perl pack­age ex­e­cuted via \write18 (shell es­cape) com­mands.

Pack­age De­tailsru­bik
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2014 RWD Nick­alls and A Sy­ropou­los
Main­tainerApos­to­los Sy­ropou­los
Dick Nick­alls
Con­tained inTeX Live as ru­bik
MiKTeX as ru­bik
Topics prob­lems and puz­zles, and their so­lu­tions
Guest Book Sitemap Contact Contact Author