% This is a documentclass for folding of article on
% The XXVI International School of Hydraulics.
% Copyright (c) 2006 by The Institute of Geophysics
% Polish Academy of Sciences
% and Robert Bialik<rbialik@igf.edu.pl>


\NeedsTeXFormat{LaTeX2e} \ProvidesClass{IGF}[2006/03/10 v1
hydraulics]

\def\@baseclass{article}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\@baseclass}}
\PassOptionsToClass{a4paper,oneside,11pt}{\@baseclass}
\ProcessOptions

\LoadClass{\@baseclass}

\textwidth\paperwidth
\advance\textwidth -72mm
\oddsidemargin -1in
\advance\oddsidemargin 38mm
\evensidemargin -1in
\advance\evensidemargin 25mm
\topmargin -1in
\advance\topmargin 40mm
\setlength\textheight{189mm}
\addtolength\textheight{\topskip}
\marginparwidth15mm
\renewcommand\baselinestretch{}
\setlength\parskip{2mm}

\def\ps@myheadings{%
    \let\@oddfoot\@empty\let\@evenfoot\@empty
    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
    \let\@mkboth\@gobbletwo
    \let\sectionmark\@gobble
    \let\subsectionmark\@gobble
    }
  \if@titlepage
\renewcommand\maketitle{\begin{titlepage}%
    \let\footnotesize\small
    \let\footnoterule\relax
    \let \footnote \thanks
    \begin{center}%
      {{ACTA GEOPHYSICA - DRAFT}}%

      \vspace{30pt plus .1fill}%
      {\large\textbf{\@title}\par}%
      \vspace{6pt plus .1fill}%
      {\small\@author\par}%
      \vspace{4pt plus .1fill}%
      {\large \@date}%
    \end{center}\par
    \@thanks
    \vfil\null
  \end{titlepage}%
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
}
\else
\renewcommand\maketitle{\par
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hb@xt@1.8em{%
                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
    \if@twocolumn
      \ifnum \col@number=\@ne
        \@maketitle
      \else
        \twocolumn[\@maketitle]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
      \@maketitle
    \fi
    \thispagestyle{empty}\@thanks
  \endgroup
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@maketitle\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
}
\def\@maketitle{%
  \newpage
  \begin{center}%
      {{ACTA GEOPHYSICA - DRAFT}}%

      \vspace{30pt plus .1fill}%
      {\Large\textbf{\@title}\par}%
      \vspace{6pt plus .1fill}%
      {\small\@author\par}%
      \vspace{4pt plus .1fill}%
      %{\large \@date}
    \end{center}
  \par
  \vskip 1.5em}
\fi
\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {0.1ex \@plus.2ex}%
                                   {\normalfont\normalsize\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {0.1ex \@plus .2ex}%
                                     {\normalfont\normalsize\bfseries}}
\if@titlepage
  \renewenvironment{abstract}{%
      \titlepage
      \null\vfil
      \@beginparpenalty\@lowpenalty
      \begin{center}%
        \tt{\abstractname}
        \@endparpenalty\@M
      \end{center}}%
     {\par\vfil\null\endtitlepage}
\else
  \renewenvironment{abstract}{%
      \if@twocolumn
        \section*{\abstractname}%
      \else
        \small
        \begin{center}%
          {\tt{\abstractname\vspace{-.95em}\vspace{\z@}}}%
        \end{center}%
        \quotation
      \fi}
      {\if@twocolumn\else\endquotation\fi}
\fi
\endinput
