%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                            %
%   extracommands.tex                                  Steve Mann, 1990      %
%                                                                            %
%   A collection of handy LaTeX commands to simplify .tex files              %
%   e.g. \R, \C, \Z denote the sets of Reals, Complex numbers, and integers  %
%   LaTeX \Re does not look right, and there is no \Co(mplex) or \In(teger)  %
%   but the commands defined in this file overcome this limiation            %
%                                                                            %
%   This file also has the box notation used in the chirplet papers          %
%   such as \sheart to denote shear in time                                  %
%                                                                            %
%   Add color to your LaTeX document using commands like \red, \green, etc   %  
%                                                                            %
%   Somewhere near the beginning of your latex document, you should add      %
%   \input{/v/info/latex/extracommands.tex}                                  %
%                                                                            %
%   comments, suggestions, corrections: steve@media.mit.edu                  %
%                                                                            %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%\input{/u/steve/figs/figcommands}
%   See also (MIT Media Lab decstations): /usr/gnu/resources/tex/inputs

% extracommands are case sensitive and may not contain numbers; e.g. Ro: R0

% Use: \red red_text \black normal \green gone_green \black normal .....
% \red red_text
% doesnt work in titles, \maketitle...
% gives unmatched { much later in source file, if no \black at end of \Large
% see  ~blount/class/color/final.tex for more examples of Use
\def\red{{\special{"@endspecial 1 0 0 setrgbcolor @beginspecial @setspecial}}}
\def\green{{\special{"@endspecial 0 1 0 setrgbcolor @beginspecial @setspecial}}}
\def\blue{{\special{"@endspecial 0 0 1 setrgbcolor @beginspecial @setspecial}}}
\def\cyan{{\special{"@endspecial 1 0 0 0 setcmykcolor @beginspecial @setspecial}}}
\def\magenta{{\special{"@endspecial 0 1 0 0 setcmykcolor @beginspecial @setspecial}}}
\def\yellow{{\special{"@endspecial 0 0 1 0 setcmykcolor @beginspecial @setspecial}}}
\def\black{{\special{"@endspecial 0 0 0 setrgbcolor @beginspecial @setspecial}}}
\def\greyq{{\special{"@endspecial .1 .1 .1 setrgbcolor @beginspecial @setspecial}}}
\def\greyw{{\special{"@endspecial .2 .2 .2 setrgbcolor @beginspecial @setspecial}}}
\def\greye{{\special{"@endspecial .3 .3 .3 setrgbcolor @beginspecial @setspecial}}}
\def\greyr{{\special{"@endspecial .4 .4 .4 setrgbcolor @beginspecial @setspecial}}}
\def\greyt{{\special{"@endspecial .5 .5 .5 setrgbcolor @beginspecial @setspecial}}}
\def\greyy{{\special{"@endspecial .6 .6 .6 setrgbcolor @beginspecial @setspecial}}}
\def\greyu{{\special{"@endspecial .7 .7 .7 setrgbcolor @beginspecial @setspecial}}}
\def\greyi{{\special{"@endspecial .8 .8 .8 setrgbcolor @beginspecial @setspecial}}}
\def\greyo{{\special{"@endspecial .9 .9 .9 setrgbcolor @beginspecial @setspecial}}}

%\newcommand{\be}{\begin{singlespace} \begin{equation}}
%\newcommand{\ee}{\end{equation} \end{singlespace}}
%\newcommand{\bea}{\begin{singlespace} \begin{eqnarray}}
%\newcommand{\eea}{\end{eqnarray} \end{singlespace}}
\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}
\newcommand{\bea}{\begin{eqnarray}}
\newcommand{\eea}{\end{eqnarray}}
\newcommand{\bi}{\begin{itemize}}
\newcommand{\ei}{\end{itemize}}
\newcommand{\intinf}{\int_{- \infty}^{\infty}}
\newcommand{\etal}{{\em et al. }}

%\newtheorem{theorem}{Theorem}[section] % must number theorems by section in
                                       % thesis; if change, note in thesis 
%theorem and proposition commented out due to error below:
%This is TeX, Version 3.1415 (C version 6.1) LaTeX Version 2.09 <25 March 1992>
%(/mann/a/a/bigu//extracommands.tex
%! TeX capacity exceeded, sorry [input stack size=300].
%\cl@section ->\cl@section \@elt {theorem}
%...
%l.64 \newtheorem{definition}{Definition}[section]

%\newtheorem{definition}{Definition}[section]

%\newtheorem{example}{Example}

%\newtheorem{proposition}{Proposition}[section]

%  \F for the Fourieroperator
\newcommand{\F}{\mbox{$\cal F$}}
%  \bu for a Chirplet Transform, like underline bold... underline twice...?
\newcommand{\bu}[1]{\underline{\bf #1}}
\newcommand{\subsubsubsection}[1]{\underline{\bf #1}: }
\newcommand{\subsubsubsubsection}[1]{{\bf #1}: }
\newcommand{\roz}[1]{{\tt {\fbox{\bf Roz}}: #1 {\fbox{\rule[0ex]{4ex}{0ex}\rule[0ex]{0ex}{2ex}}}}}
\newcommand{\steve}[1]{{\tt {\fbox{\bf Steve}}: #1 {\fbox{\rule[0ex]{0ex}{2ex}\rule[0ex]{4ex}{0ex}}}}}
%  \R and \C   The set of Real and Complex numbers
%  may be used in equation or text mode
%  LaTeX has \Re but no \Co; define both in the traditional form (non script)
%\newcommand{\R}{\mbox{\rule[0ex]{.2ex}{1.56ex} \hspace{-1.6ex} \bf R}}
%\newcommand{\R}{\mbox{I \hspace{-2ex} {\bf R}}} 
\newcommand{\R}{\mbox{I \hspace{-1.5ex} {\bf R}}} 
%%\newcommand{\V}{\mbox{V \hspace{-2.5ex} {\bf V}}} 
\newcommand{\V}{\mbox{V \hspace{-2.45ex} {\bf V}}} 
%%\newcommand{\R}{\mbox{I \hspace{-1.8ex} {\bf R}}} 
\newcommand{\C}{\mbox{   % mbox removes italics in equation mode
                \rule[.125ex]{0ex}{1.1ex}  % take out second line for now
                \hspace{-1.2ex}
                \rule[.0625ex]{.2ex}{1.4ex}
                \hspace{-2.4ex}
                \bf C
                }}
\newcommand{\Z}{\mbox{Z \hspace{-2.5ex} Z}}
\newcommand{\Ro}{\R_{\neq 0}} % the real line except for 0, for p-chirplet space
% big number
\newcommand{\bign}{\mbox{$q_{\mbox{\tiny big}}$}} 
% General operator
\newcommand{\BOX}{\overline{\Box}}  % zero width ruler for same height
% 8 TF--perspective (chirplet) operators
% eg. left right arrow for shear in time (sheart) (chirping in freq)
% usage of these commands:   $\transt$
% also note that it is necessary to have the $$ within the $$ environment
% (ie two levels of nested $$ in effect) since argument of fbox is a command
\newcommand{\rzero}{\rule[0ex]{0ex}{1.8ex}}  % zero width ruler for same height
                                             % was 1.8ex for thesis
\newcommand{\rb}{\rzero \raisebox{-.515ex}}    % raise box -.5ex to same height
\newcommand{\transt}
%%        {{\footnotesize
           {\fbox{\rb{$\stackrel{\textstyle \rightarrow}{\rightarrow}$}}}
%%        }}
\newcommand{\transf}
%%        {{\scriptsize
           {\fbox{\rzero $\uparrow \uparrow$}}
%%        }}
\newcommand{\dilt}
%%        {{\small
           {\fbox{\rb{$\stackrel{\textstyle
           \leftrightarrow}{\leftrightarrow}$}}}
%%        }}
\newcommand{\dilf}
%%        {{\tiny
           {\fbox{\rzero $\updownarrow \updownarrow$}}
%%        }}
\newcommand{\sheart}
%%        {{\tiny
           {\fbox{\rb{$\stackrel{\textstyle
           \rightarrow}{\leftarrow}$}}}
%%        }}
\newcommand{\shearf}
%%        {{\tiny
           {\fbox{\rzero $\downarrow \uparrow$}}
%%        }}
% single operator to denote const TF product
\newcommand{\dil}
%%        {{\tiny
           {\fbox{\rb{$
           \stackrel{\textstyle \leftrightarrow}{\leftrightarrow}
           \hspace{-1.75ex} \stackrel{\scriptstyle \vee}
           {\scriptstyle \wedge} \hspace{.75ex} $}}}
%%        }}
\newcommand{\projf}
%%        {{\tiny
           {\fbox{\rb{$\stackrel{.}{\textstyle \leftrightarrow}$}}}
%%        }}
\newcommand{\projt}
%%        {{\tiny
           {\fbox{\rzero $\updownarrow \cdot $}}
%%        }}
\newcommand{\Transt}
%%        {{\tiny
           {\overline{\fbox{\rb{$\stackrel{\textstyle
           \rightarrow}{\rightarrow}$}}}}
%%        }}
\newcommand{\Transf}
%%        {{\tiny
           {\overline{\fbox{\rzero $\uparrow \uparrow$}}}
%%        }}
\newcommand{\Dilt}
%%        {{\tiny
           {\overline{\fbox{\rb{$\stackrel{\textstyle
           \leftrightarrow}{\leftrightarrow}$}}}}
%%        }}
\newcommand{\Dilf}
%%        {{\tiny
           {\overline{\fbox{\rzero $\updownarrow \updownarrow$}}}
%%        }}
\newcommand{\Sheart}
%%        {{\tiny
           {\overline{\fbox{\rb{$\stackrel{\textstyle
           \rightarrow}{\leftarrow}$}}}}
%%        }}
\newcommand{\Shearf}
%%        {{\tiny
           {\overline{\fbox{\rzero $\downarrow \uparrow$}}}
%%        }}
%% single operator to denote const TF product
\newcommand{\Dil}
%%        {{\tiny
           {\overline{\fbox{\rb{$
           \stackrel{\textstyle \leftrightarrow}{\leftrightarrow}
           \hspace{-1.75ex} \stackrel{\scriptstyle \vee}
           {\scriptstyle \wedge} \hspace{.75ex} $}}}}
%%        }}
\newcommand{\Projf}
%%        {{\tiny
           {\overline{\fbox{\rb{$\stackrel{.}{\textstyle
           \leftrightarrow}$}}}}
%%        }}
\newcommand{\Projt}
%%        {{\tiny
           {\overline{\fbox{\rzero $\updownarrow \cdot $}}}
%%        }}

% \beg   \end   \dif   t_{avg} not needed: use t_c;  Example use:   $t\beg = 0$
\newcommand{\sbeg}{_{\mbox{\scriptsize beg}}}          %
\newcommand{\send}{_{\mbox{\scriptsize end}}}          % \send = scriptsize beg
\newcommand{\sdif}{_{\mbox{\scriptsize dif}}}          % \end  = LaTeX command
\newcommand{\ssbeg}{_{\mbox{\tiny beg}}} %           super
\newcommand{\ssend}{_{\mbox{\tiny end}}} % \ssend =       scriptsize
\newcommand{\ssdif}{_{\mbox{\tiny dif}}} %             sub

% generalized AM and FM operators        ... no longer used in thesis
\newcommand{\amt}{\fbox{${\cal F}AM$}}
\newcommand{\fmt}{\fbox{${\cal F}FM$}}
\newcommand{\amf}{\fbox{$AM$}}
\newcommand{\fmf}{\fbox{$FM$}}

%sections and subsections; can change spacing if necessary
%\newcommand{\sect}[1]{\vspace{-.1in} \section{#1} \vspace{-.2in}}
%\newcommand{\ssect}[1]{\vspace{-.1in} \section{#1} \vspace{-.2in}}
%\newcommand{\subsect}[1]{\vspace{-.1in} \subsection{#1} \vspace{-.2in}}
%\newcommand{\sssect}[1]{\vspace{-.1in} \subsubsection{#1} \vspace{-.2in}}
%\newcommand{\subsubsect}[1]{\vspace{-.1in} \subsubsection{#1} \vspace{-.2in}}

\newcommand{\cit}{~\cite}

