%+
% ----- Viewgraph.sty --LaTeX Version-----------------------------------------
%-
\typeout{}
\typeout{ESO Viewgraphs Style}
\typeout{}

\long\def\Comments#1{\relax}

\def\@ptsize{0} \@namedef{ds@11pt}{\def\@ptsize{1}}
\@namedef{ds@12pt}{\def\@ptsize{2}}
\def\ds@twoside{\@twosidetrue \@mparswitchtrue}
\def\ds@draft{\overfullrule 5pt}
\@options
\input art1\@ptsize.sty\relax

\def\labelenumi{\arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\roman{enumiii}.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}

\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}

\def\verse{\let\\=\@centercr
 \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
 \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist
\def\quotation{\list{}{\listparindent 1.5em
 \itemindent\listparindent
 \rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
\let\endquotation=\endlist
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist

\def\descriptionlabel#1{\hspace\labelsep \bf #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
 \let\makelabel\descriptionlabel}}
\let\enddescription\endlist


\def\theequation{\arabic{equation}}

\arraycolsep 5pt \tabcolsep 6pt \arrayrulewidth .4pt \doublerulesep 2pt
\tabbingsep \labelsep

\skip\@mpfootins = \skip\footins
\fboxsep = 3pt \fboxrule = .4pt

\newcounter{part}
\newcounter {section}
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]

\def\thepart{\Roman{part}} \def\thesection {\arabic{section}}
\def\thesubsection {\thesection.\arabic{subsection}}
\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}

\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}

\def\tableofcontents{\section*{Contents\markboth{Contents}{Contents}}
 \@starttoc{toc}}
\def\tabledematieres{\section*{Index\markboth{INDEX}{INDEX}}
 \@starttoc{toc}}
\def\l@part#1#2{\addpenalty{\@secpenalty}
 \addvspace{2.25em plus 1pt} \begingroup
 \@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip
-\@pnumwidth
 {\large \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
 \nobreak \endgroup}
\def\l@section#1#2{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt}
\@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth
 \parfillskip -\@pnumwidth
 \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}\par
 \endgroup}
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\def\listoffigures{\section*{List of Figures\markboth
 {LIST OF FIGURES}{LIST OF FIGURES}}\@starttoc{lof}}
\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\def\listoftables{\section*{List of Tables\markboth
 {LIST OF TABLES}{LIST OF TABLES}}\@starttoc{lot}}
\let\l@table\l@figure


\def\thebibliography#1{\section*{References\markboth
 {References}{References}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist


\newif\if@restonecol
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\columnseprule \z@
\columnsep 35pt\twocolumn[\section*{Index}]
 \markboth{Index}{Index}\thispagestyle{plain}\parindent\z@
 \parskip\z@ plus .3pt\relax\let\item\@idxitem}
\def\@idxitem{\par\hangindent 40pt}
\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}

\def\footnoterule{\kern-3\p@
 \hrule width .4\columnwidth
 \kern 2.6\p@}

\long\def\@makefntext#1{\parindent 1em\noindent
 \hbox to 1.8em{\hss$^{\@thefnmark}$}#1}


\setcounter{topnumber}{2}
\def\topfraction{.7}
\setcounter{bottomnumber}{1}
\def\bottomfraction{.3}
\setcounter{totalnumber}{3}
\def\textfraction{.2}
\def\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\def\dbltopfraction{.7}
\def\dblfloatpagefraction{.5}

\long\def\@makecaption#1#2{
 \vskip 10pt
 \setbox\@tempboxa\hbox{#1: #2}
 \ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil}
 \fi}


\newcounter{figure}
\def\thefigure{\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{Figure \thefigure}
\def\figure{\@float{figure}}
\let\endfigure\end@float
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
\newcounter{table}
\def\thetable{\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{Table \thetable}
\def\table{\@float{table}}
\let\endtable\end@float
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}
\def\endabstract{\if@twocolumn\else\endquotation\fi}

\mark{{}{}}

\if@twoside \def\ps@headings{\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm
\thepage\hfil \sl \leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
\rm\thepage}\def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
{\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
\else \def\ps@headings{\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox
{}\sl \rightmark \hfil \rm\thepage}\def\sectionmark##1{\markright
{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection\hskip 1em\relax \fi ##1}}}}
\fi
\def\ps@myheadings{\def\@oddhead{}\def\@evenhead{}%
\def\@oddfoot{}\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}


\def\today{\ifcase\month\or
 January\or February\or March\or April\or May\or June\or
 July\or August\or September\or October\or November\or December\fi
 \space\number\day, \number\year}

\ps@plain \pagenumbering{arabic} \onecolumn \if@twoside\else\raggedbottom\fi

%......................................................................
\newfont{\mgivssxvii}{cmss17 scaled\magstep4}
\newcommand{\Hugesf}{\Huge\mgivssxvii}

\newfont{\mgivssxii}{cmss12 scaled\magstep4}
\newcommand{\hugesf}{\huge\mgivssxii}

\newfont{\mgiissxii}{cmss12 scaled\magstep2}
\newcommand{\LARGESF}{\LARGE\mgiissxii}

\newfont{\cmssxii}{cmss12 scaled\magstep1}
\newcommand{\Largesf}{\Large\cmssxii}

\newcommand{\PointAt}[1]{ 
  	\renewcommand{\labelitemi}{$#1$}
  	\renewcommand{\labelitemii}{$#1$}
  	\renewcommand{\labelitemiii}{$#1$}
  	\renewcommand{\labelitemiv}{$#1$}
	\begin{itemize} }

\newcommand{\EndPointAt}{ 
  \end{itemize} 
  \renewcommand{\labelitemi}{$\bullet$}
  \renewcommand{\labelitemii}{\bf -- }
  \renewcommand{\labelitemiii}{$\ast$}
  \renewcommand{\labelitemiv}{$\cdot$}
  }

\newcommand{\Itemize}{\begin{itemize}} 
\newcommand{\EndItemize}{\end{itemize}}

\newcommand{\Enumerate}{\begin{enumerate}}
\newcommand{\EndEnumerate}{\end{enumerate}}

\newcommand{\Description}{\begin{description}} 
\newcommand{\EndDescription}{\end{description}} 

\newcommand{\Quote}{\begin{quote}}
\newcommand{\EndQuote}{\end{quote}}

\newcommand{\Quotation}{\begin{quotation}}
\newcommand{\EndQuotation}{\end{quotation}}

\newcommand{\Center}{\begin{center}}
\newcommand{\EndCenter}{\end{center}}

\newcommand{\Tabbing}{\begin{tabbing}}
\newcommand{\EndTabbing}{\end{tabbing}}

\newcommand{\Status}[3]{\footnotetext[0]{
  {\small\sl#1, ~~~#2, ~~~#3}}}

\newcommand{\TheDate}[1]{\smallskip\rightline{\rm\sl #1}}

\newcount\minutes \minutes=\time
\newcount\hours 
\divide\time by 60 \hours=\time \multiply\time by 60
\advance\minutes by -\time
\def\TheTime{
	\hbox{\sl \the\hours:\the\minutes\/ hrs.\/} } 

\input{epsf}

\long\def\esovgraphhead#1#2#3{
	\epsfysize=3.5cm\noindent
	\parbox{4cm}{\epsffile{esologo.ps}\hspace*{.6cm}}
	\parbox{21truecm}{
		\hfill\begin{tabular}{r}
		 	\small\sc #1~~--~~{\em Page \thepage}\\
		 	\small\sc #2\\[.4cm]
		        \huge\bf #3\normalsize\\
		\end{tabular}
	}\linebreak
	\noindent\rule[0.5cm]{\textwidth}{0.3mm}\\[1truecm]
}
	
\def\Ocasion{}
\def\DateAuthor{}
\def\Title{}

\long\def\Header#1{\newpage%
	\esovgraphhead{\Ocasion}{\DateAuthor}{\Title}%
	\begin{center}{\huge\bf #1}\\[1cm]\end{center}}

%+
% ----- Page layout ----------------------------------------------------------
%-

\special{landscape}

\textwidth=25cm
\textheight=18cm
\headsep=-3cm
\oddsidemargin=0cm
\evensidemargin=0cm
\parskip=1ex
\parindent=3cm
\itemindent=3cm
\leftmargin=3cm		%this is only for list environments
\itemsep=0cm
\topsep=0cm

\pagestyle{myheadings}
\huge
