\DeclareOption{a4}{%
  \paperwidth 210mm
  \paperheight 297mm\relax}
\ProcessOptions

\LoadClass{slides}

\addtolength{\topmargin}{-2.05cm}
\setlength{\textwidth}{24.73cm}
\setlength{\textheight}{17cm}
\setlength{\oddsidemargin}{-.5mm} %-2.45  -1.45  -.45

%\def\itwentypt{21}
\def\normalsize{%
      \@setfontsize\normalsize\itwentypt{27\p@ plus1\p@ minus5\p@}%
      \@setfontsize@parms
            {2pt}%
            {23\p@ plus4\p@ minus4\p@}%
            {9\p@ plus2\p@ minus3\p@}%
            {5\p@ plus2\p@ minus3\p@}%
            {2\p@ plus3\p@}
            \abovedisplayshortskip
            {2}{1}}

%\def\itwentyfourpt{23}
\def\large{\@setfontsize\large\itwentyfourpt{30\p@ plus1\p@ minus5\p@}%
           \@setfontsize@parms
            {2\p@}%
            {25\p@ plus2\p@ minus4\p@}%
            {10\p@ plus2\p@ minus3\p@}%
            \abovedisplayskip
            {5\p@ plus2\p@}%
            \abovedisplayshortskip
            {2}{1}}

%\def\itwentyninept{26.5}
\def\Large{\@setfontsize\Large\itwentyninept{38\p@ plus1\p@ minus4\p@}%
           \@setfontsize@parms
            {2\p@}%
            {30\p@ plus6\p@ minus6\p@}%
            {12\p@ plus3\p@ minus6\p@}%
            \abovedisplayskip
            {6\p@ plus3\p@}%
            \abovedisplayshortskip
            {3}{1}}


\def\@listi{\leftmargin\leftmargini
            \parsep .1\parskip
            \topsep \parsep
            \itemsep .1\parskip
            \partopsep \z@}

\newskip\z@skip \z@skip=0pt plus0pt minus0pt
\def\m@th{\mathsurround=\z@}
\def\ialign{\everycr{}\tabskip\z@skip\halign} % initialized \halign
\def\eqalign#1{\null\,\vcenter{\openup\jot\m@th
  \ialign{\strut\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil
      \crcr#1\crcr}}\,}
\def\institute#1{\gdef\@institute{#1}}
\renewcommand\maketitle{\pagenumbering{arabic}%
{\centering {\Large \@title \par}%
     {\large\it\@author \par} {\large\@institute}%
\vglue3cm 
{\large LP01\quad Rome\quad 23-28 July 2001\par}}%
     \if@titlepage \break \fi\large\relax}

\footskip=50pt\headheight=0pt
\def\ps@plain{\let\@mkboth\@gobbletwo
   \let\@oddhead\@empty
      \def\@oddfoot{\ifnum\thepage=1\hfill\else
            {\magenta%\reset@font\normalsize
             \rightnote}\fi} 
\let\@evenhead\@empty\let\@evenfoot\@oddfoot}
\pagestyle{plain}

\def\rightnote{\small
      \hfill{LP01\quad\it \@author\ -   
          \rm \@title\quad {\large\bf \thepage} } }%

\usepackage{color}
\definecolor{mygreen}{rgb}{.0,.5,.0}
\definecolor{myblue}{rgb}{.1,.1,.7}
\definecolor{dcyan}{rgb}{.0,.6,.6}
\definecolor{dmagenta}{rgb}{0.6,0.0,0.6}
\def\black{\color{black}}
\def\red{\color{red}}
\def\blue{\color{blue}}
\def\green{\color{mygreen}}
\def\cyan{\color{dcyan}}
\def\magenta{\color{dmagenta}}
\usepackage{epsfig}

%\newcommand{\inst}[1]{\large #1}
\def\spreadlines#1{\par\renewcommand\baselinestretch{#1}\large}

\special{papersize=297mm,210mm}
\large

\endinput