%% Latex style to simply display and create figures involving
%% rotations.
%% by Raf Vandebril (c) 10/2010
%%
%%

\ProvidesPackage{rotfig}
    [2010/10/20 v1.0 Rotational Figures style file]


%% Load the necessary packages for generating the figures.
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{graphicx}



% --------------------- OPERATORS ----------------------------------------
% Top arrow pointing right
\def\Rc{\raisebox{-0.11cm}[0.1cm][0.0cm]{\mbox{$\Rsh$}}}

% Top arrow pointing left
\def\Rcl{\reflectbox{\Rc}}

% Bottom arrow pointing right
\def\rc{\raisebox{0.11cm}[0.1cm][0.0cm]{\mbox{\rotatebox[origin=c]{180}{\reflectbox{\Rc}}}}}

% Bottom arrow pointing left
\def\rcl{\reflectbox{\rc}}

% Top hook right (G comes from Gaussian transformation)
\def\Gc{\hspace{-0.1cm}\raisebox{-0.14cm}[0.1cm][0.0cm]{\mbox{$\lceil$}}}

% Bottom hook right
\def\gc{\hspace{-0.1cm}\raisebox{0.14cm}[0.1cm][0.0cm]{$\lfloor$}}

% Top hook right (G comes from Gaussian transformation)
\def\Gcl{\reflectbox{\Gc}}

% Bottom hook right
\def\gcl{\reflectbox{\gc}}

% Middle connection line for right pointing actions
\def\clr{\hspace{-0.12cm}\raisebox{-0.15cm}[-0.15cm][0.1cm]{{\rule{0.4pt}{0.55cm}}}}

% Middle connection line for left pointing actions
\def\cll{\hspace{0.12cm}\raisebox{-0.15cm}[-0.15cm][0.1cm]{{\rule{0.4pt}{0.55cm}}}}


% ------------------- MARKING & ACTION OPERATORS ----------------------------------

% Mark with a \times symbol
\def\ma{\hspace{-8.5pt}\makebox[0.3cm]{\raisebox{-0.15cm}[0.1cm][0.1cm]{{${\times}$}}}}

% Mark two transformations for combination (fusion operation)
\def\ca{\hspace{-8.5pt}\makebox[0.3cm]{\raisebox{-0.2cm}[0.1cm][0.1cm]{{${\hookrightarrow}$}}}}
 
% Mark a fixed transformation with a bullet
\def\ba{\hspace{-9pt}\makebox[0.3cm]{\raisebox{-0.19cm}[0.1cm][0.1cm]{{${\bullet}$}}}}

% Mark a transformation with a sim symbol
\def\gp{\hspace{-8.5pt}\makebox[0.3cm]{\raisebox{-0.2cm}[0.1cm][0.1cm]{{${\sim}$}}}}


% Shift through operator 
% An extra t is necessary for counter on top

% Shift-through pointing up
\def\stt{\rotatebox[origin=t]{180}{$\curvearrowleft$}}

% Information on top of the arrow
\def\sttt#1{\mbox{\rotatebox[origin=t]{180}{$\curvearrowleft$}\hspace{-8pt}\raisebox{-0.1cm}[0cm][0cm]{$\scriptstyle #1$}\hspace{4pt}}}

% Shift-through pointing down
\def\stb{\curvearrowright}

% Shift-through down with information on top
\def\stbt#1{\mbox{$\curvearrowright$\hspace{-8pt}\raisebox{0.22cm}[0cm][0cm]{$\scriptstyle #1$}\hspace{4pt}}}

% Shift-through left and top
\def\slt{\reflectbox{\rotatebox[origin=t]{180}{$\curvearrowleft$}}}

% Shift-through left and top, extra information
\def\sltt#1{\mbox{\reflectbox{\rotatebox[origin=t]{180}{$\curvearrowleft$}}\hspace{-8pt}\raisebox{-0.1cm}[0cm][0cm]{$\scriptstyle #1$}\hspace{4pt}}}

% Shift-through left bottom
\def\slb{\reflectbox{$\curvearrowright$}}

% Shift-through left bottom, extra information
\def\slbt#1{\mbox{\reflectbox{$\curvearrowright$}\hspace{-6pt}\raisebox{0.22cm}[0cm][0cm]{$\scriptstyle #1$}\hspace{4pt}}}

% Wedge operator right pointing
\def\wdl{\raisebox{-0.30cm}[0.1cm][0.1cm]{\rotatebox[origin=t]{135}{$\Rsh$}}}

% Wedge operator left pointing
\def\wdr{\raisebox{-0.30cm}[0.1cm][0.1cm]{\rotatebox[origin=t]{-135}{$\Lsh$}}}










%-------these are the numbers surrounded by a circle
% other types starting from 192 or 182 or 172
\def\cone{\mbox{\ding{202}}} 
\def\ctwo{\mbox{\ding{203}}}
\def\cthree{\mbox{\ding{204}}}
\def\cfour{\mbox{\ding{205}}}
\def\cfive{\mbox{\ding{206}}}
\def\csix{\mbox{\ding{207}}}
\def\cseven{\mbox{\ding{208}}}
\def\ceight{\mbox{\ding{209}}}
\def\cnine{\mbox{\ding{210}}}
\def\cten{\mbox{\ding{211}}}

%-----------------------------------------------------------------------