
\ProvidesPackage{local}[1999/05/09 Local style file for Luminy volume]

\newif\ifchangenum\changenumtrue
\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
\calclayout

\hfuzz 1pt

% \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 Courbes semi-stables et groupe fondamental
            en géométrie algébrique}\par
  ({\scshape J.-B. Bost, F. Loeser, M. Raynaud,} éd.),
            p.~\smf@firstpage--\smf@lastpage\par
  Progress in Mathematics, Vol. 187, \copyright\ 2000
  Birkh\"auser Verlag Basel/Switzerland
}

\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 55 mm{%
 \parindent=0pt
 \hrule
 \medskip
 {\abstractfont\smf@journalhead\par}\vfil
 \begin{raggedleft}
 \def\baselinestretch{1.2}\large\vfil
   \ifnum\c@chapter >0
   {\bfseries\Huge \arabic{chapter}\par
    \bigskip}\fi
   {\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}
 \vfil
 %\hrule
 %  \vrule height .4pt width .3\textwidth \vfil
 \end{raggedleft}}
 \@maketitlehook
 \par\bigskip
 \ifx\@empty\@dedicatory\else\@setdedicatory\medskip\fi
 \@setabstract\par\smallskip\@setaltabstract\par
 \bigskip\bigskip
 \endgroup}

\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}
\endinput
