%%
%% DO NOT EDIT THIS FILE!
%%
%% This is file `lrde-bulletin.sty',
%% derived from `GRASSnews.sty',
%% derived from 'RNews.sty' file
%% kindly provided by the R Project..
%%
\def\fileversion{v0.5}
\def\filename{lrde-bulletin}
\def\filedate{2007/09/14}
\def\docdate {2001/10/31}
%%
%% Package `lrde-bulletin' to use with LaTeX2e
%% Copyright (C) 2004, 2005, 2006, 2007 GRASS Development Team
%%
%% -*- LaTeX -*-
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{\filename}[\filedate\space\fileversion\space
			lrde-bulletin package]
\typeout{Package: `\filename\space\fileversion \@spaces <\filedate>'}
\typeout{English documentation as of <\docdate>}
\RequirePackage{myifthen}
\newboolean{lrdebulletin@driver}
\DeclareOption{driver}{\setboolean{lrdebulletin@driver}{true}}
\DeclareOption*{\PackageWarning{\filename}{Unknown option
    `\CurrentOption'}}
\ProcessOptions\relax
\ifthen{\NOT\boolean{lrdebulletin@driver}}{
  % The marvosym package is needed for the clock symbol in \seminardate.
  \RequirePackage{multicol,graphicx,color,hyperref,array,marvosym}
% Pretend the twoside option was passed for fancyhdr's sake.
\@twosidetrue
\RequirePackage{fancyhdr}
%
\RequirePackage[latin1]{inputenc}
\RequirePackage[francais]{mybabel}
%
\RequirePackage{wrapfig}
\RequirePackage{myhyperref}
%
% Volume numbers.
\newcommand{\volume}[1]{\def\lrdebulletin@volume{#1}}
\newcommand{\subvolume}[1]{\def\lrdebulletin@subvolume{#1}}
\def\lrdebulletin@completevolume{\lrdebulletin@volume%
  \ifx\lrdebulletin@subvolume\undefined\else%
  .\lrdebulletin@subvolume%
  \fi}
\newcommand{\volumetitle}[1]{\def\lrdebulletin@volumetitle{#1}}
\newcommand{\volnumber}[1]{\def\lrdebulletin@number{#1}}
\renewcommand{\date}[1]{\def\lrdebulletin@date{#1}}
% Making an article.
\setcounter{secnumdepth}{-1}
\renewcommand{\author}[1]{\def\lrdebulletin@author{#1}}
\renewcommand{\title}[1]{\def\lrdebulletin@title{#1}}
\newcommand{\subtitle}[1]{\def\lrdebulletin@subtitle{#1}}
\newcommand{\photo}[1]{\def\lrdebulletin@photo{#1}}
\newenvironment{article}{%
  \author{}\title{}\subtitle{}\photo{}}{\end{multicols}}
% \inputarticle{FILE-NAME}
% ------------------------
\newcommand{\inputarticle}[1]
{%
  \squeeze%
  \begin{article}%
    \input{#1}%
  \end{article}%
}%
% \maketitle
% ----------
% To use with the {article} env.  Use \title, \author, and \photo.
\renewcommand{\maketitle}{
  \begin{multicols}{2}[\chapter{\lrdebulletin@title}\refstepcounter{chapter}][3cm]%
    \ifx\empty\lrdebulletin@subtitle\else\noindent\textbf{\LARGE \lrdebulletin@subtitle}%
    \par\nobreak\fi%
    \ifx\empty\lrdebulletin@photo\else%
    \begin{wrapfigure}{l}{.3\linewidth}%
      \includegraphics[width=\linewidth]{\lrdebulletin@photo}%
    \end{wrapfigure}%
    \fi%
    \ifx\empty\lrdebulletin@author\else\noindent%
      par \textit{\lrdebulletin@author}%
    \par\nobreak%\addvspace{\baselineskip}%
    \fi%
    \@afterindentfalse\@nobreaktrue\@afterheading\par\noindent}
\renewcommand\chapter{\secdef\lrdebulletin@chapter\@schapter}
\newcommand{\lrdebulletin@chapter}{%
  \renewcommand{\@seccntformat}[1]{}%
  \@startsection{chapter}{0}{0mm}{%
    -2\baselineskip \@plus -\baselineskip \@minus -.2ex}{\p@}{%
    \normalfont\huge\bfseries\raggedright}}
\renewcommand*\l@chapter{\@dottedtocline{0}{0pt}{1em}}
\def\@schapter#1{\section*#1}
% \makesubtitle
% -------------
% Like \maketitle, but produces a \section instead of a \chapter.  Use
% \title and \author to define its contents.
\newcommand{\makesubtitle}{
  \section{\lrdebulletin@title}\refstepcounter{section}%
    \ifx\empty\lrdebulletin@subtitle\else\noindent\textbf{\lrdebulletin@subtitle}%
    \par\nobreak\fi%
    \ifx\empty\lrdebulletin@author\else\noindent par
      \textit{\lrdebulletin@author}%
      \par\nobreak\addvspace{0.5\baselineskip}%
    \fi%
    \@afterindentfalse\@nobreaktrue\@afterheading\par\noindent}
% Reduce the space around titles of sections.
\renewcommand\section{\@startsection {section}{1}{\z@}%
  {-1.5ex \@plus -1ex \@minus -.2ex}%
  {0.8ex \@plus.2ex}%
  {\normalfont\Large\bfseries}}
\renewenvironment{figure}[1][]{%
  \def\@captype{figure}
  \noindent
  \begin{minipage}{\columnwidth}}{%
  \end{minipage}\par\addvspace{\baselineskip}}
\renewcommand{\theequation}{\@arabic\c@equation}
\def\equation{%
  \let\refstepcounter\H@refstepcounter
  \H@equation
  \def\newname{\arabic{chapter}.\theequation}%
  \let\theHequation\newname%
  \hyper@makecurrent{equation}%
  \Hy@raisedlink{\hyper@anchorstart{\@currentHref}}%
  \let\refstepcounter\new@refstepcounter}%
\def\endequation{\Hy@raisedlink{\hyper@anchorend}\H@endequation}
\renewcommand{\thefigure}{\@arabic\c@figure}
\renewcommand{\thetable}{\@arabic\c@table}
\renewcommand{\contentsname}{Dans ce numéro :}
\renewcommand\tableofcontents{%
  \section*{\contentsname
    \@mkboth{%
      \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
  \@starttoc{toc}}
\renewcommand{\titlepage}{%
  \noindent%
  %\rule{\textwidth}{1pt}\\[-.8\baselineskip]
  %\rule{\textwidth}{.5pt}
  \begin{tabular}{m{.4\linewidth}m{.6\linewidth}}
    \includegraphics[width=\linewidth]{share/figs/lrde_epita.png}
    &
    \begin{center}
      \fontsize{1cm}{1cm}\selectfont%
      L'air de rien
      \ifx\lrdebulletin@volumetitle\undefined

      \medskip

      \fi
      \No\lrdebulletin@volume
      \ifx\lrdebulletin@volumetitle\undefined\else

	\medskip
	{\huge \lrdebulletin@volumetitle}
      \fi
    \end{center}
  \end{tabular}
%  The Newsletter of the GRASS  Project\hfill
%\begin{small}
L'aléastriel du \textbf{L}aboratoire de \textbf{R}echerche et de
\textbf{D}éveloppement de
l'\textbf{E}PITA\urlnote{http://publis.lrde.epita.fr/LrdeBulletin}{L'air
de rien}
%\end{small}
\hfill
  Numéro \lrdebulletin@completevolume, \lrdebulletin@date\\[-.5\baselineskip]%
  \rule{\textwidth}{.5pt}\\[-.7\baselineskip]%
  \rule{\textwidth}{2pt}%
  \fancyhf{}%
  \fancyhead[RO,LE]{L'air de rien%
    \ifx\lrdebulletin@volumetitle\undefined\else ~---~\lrdebulletin@volumetitle\fi}%
  \fancyhead[LO,RE]{\No\lrdebulletin@completevolume, \lrdebulletin@date}%
% \fancyfoot[LO,RE]{ISSN 1614-8746}
  \fancyfoot[RO,LE]{\thepage}%
  \thispagestyle{empty}%
%   \begin{bottombox}
%     \begin{multicols}{2}
%       \setcounter{tocdepth}{0}
%       \tableofcontents
%       \setcounter{tocdepth}{2}
%     \end{multicols}
%   \end{bottombox}
  \vspace{-1cm}% Remove some of the pre-space coming from the first
	       % article title.
}
% FIXME: Use geometry instead?
\setlength{\textheight}{240mm}
\setlength{\topmargin}{0mm}
\setlength{\textwidth}{17cm}
\setlength{\oddsidemargin}{-6mm}
\setlength{\evensidemargin}{-6mm}
\setlength{\columnseprule}{.1pt}
\setlength{\columnsep}{20pt}
\providecommand{\nohyphens}{%
  \hyphenpenalty=10000\exhyphenpenalty=10000\relax}
\RequirePackage{ae,mathpple}
\RequirePackage[T1]{fontenc}
\renewcommand{\rmdefault}{ppl}
\renewcommand{\sfdefault}{aess}
\renewcommand{\ttdefault}{aett}
\definecolor{Red}{rgb}{0.7,0,0}
\definecolor{Blue}{rgb}{0,0,0.8}
\definecolor{hellgrau}{rgb}{0.55,0.55,0.55}
\newcommand{\R}{R}
\newcommand{\address}[1]{\addvspace{\baselineskip}\noindent\emph{#1}}
\newsavebox{\lrdebulletin@box}
\newlength{\lrdebulletin@len}
\newenvironment{bottombox}{%
  \begin{figure*}[b]
    \begin{center}
      \noindent
      \begin{lrbox}{\lrdebulletin@box}
	\begin{minipage}{0.99\textwidth}}{%
	\end{minipage}
      \end{lrbox}
      \addtolength{\lrdebulletin@len}{\fboxsep}
      \addtolength{\lrdebulletin@len}{\fboxrule}
      \hspace*{-\lrdebulletin@len}\fbox{\usebox{\lrdebulletin@box}}
    \end{center}
  \end{figure*}}
\RequirePackage{verbatim}
\def\boxedverbatim{%
  \def\verbatim@processline{%
    {\setbox0=\hbox{\the\verbatim@line}%
    \hsize=\wd0 \the\verbatim@line\par}}%
  \@minipagetrue
  \@tempswatrue
  \setbox0=\vbox
  \bgroup\small\verbatim
}
\def\endboxedverbatim{%
  \endverbatim
  \unskip\setbox0=\lastbox
  \egroup
  \fbox{\box0}
}
\pagestyle{fancy}
} % \ifthenelse{\boolean{lrdebulletin@driver}}
%%
%% FIXME: The following definitions seem to duplicate the
%% features of texi.sty.  But they seem to be better, maybe more
%% robust, so we might want to use them to rewrite parts of texi.sty.
%% It also defines some of Texinfo's environments.
%%
%% Note that it used to define \acronym, which conflicts with the
%% package acronym's environment acronym.  texi.sty does not.
%%
%% \newcommand\code{\bgroup\@codex}
%% \def\@codex#1{{\normalfont\ttfamily\hyphenchar\font=-1 #1}\egroup}
%% \newcommand{\kbd}[1]{{\normalfont\texttt{#1}}}
%% \newcommand{\key}[1]{{\normalfont\texttt{\uppercase{#1}}}}
%% \newcommand\samp{`\bgroup\@noligs\@sampx}
%% \def\@sampx#1{{\normalfont\texttt{#1}}\egroup'}
%% \newcommand{\var}[1]{{\normalfont\textsl{#1}}}
%% \let\env=\code
%% \newcommand{\file}[1]{{`\normalfont\textsf{#1}'}}
%% \let\command=\code
%% \let\option=\samp
%% \newcommand{\dfn}[1]{{\normalfont\textsl{#1}}}
%% \newcommand{\acronym}[1]{{\normalfont\textsc{\lowercase{#1}}}}
%% \newcommand{\strong}[1]{{\normalfont\fontseries{b}\selectfont #1}}
%% \let\pkg=\strong
%% \RequirePackage{alltt}
%% \newenvironment{example}{\begin{alltt}}{\end{alltt}}
%% \newenvironment{smallexample}{\begin{alltt}\small}{\end{alltt}}
%% \newenvironment{display}{\list{}{}\item\relax}{\endlist}
%% \newenvironment{smallverbatim}{\small\verbatim}{\endverbatim}
\RequirePackage{texi}

\providecommand{\operatorname}[1]{%
  \mathop{\operator@font#1}\nolimits}
\renewcommand{\P}{%
  \mathop{\operator@font I\hspace{-1.5pt}P\hspace{.13pt}}}
\newcommand{\E}{%
  \mathop{\operator@font I\hspace{-1.5pt}E\hspace{.13pt}}}
\newcommand{\VAR}{\operatorname{var}}
\newcommand{\COV}{\operatorname{cov}}
\newcommand{\COR}{\operatorname{cor}}
\RequirePackage{amsfonts}

\newcounter{foot}
\newcommand{\newfootnote}[1]{\addtocounter{foot}{1}\footnote{#1}}
\renewcommand{\thefootnote}{\thefoot}
\newcommand{\urlnote}[2]{\newfootnote{\href{#1}{#2, \url{#1}}.}}

% \Href[url title]{url}{text body}
% --------------------------------
% If not supplied [url title] defaults to {text body}
% (see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=oarglikesect).
\newcommand{\Href}[3][\DefaultOpt]{\def\DefaultOpt{#3}%
  \href{#2}{#3}\urlnote{#2}{#1}}

\newenvironment{legend}{\begin{quote}\small}{\end{quote}}


%% ------------------- %%
%% For LRDE seminars.  %%
%% ------------------- %%
\newcommand{\seminardate}[1]{\hfill\Clocklogo\ \textit{#1}}

%% \begin{seminarTimeTable}{16 mai 14h00 -- 17h15}{amphi 2}
%%   \seminarSession{Olena -- Traitement d'image}
%%   14h00 & Une bibliothèque de conteneurs --- Thomas Moulard \\
%%
%%   \seminarSession{DD -- Diagramme de Décision}
%%   14h30 & Diagrammes de décision --- Samuel Charron \\
%%
%%   \seminarSession{Transformers -- Transformation de programme}
%%   15h00 & Préprocesseur C/\Cxx --- Quentin Hocquet \\
%%   15h45 & Désambiguïsation --- Nicolas Pierron \\
%%   16h15 & Désambiguïsation sémantique --- Renaud Durlin \\
%%   16h45 & Centaur --- Benoît Sigoure \\
%% \end{seminarTimeTable}

%% \begin{seminarTimeTable}{DATE}{LOCATION}
%%   ...
%% \end{seminarTimeTable}
%% Create a time table for one Seminar session group.
\newenvironment{seminarTimeTable}[2]
{%
  \small%
  \noindent%
  \begin{tabular}{|c|p{.8\linewidth}|}%
    \seminarSession{\large #1 --- #2}%
  }%
  {%
    \hline%
  \end{tabular}%
}

%% \seminarSession{TITLE}
%% To use within seminarTimeTable.
\newcommand{\seminarSession}[1]
{%
  \hline%
  \multicolumn{2}{|c|}{\textbf{#1}}%
  \\%
  \hline%
}


% Project names.
\newcommand{\Vauc}{\textsc{Vaucanson}\xspace}
\newcommand{\Tfers}{\textsc{Transformers}\xspace}
\newcommand{\Mkv}{\textsc{Markov}\xspace}
\newcommand{\Oln}{\textsc{Olena}\xspace}

\endinput


%%
%% End of file `lrde-bulletin.sty'.
