\ProvidesPackage{local}[2003/05/09 Local style file for AIM volume]
\input{bookdata}

\newif\ifchangenum\changenumfalse
\newif\ifmaster
%\DeclareOption{nochangenum}{\changenumfalse}
\DeclareOption{master}{\mastertrue}

\ProcessOptions\relax

\RequirePackage{url,xspace}
\RequirePackage{amsfonts,latexsym,amssymb,amscd}
\RequirePackage[T1]{fontenc}
\RequirePackage[english,frenchb]{babel}
\addto\extrasfrenchb{\bbl@nonfrenchitemize
\bbl@nonfrenchspacing}

\def\Newline{\PackageWarning{local}{PASSAGE À LA LIGNE FORCÉ PAGE
\arabic{page}.}{\ifhmode\unskip\fi\parfillskip0pt\par}\noindent\ignorespaces}
\def\Clearpage{\PackageWarning{local}{SAUT DE PAGE FORCÉ PAGE
\arabic{page}.}\clearpage}

%\RequirePackage{smfenum}
%  120 mm times 195 mm

\textwidth 120 mm
%\textheight 195 mm
\textheight 197 mm
\calclayout

\hfuzz 1pt


\renewcommand{\pointrait}{\hskip 0.3mm{\bf .}}
%\def\pointtraitt{.}


% \RequirePackage[T1]{mathtime}
\ifmaster
  \RequirePackage[master]{smfmulti}
\else
  \RequirePackage{smfmulti}
\fi
\RequirePackage{graphicx}
\RequirePackage{mathrsfs}
\let\mathcal\mathscr

\ifmaster
\def\@maketitle{\cleardoublepage
  \begingroup
     \parindent\z@
     \smf@titlei \smf@titleii \@setdedicatory 
    \cleardoublepage
  \endgroup}
\else

\newcounter{chapter}

\def\smf@journalhead{\footnotesize
  {\itshape \booktitle}\par
  ({\scshape \bookeditors,} eds.),
            p.~\smf@firstpage--\smf@lastpage\par
  Progress in Mathematics, Vol. \booknumber, \copyright\ {\bookyear} 
  Birkh\"auser Boston, Cambridge, MA
}

\def\smfbyname{}
\def\@maketitle{\cleardoublepage\thispagestyle{copyright}
  \begingroup
  \uppercasenonmath\shorttitle
  \ifx\@empty\shortauthors \let\shortauthors\shorttitle
   \else \uppercasenonmath\shortauthors \andify\shortauthors \fi
   \toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}%
   \edef\@tempa{\@nx\markboth{\the\toks@}{\the\@temptokena}}\@tempa
  \topskip\z@skip
  \vtop to 80 mm{%
  \parindent=0pt
  \hrule
  \medskip
  {\abstractfont\smf@journalhead\par}%
  \medskip
  \hrule
  \vfil
  \begin{raggedright}
  \def\baselinestretch{1.2}
%%     \ifnum\c@chapter >0
%%     {\bfseries\Huge \arabic{chapter}\par
%%      \bigskip}\fi
    {\large\bfseries\smf@boldmath\MakeUppercase\@title\par}
    \vfil
  %   \ifx\@empty\smfbyname\else
  %     {\smfbyfont\smfbyname\ifsmf@byauthor\par\vfil\else\ \fi}%
  %   \fi
  %   {\edef\smfandname{{\noexpand\normalfont \smfandname}}
  %  \andify\authors\authors\par}
    \@settitleaddresses
 \vfil
 %  \vrule height .4pt width .3\textwidth \vfil
 \end{raggedright}}
 \@maketitlehook
 \par\bigskip
 \ifx\@empty\@dedicatory\else\@setdedicatory\medskip\fi
 \@setabstract\par\smallskip\@setaltabstract\par
 \bigskip\bigskip
 \endgroup}

\def\@settitleaddresses{\begingroup
  \rightskip=0pt plus 1cm
  \advance\leftskip 2em
  \emergencystretch .5\textwidth
  \exhyphenpenalty=-100
  \interlinepenalty\@M
  \def\baselinestretch{1}% \normalfont\footnotesize
  \small
  \def\\{\unskip, \penalty-10\ignorespaces}%
  \def\cond@bullet {{\setbox0\hbox{\quad$\bullet$\quad}%
         \hskip 0pt plus 3cm\penalty -30\hskip 0pt plus -3cm
         \cleaders \copy0 \hskip\wd0 }}%
  \def\firstauthor##1{\leavevmode\hskip -2em
        {\large\bfseries ##1\par}\let\address\firstaddress
        \let\author\otherauthor}%
  \def\otherauthor{\par\medskip\nobreak \firstauthor}
  \def\firstaddress##1##2{\smallskip\let\address\otheraddress
         \ignorespaces##2}%
  \def\otheraddress##1##2{\cond@bullet \ignorespaces##2}%
  \def\email##1##2{\@ifnotempty{##2}%
        {\cond@bullet
         \hbox{\itshape E-mail~:}~{\ttfamily\ignorespaces ##2}}}%
  \def\urladdr##1##2{\@ifnotempty{##2}%
        {\cond@bullet
         {\itshape URL~:}~{\ttfamily\ignorespaces ##2}}}%
  \let\author\firstauthor
  \let\address\firstaddress
  \def\curraddr{\address}%
  \addresses\par
  \endgroup}

% \let\@settitleaddresses\@setaddresses

\let\tableofcontents\relax

\let\smf@enddoc\relax
  
\fi
% \def\smf@volume{}
% \def\smf@fascicule{}
% \def\@abstract{}
% \def\@altabstract{}
% \def\@alttitle{}


\ifchangenum
 \let\c@equation\c@subsection
 \def\theequation{\thesection.\arabic{equation}}
\fi

\addto\smf@captionsfrancais{%
% \def\smfbyname{}
 \def\cescomptesrendus{ces comptes-rendus}}
\addto\smf@captionsenglish{%
% \def\smfbyname{}
 \def\cescomptesrendus{these proceedings}}

\abstractmargin 0pt

{\catcode`\'=\active \gdef'{^\bgroup\prim@s}}
\def\prim@s{\prime\futurelet\next\pr@m@s}
\def\pr@m@s{\ifx'\next\let\nxt\pr@@@s \else\ifx^\next\let\nxt\pr@@@t
  \else\let\nxt\egroup\fi\fi \nxt}
\def\pr@@@s#1{\prim@s} \def\pr@@@t#1#2{#2\egroup}

\hyphenation{Gro-then-dieck}

\let\phi\varphi   \let\epsilon\varepsilon
\let\leq\leqslant \let\geq\geqslant

\def\greek#1{\expandafter\@greek\csname c@#1\endcsname}
\def\@greek#1{%
  \ifcase#1$\or %$
     $\alpha$\or $\beta$\or $\gamma$\or $\delta$\or $\epsilon$\or
     $\zeta$\or $\eta$\or $\theta$\or $\iota$\or $\kappa$\or $\lambda$\or
     $\mu$ \or $\nu$\or $\xi$\or $\omicron$\or $\pi$\or $\rho$\or
     $\sigma$\or $\tau$ \or $\upsilon$\or $\phi$\or $\chi$\or $\psi$\or
     $\omega$\else
     \@ctrerr\fi}

% Quelques amenagements
\newcommand{\myitemizedef}{%
  \labelsep=5pt
  \settowidth\leftmargini{(i)\hskip\labelsep}%
%  \advance\leftmargini by \normalparindent
  \settowidth\leftmarginii{(i)\hskip\labelsep}%
  \settowidth\leftmarginiii{(i)\hskip\labelsep}%
  \settowidth\leftmarginiv{(i)\hskip\labelsep}%
  \leftmarginv=10pt
  \leftmarginvi=10pt
  \leftmargin=\leftmargini
  \labelwidth=\leftmargini 
  \advance\labelwidth-\labelsep
%  \@listi
}
\newcommand{\myitemize}{%
  \bgroup\myitemizedef
  \ifnum\@itemdepth>3 \@toodeep
  \else \advance\@itemdepth\@ne
    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
    \list{\csname\@itemitem\endcsname}%
      {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
}
\def\endmyitemize{%
\endlist\egroup
}
\newcommand{\mydescription}{\list{}{%
  \bgroup\myitemizedef
  \advance\leftmargini6\p@ \itemindent-12\p@
  \labelwidth\z@ \let\makelabel\descriptionlabel}}
\def\endmydescription{%
\endlist\egroup
}
\newcommand{\smallerdisplayskip}{%
\def\@adjustvertspacing{%
  \bigskipamount.6\baselineskip plus.6\baselineskip
  \medskipamount\bigskipamount \divide\medskipamount\tw@
  \smallskipamount\medskipamount \divide\smallskipamount\tw@
  \abovedisplayskip\medskipamount
  \belowdisplayskip \abovedisplayskip
  \abovedisplayshortskip\abovedisplayskip
  \advance\abovedisplayshortskip-1\abovedisplayskip
  \belowdisplayshortskip\abovedisplayshortskip
  \advance\belowdisplayshortskip 1\smallskipamount
  \jot\baselineskip \divide\jot 4 \relax
}
}
\def\sloppyvert{%
\advance\parskip by 0pt plus 0.10em
\vbadness 3000
}
\endinput
