%-----------------------------slides.sty ---------------------------
\typeout{Slide Style for LaTeX/AmSLaTeX 2004 V1.2 - 30/maio/2007}       
%-------------------------------------------------------------------
\def\verttopcenter{%
    \def\subsec@begin@vspace{\vspace*{0.5em}}
    \def\subsec@end@vspace{\vspace*{\fill}}
    \def\slide@begin@vspace{\relax}
    \def\slide@end@vspace{\vspace*{\fill}}%
    }
 
\def\vertcentertopcenter{%
    \def\subsec@begin@vspace{\vspace*{0.5em}}
    \def\subsec@end@vspace{\vspace*{\fill}}
    \def\slide@begin@vspace{\center\relax}
    \def\slide@end@vspace{\endcenter\vspace*{\fill}}%
    }
 
\def\subitem#1{\vspace*{0.3\parskip}\\\Smallsize{#1}\Normalsize}
 
\def\btwnsubs{{\vspace*{\fill}\\\ % 
}}
 
%
\def\landscape{%
    \sloppy
    \textwidth     286mm
    \textheight    174mm
    \topmargin     -22mm
    \oddsidemargin -22mm
    \evensidemargin\oddsidemargin
}
 
%
% Frame for the whole page
% \@my@box@frame{thinkness}{hspace}{vspace}{...}
%
\newdimen \@tempdimc
\newdimen \@tempdimd
 
\def\@my@box@frame#1#2#3#4{\vbox{%
    \setbox\@tempboxa\hbox{#4}%
    \@tempdima#3
    \advance\@tempdima #1 \advance\@tempdima \dp\@tempboxa
    \hbox{\lower \@tempdima%
          \hbox{\vbox{{\color{\bordercolor}\hrule depth0pt height #1}%
                      \hbox{{\color{\bordercolor}\vrule depth0pt width #1}%
                            \hskip#2%
                            \vbox{\vskip#3 \box\@tempboxa\vskip#3}%
                            \hskip#2%
                            {\color{\bordercolor}\vrule depth0pt width #1}}
                      {\color{\bordercolor}\hrule depth0pt height #1}}}}}}
 
%
% Shadow Frame for the whole page:
% \@my@shadow@box@frame{frame thinkness}{shade thickness}{hspace}{vspace}{...}
%
 
\def\@my@shadow@box@frame#1#2#3#4#5{\vbox{%
    \setbox\@tempboxa\hbox{#5}%
    \@tempdima#4
    \advance\@tempdima #1 \advance\@tempdima \dp\@tempboxa
    \setbox\@tempboxa%
     \hbox{\lower \@tempdima%
          \hbox{\vbox{{\color{\bordercolor}\hrule depth0pt height #1}%
                      \hbox{{\color{\bordercolor}\vrule depth0pt width #1}%
                            \hskip#3%
                            \vbox{\vskip#4 \box\@tempboxa\vskip#4}%
                            \hskip#3%
                            {\color{\bordercolor}\vrule depth0pt width #1}}
                      {\color{\bordercolor}\hrule depth0pt height #1}}}}%
     \@tempdimc\ht\@tempboxa \advance\@tempdimc-#2
     \advance\@tempdimc\@tempdima
     \@tempdimd\wd\@tempboxa
     \hbox{\box\@tempboxa\relax%
           \lower\@tempdima\hbox{
             {\color{\bordercolor}\vrule width#2 height\@tempdimc depth0pt}}}
    \nointerlineskip\moveright#2
    \vbox{{\color{\bordercolor}\hrule height#2 width\@tempdimd depth0pt}}}}
 
%
% Oval frame: by Tomoki Shiratori
% \@my@oval@frame{thickness}{hspace}{vspace}{...}
%     thickness = \thinlines or \thicklines
 
\def\@my@oval@frame#1#2#3#4{\vbox{%
   #1%
   \setbox0 = \vbox{%
        \vskip#3\relax
        #4\relax
        \vskip#3\relax}%
   \@tempdimc \ifdim \ht0 >\wd0 \wd0\else \ht0 \fi%
   \divide\@tempdimc 10\relax
   \@getcirc{\@tempdimc}%
   \@tempdimc\ht0%
   \advance\@tempdimc -\@tempdima%
   \advance\@tempdimc 2\@wholewidth%
   \@tempdimd .5\@tempdima \advance\@tempdimd -\@wholewidth%
   \setbox0 = \hbox{%
       \raise\@tempdimd\hbox{{\color{\bordercolor}
                     \vrule height\@tempdimc width\@wholewidth}}%
       \hskip#2\relax
       \box0\relax
       \hskip#2\relax
       \raise\@tempdimd\hbox{{\color{\bordercolor}
             \vrule height\@tempdimc width\@wholewidth}}}%
   \@tempdimd\wd0 \@tempdimc\@tempdimd%
   \advance\@tempdimc -\@tempdima%
   \vskip -.5\@tempdima \vskip\@wholewidth%
   \hbox to\@tempdimd{%
       \@tempcntb\@tempcnta \advance\@tempcntb 3\relax
       {{\color{\bordercolor}\@circlefnt \char\@tempcntb\kern -.5\@tempdima}}%
       \vbox{{\color{\bordercolor}\hrule height\@wholewidth width\@tempdimc}}%
       {{\color{\bordercolor}\@circlefnt \kern .5\@tempdima 
               \kern -\@wholewidth \char\@tempcnta%
        \kern -\@tempdima \kern\@wholewidth}}}%
   \vskip -.5\@tempdima%
   \box0\relax
   \vskip -.5\@tempdima%
   \hbox to\@tempdimd{%
       \@tempcntb\@tempcnta \advance\@tempcntb\tw@\relax
       {{\color{\bordercolor}\@circlefnt \char\@tempcntb\kern -.5\@tempdima}}%
       \vbox{{\color{\bordercolor}\hrule height\@wholewidth width\@tempdimc}}%
       {\advance\@tempcntb\m@ne%
        {\color{\bordercolor}\@circlefnt 
            \kern .5\@tempdima \kern -\@wholewidth \char\@tempcntb%
        \kern -\@tempdima \kern \@wholewidth}}}%
   \vskip -.5\@tempdima \vskip\@wholewidth}}%
 
%
% modification of \@outputpage (from latex.tex)
%
\def\@outputpage{\begingroup\catcode`\ =10
     \let\-\@dischyph \let\'\@acci \let\`\@accii \let\=\@acciii
    \if@specialpage
     \global\@specialpagefalse\@nameuse{ps@\@specialstyle}\fi
     \if@twoside
       \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
            \let\@themargin\oddsidemargin
          \else \let\@thehead\@evenhead
          \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
     \fi\fi
     \shipout
     \vbox{\normalsize \baselineskip\z@ \lineskip\z@
           \let\par\@@par %% 15 Sep 87
           \vskip \topmargin \moveright\@themargin
           \my@frame{%
           \vbox{\setbox\@tempboxa
                   \vbox to\headheight{\vfil \hbox to\textwidth
                                  {\let\label\@gobble \let\index\@gobble
                                         \@thehead}} %% 22 Feb 87
                 \dp\@tempboxa\z@
                 \box\@tempboxa
                 \vskip \headsep
                 \box\@outputbox
                 \baselineskip\footskip
                 \hbox to\textwidth{\let\label\@gobble
                           \let\index\@gobble  %% 22 Feb 87
                           \@thefoot}}%
           }% end of my@frame
           }%
           \global\@colht\textheight
           \endgroup\stepcounter{page}\let\firstmark\botmark}
 
%
% Heading and Footing
%  In part, from fancyheading.sty
%
 
\def\lhead#1{\gdef\@elhead{#1}\gdef\@olhead{#1}}
\def\chead#1{\gdef\@echead{#1}\gdef\@ochead{#1}}
\def\rhead#1{\gdef\@erhead{#1}\gdef\@orhead{#1}}
 
\def\lfoot#1{\gdef\@elfoot{#1}\gdef\@olfoot{#1}}
\def\cfoot#1{\gdef\@ecfoot{#1}\gdef\@ocfoot{#1}}
\def\rfoot#1{\gdef\@erfoot{#1}\gdef\@orfoot{#1}}
 
\def\@slidehead#1#2#3#4#5{#1\hbox to\textwidth%
    {\vbox{\hbox{\rlap{\parbox[b]{\textwidth}%
    {\raggedright#2\strut}}\hfill\parbox[b]{\textwidth}%
    {\centering#3\strut}\hfill\llap{\parbox[b]{\textwidth}%
    {\raggedleft#4\strut}}}}}#5}
 
\def\@slidefoot#1#2#3#4#5{#1\hbox to\textwidth%
    {\vbox{\hbox{\rlap{\parbox[t]{\textwidth}%
    {\raggedright#2\strut}}\hfill\parbox[t]{\textwidth}%
    {\centering#3\strut}\hfill\llap{\parbox[t]{\textwidth}%
    {\raggedleft#4\strut}}}}}#5}
 
\def\ps@slide{%
    \def\@oddhead{\@slidehead\relax\@olhead\@ochead\@orhead\hss}%
    \def\@oddfoot{\@slidefoot\relax\@olfoot\@ocfoot\@orfoot\hss}%
    \def\@evenhead{\@slidehead\hss\@elhead\@echead\@erhead\relax}%
    \def\@evenfoot{\@slidefoot\hss\@elfoot\@ecfoot\@erfoot\relax}%
    }
 
\def\ps@empty{%
    \def\@oddhead{\@slidehead\relax\space\space\space\hss}%
    \def\@oddfoot{\@slidefoot\relax\space\space\space\hss}%
    \def\@evenhead{\@slidehead\hss\space\space\space\relax}%
    \def\@evenfoot{\@slidefoot\hss\space\space\space\relax}%
    }
 
%
% by modifying \fbox in latex.tex
% \Fbox{box sep}{box rule width/height}{...}
%
\def\Fbox#1#2#3{\my@box@frame{#2}{#1}{#1}{#3}}
 
%
% Places a shadow box
% \SFbox{box sep}{box rule width/height}{shade rule width/height}{...}
%
\def\SFbox#1#2#3#4{\@my@shadow@box@frame{#2}{#3}{#1}{#1}{#4}}
 
%
% by modifying \fbox in latex.tex
% \Underline & \Underbar
%
\def\Underline#1{%
    \leavevmode%
    \setbox\@tempboxa\hbox{#1}%
    \@tempdima1pt
    \advance\@tempdima 3pt
    \advance\@tempdima \dp\@tempboxa
    \hbox{\lower \@tempdima%
          \hbox{\vbox{\hbox{\vbox{\box\@tempboxa\vskip3pt}}%
                      \hrule height1pt}}}}
 
% from plain.tex
\def\Underbar#1{$\setbox\z@\hbox{#1}\dp\z@\z@
  \m@th \Underline{\box\z@}$}
 
%
% Things to be entered in texts
%
\def\title{\@ifnextchar[{\@@Title}{\@Title}}
\def\@Title#1{\def\slide@title{\uppercase{#1}}
              \def\slidetitle{#1}}
\def\@@Title[#1]#2{\def\slide@title{\uppercase{#2}}
              \def\slidetitle{#1}}
\def\slide@title{\hspace*{1pt}}
\def\slidetitle{\hspace*{1pt}}
 
\def\author{\@ifnextchar[{\@@Author}{\@Author}}
\def\@@Author[#1]#2{\def\slide@author{#2}%
                    \def\slideauthor{#1}}
\def\@Author#1{\def\slide@author{#1}
               \def\slideauthor{#1}}
\def\slide@author{\hspace*{1pt}}
\def\slideauthor{\hspace*{1pt}}
 
\def\organization#1{\def\authororga{#1}}
\def\authororga{\hspace*{1pt}}
 
\def\date#1{\def\slidedate{#1}}
\def\slidedate{\today}
 
%
% section and subsection
%
\newcounter{sec@ctr}
\setcounter{sec@ctr}{1}
 
\def\section{\@ifnextchar[{\@@Section}{\@Section}}
 
\def\@Section#1{\clearpage
               \thispagestyle{empty}
               \vspace*{\fill}
               \begin{center}
               \Hugesize\uppercase{#1}
               \end{center}
               \vspace*{\fill}
               \def\sectiontitle{#1}
               \Add@@secitem{toc}{\thesec@ctr}{#1}
               \addtocounter{sec@ctr}{1}
               \xdef\sub@section@text{}
               \clearpage}
 
\def\@@Section[#1]#2{\clearpage
               \thispagestyle{empty}
               \vspace*{\fill}
               \begin{center}
               \Hugesize\uppercase{#2}
               \end{center}
               \vspace*{\fill}
               \def\sectiontitle{#1}
               \Add@@secitem{toc}{\thesec@ctr}{#1}
               \addtocounter{sec@ctr}{1}
               \xdef\sub@section@text{}
               \clearpage}
 
\def\sectiontitle{\relax}
 
\def\Add@@secitem#1#2#3{\if@filesw \begingroup
\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
\def\protect##1{\string\string\string##1\string\space
   \space}\@temptokena{\thepage}%
\edef\@tempa{\write \@auxout{\string\@writefile{#1}{\protect
     \secitem{#2}{#3}{\the\@temptokena}}}}\@tempa
   \if@nobreak \ifvmode\nobreak\fi\fi\endgroup\fi}
 
\gdef\sub@section@text{}
 
 
\def\subsection#1{\newpage
                       \begin{center}
                         {#1} \\
                         {\settowidth{\hhhh}{\mbox{#1}}
                         \rule[0.12in]{\hhhh}{1.2mm}}
                        \end{center}}
 
 
%\def\subsection#1{\addtocounter{sec@ctr}{-1}
%                  \Add@@subsecitem{toc}{\thesec@ctr}{#1}
%                  \addtocounter{sec@ctr}{1}
%                  \xdef\sub@section@text{#1}
%                  \pseudosubsection{#1}}
%
%\def\pseudosubsection#1{\subsec@begin@vspace
%                  \hspace*{\fill}
%                  \sub@section@frame{\Largesize #1}
%                  \hspace*{\fill}
%                  \subsec@end@vspace}
 
%\def\remindtitle{\pseudosubsection{\sub@section@text}}
 
\def\anitem#1{\addtocounter{sec@ctr}{-1}
              \Add@@subsecitem{toc}{\thesec@ctr}{#1}
              \addtocounter{sec@ctr}{1}
              {#1}}
 
\def\Add@@subsecitem#1#2#3{\if@filesw \begingroup
\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
\def\protect##1{\string\string\string##1\string\space
   \space}\@temptokena{\thepage}%
\edef\@tempa{\write \@auxout{\string\@writefile{#1}{\protect
     \subsecitem{#2}{#3}{\the\@temptokena}}}}\@tempa
   \if@nobreak \ifvmode\nobreak\fi\fi\endgroup\fi}
 
%
% titlepage
%
\def\titlepage{\thispagestyle{empty}
    \vspace*{\fill}
    \begin{center}
    \Hugesize \slide@title \\ [2em]
    \Normalsize\slide@author \\ [.5em]
    \Normalsize\authororga \\ [1em]
    \Normalsize\slidedate
    \end{center}
    \vspace*{\fill}
    \setcounter{page}{0}
    \clearpage}
 
%
% tables of contents
%
\def\contentsname{CONTENTS}
 
\newcounter{@@@dum@@@}
\setcounter{@@@dum@@@}{0}
 
\def\slidecontents{\@ifnextchar*{\@@slidecontents}{\@slidecontents}}
 
\def\@slidecontents{\openin1 \jobname.toc \ifeof1 \typeout
           {No file \jobname.toc}\else\closein1\relax
           \def\secitem##1##2##3{%
               \ifnum\value{@@@dum@@@}=0%
                  \setcounter{@@@dum@@@}{1}%
                  \begin{citemize}\contsize\fi
                  \item[$\bullet$] ##2 \dotfill\ ##3\ignorespaces}
           \def\subsecitem##1##2##3{\ignorespaces}
           \clearpage
           \thispagestyle{empty}
           \addtocounter{page}{-1}
           \subsec@begin@vspace
           \hspace*{\fill}
           \sub@section@frame{\Largesize\contentsname}
           \hspace*{\fill}
           \subsec@end@vspace
           \input{\jobname.toc}
           \ifnum\value{@@@dum@@@}=1%
              \setcounter{@@@dum@@@}{0}%
              \end{citemize}\fi
           \vspace*{\fill}
           \clearpage
           \fi}
 
\def\@@slidecontents{\openin1 \jobname.toc \ifeof1 \typeout
           {No file \jobname.toc}\else\closein1\relax
           \def\secitem##1##2##3{%
               \ifnum\value{@@@dum@@@}=0%
                  \setcounter{@@@dum@@@}{1}%
                  \begin{citemize}\contsize\fi
                  \item[$\bullet$] ##2 \hspace{\fill}}
           \def\subsecitem##1##2##3{\ignorespaces}
           \clearpage
           \thispagestyle{empty}
           \addtocounter{page}{-1}
           \subsec@begin@vspace
           \hspace*{\fill}
           \sub@section@frame{\Largesize\contentsname}
           \hspace*{\fill}
           \subsec@end@vspace
           \input{\jobname.toc}
           \ifnum\value{@@@dum@@@}=1%
              \setcounter{@@@dum@@@}{0}%
              \end{citemize}\fi
           \vspace*{\fill}
           \clearpage
           \fi}
 
\def\sectioncontents{\@ifnextchar*{\@@sectioncontents}{\@sectioncontents}}
 
\newcounter{@@@dummy@@@}
\setcounter{@@@dummy@@@}{0}
 
\@ifundefined{checkmark}%
    {\def\mycheckmark{\surd}}%
    {\def\mycheckmark{\checkmark}}
 
\def\mysecpointer{\Rightarrow}
 
\def\@sectioncontents{\openin1 \jobname.toc \ifeof1 \typeout
           {No file \jobname.toc}\else\closein1\relax
           \def\secitem##1##2##3{%
               \ifnum\value{@@@dum@@@}=0%
                  \setcounter{@@@dum@@@}{1}%
                  \begin{citemize}\contsize\fi
               \ifnum\value{@@@dummy@@@}=1%
                  \setcounter{@@@dummy@@@}{0}%
                  \end{ccitemize}\fi
               \item[\ifnum\value{sec@ctr}>##1$\mycheckmark\;\bullet$%
                     \else\ifnum\value{sec@ctr}=##1$\mysecpointer\bullet$%
                     \else$\bullet$\fi\fi] ##2 \dotfill\ ##3\ignorespaces}
           \def\subsecitem##1##2##3{%
               \ifnum\value{sec@ctr}=##1%
                  \ifnum\value{@@@dummy@@@}=0
                     \setcounter{@@@dummy@@@}{1}
                     \begin{ccitemize}\contsizesize\fi
                  \item[$\bullet$] ##2 \hspace*{\fill}\fi}
           \clearpage
           \thispagestyle{empty}
           \addtocounter{page}{-1}
%          \subsec@begin@vspace
           \hspace*{\fill}
           \sub@section@frame{\Largesize\contentsname}
           \hspace*{\fill}
           \subsec@end@vspace
           \input{\jobname.toc}
           \ifnum\value{@@@dummy@@@}=1%
              \setcounter{@@@dummy@@@}{0}%
              \end{ccitemize}\fi
           \ifnum\value{@@@dum@@@}=1%
              \setcounter{@@@dum@@@}{0}%
              \end{citemize}\fi
           \vspace*{\fill}
           \clearpage
           \fi}
 
\def\@@sectioncontents*{\openin1 \jobname.toc \ifeof1 \typeout
           {No file \jobname.toc}\else\closein1\relax
           \def\secitem##1##2##3{%
               \ifnum\value{@@@dum@@@}=0%
                  \setcounter{@@@dum@@@}{1}%
                  \begin{citemize}\contsize\fi
               \ifnum\value{@@@dummy@@@}=1%
                  \setcounter{@@@dummy@@@}{0}%
                  \end{ccitemize}\fi
               \item[\ifnum\value{sec@ctr}>##1$\mycheckmark\;\bullet$%
                     \else\ifnum\value{sec@ctr}=##1$\mysecpointer\bullet$%
                     \else$\bullet$\fi\fi] ##2 \hspace*{\fill}}
           \def\subsecitem##1##2##3{%
               \ifnum\value{sec@ctr}=##1%
                  \ifnum\value{@@@dummy@@@}=0
                     \setcounter{@@@dummy@@@}{1}
                     \begin{ccitemize}\contsizesize\fi
                  \item[$\bullet$] ##2 \hspace{\fill}\fi}
           \clearpage
           \thispagestyle{empty}
           \addtocounter{page}{-1}
%          \subsec@begin@vspace
           \hspace*{\fill}
           \sub@section@frame{\Largesize\contentsname}
           \hspace*{\fill}
           \subsec@end@vspace
           \input{\jobname.toc}
           \ifnum\value{@@@dummy@@@}=1%
               \setcounter{@@@dummy@@@}{0}%
               \end{ccitemize}\fi
           \ifnum\value{@@@dum@@@}=1%
               \setcounter{@@@dum@@@}{0}%
               \end{citemize}\fi
           \vspace*{\fill}
           \clearpage
           \fi}
 
\def\citemize{\list{\relax}%
    {\leftmargin=2.5em
     \rightmargin=.5em
     \labelwidth=2em
     \labelsep=.5em
     \def\makelabel##1{\hss\llap{##1}}}}
\let\endcitemize =\endlist
 
\def\ccitemize{\list{\relax}%
    {\leftmargin=1em
     \rightmargin=0em
     \labelwidth=.5em
     \labelsep=.5em
     \def\makelabel##1{\hss\llap{##1}}}}
\let\endccitemize =\endlist
 
%
% modifications to enumerate env.
%
\def\labelenumi{\theenumi.}
        \def\theenumi{\arabic{enumi}}
\def\labelenumii{\theenumi.\theenumii.}
        \def\theenumii{\arabic{enumii}}
        \def\p@enumii{\theenumi.}
\def\labelenumiii{\theenumi.\theenumii.\theenumiii.}
        \def\theenumiii{\arabic{enumiii}}
        \def\p@enumiii{\theenumi.\theenumii.}
\def\labelenumiv{\theenumi.\theenumii.\theenumiii.\theenumiv.}
        \def\theenumiv{\arabic{enumiv}}
        \def\p@enumiv{\theenumi.\theenumii.\theenumiii.}
 
\def\enumerate{\ifnum \@enumdepth >3 \@toodeep\else
      \advance\@enumdepth \@ne
      \edef\@enumctr{enum\romannumeral\the\@enumdepth}\list
      {\csname label\@enumctr\endcsname}{\usecounter{\@enumctr}
      \labelsep =  .2em
      \ifnum \@enumdepth = 1
             \labelwidth = 1em
             \leftmargin=\leftskip
             \advance\leftmargin1.8em
      \else \ifnum \@enumdepth = 2
                   \labelwidth = 1.6em
                   \leftmargin = 1.8em  %\leftmargin = \labelwidth+\labelsep
            \else \ifnum \@enumdepth = 3
                         \labelwidth = 2.4em
                         \leftmargin = 2.6em
                  \else
                         \labelwidth = 3.2em
                         \leftmargin = 3.4em
                  \fi
            \fi
      \fi
      \def\makelabel##1{\rlap{##1}\hss}}\fi}
 
%
% Font sizes
%

\newfont{\Hugefont}{cmss17 scaled\magstep4} 
\newfont{\hugefont}{cmss17 scaled\magstep3} 
\newfont{\hugettfont}{cmtt12 scaled\magstep5} 
\def\Largefont{\huge}  
\def\Normalfont{\LARGE}
\def\Smallfont{\Large}

\def\Hugesize{\Huge}   
\def\Largesize{\huge}  
\def\Normalsize{\LARGE}
\def\Smallsize{\Large}
 
\def\contsize{\LARGE}
\def\contsizesize{\Large}
\def\smallcontentsfonts{%
    \def\contsize{\Large}
    \def\contsizesize{\large}}
 
\def\smallerfonts{%
    \def\Hugesize{\huge}
    \def\Largesize{\LARGE}
    \def\Normalsize{\Large}
    \def\Smallsize{\large}
    \def\contsize{\Large}
    \def\contsizesize{\large}
    \def\smallcontentsfonts{%
        \def\contsize{\large}
        \def\contsizesize{\normalsize}}%
    }
%
% modifications to document env.
%
 
\let\@@@@document\document
\def\document{\@@@@document
    \Normalsize}
\let\@@end@@document\enddocument
\def\enddocument{%
\if@filesw \newwrite\tf@toc
  \immediate\openout\tf@toc=\jobname.toc
  \typeout{Writing toc file \jobname.toc}\fi
    \@@end@@document}
 
%
% slide environment
%
\newdimen\defaultskip
\def\slide{\@ifnextchar[{\@@Slide}{\@Slide}}
\def\@Slide{\@@Slide[0pt]}
\def\@@Slide[#1]{\slide@begin@vspace
           \begingroup
           \advance\leftskip\defaultskip
           \advance\rightskip\defaultskip
           \advance\leftskip#1
           \advance\rightskip#1
           \advance\leftmargini\leftskip}
\def\endslide{\par\endgroup
              \slide@end@vspace
              \clearpage}
 
%
% Page vertical spacing types
%
\def\vertcenter{%
    \def\subsec@begin@vspace{\vspace*{\fill}}
    \def\subsec@end@vspace{\vspace*{\fill}}
    \def\slide@begin@vspace{\vspace*{\fill}}
    \def\slide@end@vspace{\vspace*{\fill}}%
    }
\def\verttop{%
    \def\subsec@begin@vspace{\relax}
    \def\subsec@end@vspace{\vspace*{2em}}
    \def\slide@begin@vspace{\relax}
    \def\slide@end@vspace{\relax}%
    }
 
%
% Page Frame Definitions
%
\def\doubleboxframe{%
    \topmargin=-20mm
    \def\my@frame##1{%
        \@my@box@frame{.4em}{.3em}{.3em}%
        {\@my@box@frame{1.6pt}{.8em}{.8em}{##1}}}}
 
\def\shadowframe{%
    \def\my@frame##1{%
        \@my@shadow@box@frame{1.6pt}{3.2pt}{.8em}{.8em}{##1}}}
 
\def\ovalframe{%
 \def\my@frame##1{\@my@oval@frame{\thicklines}{.4em}{.3em}{##1}}}
 
%
% Subsection frames
%
\def\boxsecframe{\def\sub@section@frame##1{\Fbox{3pt}{1pt}{##1}}}
\def\shadowsecframe{\def\sub@section@frame##1{\SFbox{3pt}{1pt}{2pt}{##1}}}
 
%
% defaults
%

% slide head and foot
\lhead{\date}
\chead{\relax}   % empty
\rhead{\sectiontitle}
\lfoot{\slideauthor}
\cfoot{\relax}   % empty
\rfoot{\thepage}
 
%
\defaultskip=1em
%
\pagestyle{slide}

\landscape
\Hugesize

% no parindent
\parindent 0pt
 
% \vertcenter vs. \verttop
\vertcenter   % vertical centering
 
% \doubleboxframe vs. \shadowframe vs. \ovalframe
\ovalframe
 
% \boxsecframe vs. \shadowsecframe
%\shadowsecframe
 
% hyphenation off. Comment the following line if you want
% hyphenation on
\pretolerance=10000
 
% right-justification off
% Comment the following two lines if you want right-justification on
\@rightskip\@flushglue
\rightskip\@rightskip
 
%
% use pointing hand
%
%\font\handsfont=hands scaled\magstep5
%\def\handright{{\handsfont \char"41}} % 1 in diameter
%\def\handleft{{\handsfont \char"42}} % 2 in diameter
%\def\mysecpointer{\mbox{\handright}\,}

%%%%------------------------------------------------------------------ 
%%%% ------- Following commands added by R. Bigonha ------------------
\newcommand{\setskiplink}[1]{
      \hypertarget{inicio-#1}{}
      \chead{\hyperlink{inicio-#1}{$||\!\!\!\Leftarrow$}~~
             \hyperlink{fim-#1}{$\Rightarrow\!\!\!||$}
      }
}
\newcommand{\defskiptarget}[1]{\clearpage\chead{}\hypertarget{fim-#1}{}}

\newcommand{\setreflink}[2]{\hypertarget{origem-#1}{}\hyperlink{destino-#1}{#2}}
\newcommand{\defreftarget}[1]{\hypertarget{destino-#1}{}
            \hyperlink{origem-#1}{$||\!\!\!\Leftarrow$}}

\newcounter{savedpagenumber}
\newcommand{\savepagenumber}{\clearpage\setcounter{savedpagenumber}{\value{page}}}
\newcommand{\restorepagenumber}{\clearpage\setcounter{page}{\value{savedpagenumber}}}
\newcommand{\edition}{undefined}
\newcommand{\setedition}[1]{\renewcommand{\edition}{#1}}
\newcommand{\newincluder}[1]{\newboolean{#1} \setboolean{#1}{true}}
\newcommand{\setincluder}[2]{\setboolean{#1}{#2}}
\newcommand{\optionalinclude}[3]{
            \savepagenumber
            \ifthenelse{\boolean{#1}}{
                  \ifthenelse{\equal{#2}{newpaging}}{\setcounter{page}{1}}{}
                  \input{#3}
                  \ifthenelse{\equal{#2}{newpaging}}{\restorepagenumber}{}
            }{}}  
\newcommand{\optionalitem}[2]{\ifthenelse{\boolean{#1}}{\item #2}{}}  
\newcommand{\optionaltext}[2]{\ifthenelse{\boolean{#1}}{#2}{}}  

\newcounter{pageoffset}
\newcommand{\alignpage}{
  \setcounter{pageoffset}{\value{page}-\value{page}/4*4}
  \ifthenelse{\value{pageoffset}= 3}{\clearpage\mbox{}
                                      \newpage\mbox{}}{
  \ifthenelse{\value{pageoffset}= 2}{\clearpage\mbox{}
                                     \newpage\mbox{}\mbox{}
                                     \newpage\mbox{}}{
  \ifthenelse{\value{pageoffset}= 1}{\clearpage\mbox{}
                                     \newpage\mbox{}
                                     \newpage\mbox{}      
                                     \newpage\mbox{}}
                                     {\clearpage}
}}}
\newcommand{\separator}{\centerline{\rule{6.0in}{0.5mm}}}
\newlength{\hhh}
\newlength{\hhhh}
\newlength{\hhhhh}
\newcommand{\setvh}[1]{\mbox{#1}\settowidth{\hhh}{\mbox{#1\ }}}
\newcommand{\vh}{\mbox{\mbox{}\hspace{\hhh}}}
\newcommand{\setvhh}[1]{\mbox{#1}\settowidth{\hhhhh}{\mbox{#1\ }}}
\newcommand{\vhh}{\mbox{\mbox{}\hspace{\hhhhh}}}
\newcommand{\x}[1]{\mbox{\mbox{}\hspace{#1em}}}
\newcommand{\DDH}{\mbox{\mbox{}\hspace{5em}}}
\newcommand{\DDh}{\mbox{\mbox{}\hspace{3em}}}
\newcommand{\ddh}{\mbox{\mbox{}\hspace{2em}}}
\newcommand{\dx}{\mbox{\mbox{}\hspace{1em}}}
\newcommand{\dxx}{\mbox{\mbox{}\hspace{2em}}}
\newcommand{\dxxx}{\mbox{\mbox{}\hspace{3em}}}
\newcommand{\dxxxx}{\mbox{\mbox{}\hspace{4em}}}
\newcommand{\ordem}{\mbox{${}^{\underline{\circ}}$\ }}
\newcommand{\ordema}{${}^{\underline{a}}$\ }
\newcommand{\apostrofe}{\mbox{$'$}}
\newcommand{\str}[1]{\mbox{\tt "}#1\mbox{\tt "}}
\newcommand{\cmd}[2][red]{\textcolor{#1}{\mbox{\tt "}#2\mbox{\tt "}}}
\newcommand{\blankline}{\mbox{}\\[1ex] \mbox{}\\}
\newcommand{\Blankline}{\mbox{}\\[2ex] \mbox{}\\}
\newcommand{\kw}[1]{\textcolor{red}{#1}}
\newcommand{\pc}[2][red]{\textcolor{#1}{\Underbar{#2}}}
\newcommand{\linklook}[2][red]{\textcolor{#1}{\Underbar{#2}}}
\newcommand{\threebigotimes}{\mbox{$\bigotimes \bigotimes \bigotimes$}}
\newcommand{\threebigoplus}{\mbox{$\bigoplus \bigoplus \bigoplus$}}
\newcommand{\angled}[1]{\ltsy #1\gtsy}

\newcommand{\aspas}{\mbox{\tt "}}
\newcommand{\here}{\textcolor{red}{\mbox{\Hugesize $\Longleftarrow$}}}

\newcommand{\newslide}[2][\slidetitlecolor]{\newpage
            \begin{center}
            {\textcolor{#1}{#2}} \\
            {\settowidth{\hhhh}{\mbox{#2}}
            \textcolor{#1}{\rule[0.12in]{\hhhh}{1.2mm}}}
            \end{center}}

\newcommand{\mylayout}{\setlength{\parskip}{0pt}
                            \addtolength{\labelwidth}{-1em}
                            \setlength{\partopsep}{0pt}
                            \setlength{\itemsep}{0pt}
                            \setlength{\parsep}{0pt}}
\newcommand{\Mylayout}{\setlength{\parskip}{0pt}
                            \setlength{\partopsep}{0pt}
                            \setlength{\itemsep}{15pt}
                            \setlength{\parsep}{0pt}}
\newcommand{\MYlayout}{\setlength{\parskip}{0pt}
                            \setlength{\partopsep}{0pt}
                            \setlength{\itemsep}{30pt}
                            \setlength{\parsep}{0pt}}
 
\renewcommand{\dbltopfraction}{.6}
\renewcommand{\topfraction}{.6}
\renewcommand{\bottomfraction}{.6}
\renewcommand{\textfraction}{.1}

\newcommand{\slidetitlecolor}{black}
\newcommand{\bordercolor}{black}
\newcommand{\setslidetitlecolor}[1]{\renewcommand{\slidetitlecolor}{#1}}
\newcommand{\setbordercolor}[1]{\renewcommand{\bordercolor}{#1}}
\newcommand{\setbackgroundcolor}[1]{\pagecolor{#1}}
\newcommand{\setforegroundcolor}[1]{\color{#1}}
\newcommand{\settextcolor}[1]{\color{#1}}
\newtheorem{definicao}{Defini\c{c}\~{a}o}
\newcommand{\definition}[1]{\begin{definicao}\mbox{#1:}\end{definicao}}
\newcommand{\definitionlabel}[1]{
        \mbox{\newcounter{#1}\setcounter{#1}{\value{definicao}}}}
 
\newtheorem{lema}{Lema}
\newcommand{\lemma}[1]{\begin{lema}\mbox{#1:}\end{lema}}
\newcommand{\lemmalabel}[1]{
            \mbox{\newcounter{#1}\setcounter{#1}{\value{lema}}}}
 
\newtheorem{notacao}{Nota\c{c}\~{a}o}
\newcommand{\notation}[1]{\begin{notacao}\mbox{#1:}\end{notacao}}
 
\newtheorem{proposicao}{Proposi\c{c}\~{a}o}
\newcommand{\proposition}[1]{
            \begin{proposicao}\mbox{#1:}\end{proposicao}}
\newcommand{\propositionlabel}[1]{
       \mbox{\newcounter{#1}\setcounter{#1}{\value{proposicao}}}}
 
\newtheorem{teorema}{Teorema}
\newcommand{\theorem}[1]{\begin{teorema}\mbox{#1:}\end{teorema}}
\newcommand{\theoremlabel}[1]{
           \mbox{\newcounter{#1}\setcounter{#1}{\value{teorema}}}}
\newcommand{\theend}{\mbox{}\hfill $\Box$}


\newcommand{\andsy }{\mbox{\(~\wedge~\)}}
\newcommand{\orsy  }{\mbox{\(~\vee~\)}}
\newcommand{\notsy }{\mbox{\(\neg\)}}
\newcommand{\stsy  }{\mbox{\(~\mid~\)}}
\newcommand{\ltsy  }{\mbox{\(<\)}}
\newcommand{\gtsy  }{\mbox{\(>\)}}
\newcommand{\ltgtsy}{\ltsy\gtsy}
\newcommand{\dif}{\mbox{$\not=$}}

\newcounter{enumci}
\newcommand{\saveenumi}{\mbox{\setcounter{enumci}{\value{enumi}}}}
\newcommand{\setenumi}{\setcounter{enumi}{\value{enumci}}}

\newenvironment{twoblocks}{\begin{minipage}[t]{139mm}}{\end{minipage}}
\newcommand{\centralbar}[2][\bordercolor]{\end{minipage}
\begin{minipage}[t]{0.5cm}{{\textcolor{#1}{$\stackrel{\rule{1mm}{1em}}{\rule[-#2]{1mm}{#2}}$}}}
\end{minipage}\begin{minipage}[t]{138mm}}


\newenvironment{twoBlocks}{\begin{minipage}[t]{90mm}}{\end{minipage}}
\newcommand{\centralBar}[2][\bordercolor]{\end{minipage}
\begin{minipage}[t]{0.5cm}{{\textcolor{#1}{$\stackrel{\rule{1mm}{1em}}{\rule[-#2]{1mm}{#2}}$}}}
\end{minipage}\begin{minipage}[t]{178mm}}

\newenvironment{Twoblocks}{\begin{minipage}[t]{180mm}}{\end{minipage}}
\newcommand{\Centralbar}[2][\bordercolor]{\end{minipage}
\begin{minipage}[t]{0.5cm}{{\textcolor{#1}{$\stackrel{\rule{1mm}{1em}}{\rule[-#2]{1mm}{#2}}$}}}
\end{minipage}\begin{minipage}[t]{87mm}}

\newenvironment{threeblocks}{\begin{minipage}[t]{88mm}}{\end{minipage}}
\newcommand{\leftbar}[2][\bordercolor]{\end{minipage}
\begin{minipage}[t]{5mm}{{\textcolor{#1}{$\stackrel{\rule{1mm}{1em}}{\rule[-#2]{1mm}{#2}}$}}}
\end{minipage}\begin{minipage}[t]{87mm}}
\newcommand{\rightbar}[2][\bordercolor]{\end{minipage}
\begin{minipage}[t]{5mm}{{\textcolor{#1}{$\stackrel{\rule{1mm}{1em}}{\rule[-#2]{1mm}{#2}}$}}}
\end{minipage}\begin{minipage}[t]{87mm}}

\newenvironment{algorithm}{\begin{alltt} }{\end{alltt}}
\newenvironment{Algorithm}{\begin{alltt} \hugettfont}{\end{alltt}}
\newenvironment{ALgorithm}{\begin{alltt} 
      \Hugefont \addtolength{\baselineskip}{2.5mm} }{\addtolength{\baselineskip}{-2.5mm}\end{alltt}}
\newcommand{\lastpage}{\newpage \mbox{} \vfill 
    \centerline{\textcolor{\slidetitlecolor}{FIM}} 
    \vfill \mbox{}}

\definecolor{darkmagenta}{rgb}{0.5,0,0.5}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{darkgray}{gray}{0.5}
\definecolor{lightgray}{gray}{0.75}
\definecolor{orange}{rgb}{1,0.78,0}
\definecolor{lightorange}{rgb}{1.00, 0.65, 0.00}
\definecolor{darkorange}{rgb}{1.00, 0.40, 0.00}
\definecolor{purple}{rgb}{0.63, 0.13, 0.94}
\definecolor{pink}{rgb}{1,0.68,0.68}
\definecolor{verydarkblue}{rgb}{0.09766,0.09766,0.4375}
\definecolor{darkblue}{rgb}{0.28, 0.24, 0.55}
\definecolor{skyblue}{rgb}{0.2,0.36,0.77}
\definecolor{lightblue}{rgb}{.30,.86,.89}
\definecolor{goldenrod}{rgb}{.80392, .60784, .11373}
\definecolor{darkgoldenrod}{rgb}{.5451, .39608, .03137}
\definecolor{brown}{rgb}{.15, .15, .15}
\definecolor{lightgreen}{rgb}{0.7,1, 0.1}
\definecolor{olivegreen}{rgb}{.33333, .41961, .18431}
\definecolor{darkgreen}{rgb}{0.133, 0.56, 0}
\definecolor{darkolivegreen}{rgb}{0.10, 0.43, 0}
\definecolor{mellow}{rgb}{.847, .72, .525}
\definecolor{darkred}{rgb}{.90, .10, .10}
\definecolor{lemonchiffon}{rgb}{1.00,.98, .80}
\definecolor{pink}{rgb}{1.00, .75, .79}
\definecolor{slategray}{rgb}{.44, .50, .56}

\newcommand{\highlight}[3] {\colorbox{#1}{\textcolor{#2}{#3}}}
\newcommand{\fhighlight}[4]{\fcolorbox{#1}{#2}{\textcolor{#3}{#4}}}

\newcommand{\displaypaintbox}[4][1.0]{\scalebox{#1}
   {\epsfig{file=#4,width=#2,height=#3,bbllx=0in,bblly=#3,bburx=#2,bbury=0cm,silent=}}}
\newcommand{\displaypicture}[2][0.65]{\scalebox{#1}{\includegraphics*[0in,0in][11in,8.5in]{#2}}  } 
\newcommand{\displayfigure}[2][1]{\scalebox{#1}{\includegraphics*{#2}}  } 
\newcommand{\displaygraphic}[2][3in]{\resizebox{!}{#1}{\includegraphics*[-15mm,-15mm][60mm,60mm]{#2}} } 
%------------------------------------------------------------------------------------------

%% Subfigure counter.
\newcounter{subfigure}[figure]

%% Generate CAPTION preface.
\def\thesubfigure{(\alph{subfigure})\space}

%% Size of the CAPTION font.
\def\subcapsize{\footnotesize} 

%% Length from the top of the subfigure box to the begining of the FIGURE
%% box.  Also from the bottom of the CAPTION to the bottom of the subfigure.
\def\subfigtopskip{10pt}

%% Length from the bottom of the FIGURE to the begining of the CAPTION.
\def\subfigcapskip{10pt}

%% Indentation of the caption from the sides of the subfigure box.
\def\subfigcapmargin{10pt} 

%%
%% Define the subfigure command
%%
\def\subfigure{%
  \leavevmode
  \@ifnextchar [%
    \@subfigure
    {\@subfigure[\@empty]}}

\long\def\@subfigure[#1]#2{%
  \stepcounter{subfigure}%
  \setbox\@tempboxa \hbox{#2}%
  \@tempdima=\wd\@tempboxa
  \vtop{%
    \vbox{%   Put the figure in the top box
      \vskip\subfigtopskip
      \box\@tempboxa}
    %% Now skip down and add the caption paragraph.
    \vskip\subfigcapskip
    \begingroup
      \@parboxrestore
      \setbox\@tempboxa
      \ifx #1\@empty
        \hbox{\subcapsize\strut\hfil}%
      \else
        \hbox{\subcapsize\strut\thesubfigure#1}%
      \fi
      \@tempdimb=-\subfigcapmargin
      \multiply\@tempdimb\tw@
      \advance\@tempdimb\@tempdima
      \hbox to\@tempdima{%
        \hfil
        \ifdim \wd\@tempboxa >\@tempdimb %   (Comment too wide for one line)
          \parbox{\@tempdimb}{\subcapsize\thesubfigure#1}%
        \else
          \box\@tempboxa
        \fi
        \hfil}
    \endgroup
  \vskip\subfigtopskip}}
%------------------------------ fim --------------------------------------
 
