\usepackage{epsfig}
\usepackage{multicol}
\usepackage{pstricks,pst-grad}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}  % Pour utiliser les caractères accentués dans votre texte 
\usepackage{openbib}

\bibliographystyle{plain}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Definition of some variables and colors
%\renewcommand{\rho}{\varrho}
%\renewcommand{\phi}{\varphi}
\setlength{\columnsep}{3cm}
\setlength{\columnseprule}{2mm}
\setlength{\parindent}{0.0cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%               Background                     %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newrgbcolor{cellLineColor}{.7. .7 .9} % lightblue
\newrgbcolor{cellGradBegin}{1. 1. 1.}   % white
\newrgbcolor{cellGradEnd}{.5 .5 1.}   % whiteblue
\newrgbcolor{backgroundGradBegin}{1. 1. 1.}   % grabbegin
\newrgbcolor{backgroundGradEnd}{1. 1. 1.}   % cellGradEnd

\newcommand{\background}[1]
	   {
	     \psframe[fillstyle=gradient,gradbegin=backgroundGradBegin,gradend=backgroundGradEnd,gradmidpoint=#1](0.,0.)(1.\textwidth,-1.\textheight)
	   }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                Poster                        %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newenvironment{poster}{\begin{center} \begin{minipage}[c]{0.98\textwidth}}{\end{minipage} \end{center}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                pcolumn                       %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newenvironment{pcolumn}[1]{\begin{minipage}{#1\textwidth}\begin{center}}{\end{center}\end{minipage}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                pbox                          %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\pbox}[4]{\psshadowbox[#3]{\begin{minipage}[t][#2][t]{#1}#4\end{minipage}}}
	   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%                myfig                         %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% \myfig - replacement for \figure
%% necessary, since in multicol-environment 
%% \figure won't work
%
%\newcommand{\myfig}[3][0]
%	   {
%	     \begin{center}
%	       \vspace{1.5cm}
%	       \includegraphics[width=#3\hsize,angle=#1]{#2}
%	       \nobreak\medskip
%	     \end{center}
%	   }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%                mycaption                     %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% \mycaption - replacement for \caption
%% necessary, since in multicol-environment \figure and
%% therefore \caption won't work
%
%%\newcounter{figure}
%\setcounter{figure}{1}
%\newcommand{\mycaption}[1]
%	   {
%	     \vspace{1.5cm}
%	     \begin{quote}
%	       {
%		 {\sc Figure}
%		 \arabic{figure}: #1
%	       }
%	     \end{quote}
%	     \vspace{1.5cm}
%	     \stepcounter{figure}
%	   }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                printgraph                    %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% % file, Dimension, légende
\newcommand{\printgraph}[3]
 	   {
	     %\vspace*{1cm}
	     \begin{center}
	       \includegraphics[width=\columnwidth]{\dirschema/#1.eps}
	       \label{#1}
	       \nobreak\medskip
	     \end{center}
	     %\vspace*{1cm}

%	     \begin{figure}[htbp]
% 	       \centering
% 	       \includegraphics[scale=#2]{\dirschema/#1.eps}
% 	       \caption{#3}
%	       \label{#1}
% 	     \end{figure}
 	   }

\newcommand{\printgraphonly}[2]
 	   {\begin{figure}[htbp]
 	       \centering
 	       \includegraphics[scale=#2]{\dirschema/#1.eps}
	       \label{#1}
 	     \end{figure}
 	   }
	   

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                Section                       %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\BoxSection}[2]
	   {
	     \vspace*{1cm}
	     \begin{center}
	       \pbox{#2}
		    {}
		    {linewidth=2mm,framearc=0.1,linecolor=cellLineColor,fillstyle=gradient,gradangle=0,gradbegin=cellGradBegin,gradend=cellGradEnd,gradmidpoint=1.0,framesep=1em}
		    {
		      \begin{center}
			#1
		      \end{center}
		    }
	     \end{center}
	     \vspace*{1cm}
	   }

%\newcommand{\Title}[1]{\BoxSection{#1}{0.8\textwidth}}
\newcommand{\Section}[1]{\BoxSection{#1}{0.8\columnwidth}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                cell                          %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\Cell}[1]{\pbox{0.9\textwidth}{}{linewidth=2mm,framearc=0.1,linecolor=cellLineColor,fillstyle=gradient,gradangle=0,gradbegin=cellGradBegin,gradend=cellGradEnd,gradmidpoint=1.0,framesep=1em}{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                maketitle                     %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\affiliation#1{\gdef\@affiliation{#1}}
\gdef\@affiliation{}

\def\email#1{\gdef\@email{#1}}
\gdef\@email{}

\def\@maketitle
   {
     \vspace*{1cm}
     \begin{center}
       \begin{pcolumn}{0.98}
	 \pbox{0.95\textwidth}{}{linewidth=2mm,framearc=0.3,linecolor=cellLineColor,fillstyle=gradient,gradangle=0,gradbegin=cellGradBegin,gradend=cellGradEnd,gradmidpoint=1.0,framesep=1em}
	      {
		%%% Logo gauche
		\begin{minipage}[c][9cm][c]{0.1\textwidth}
		  \begin{center}
		    % \includegraphics[width=7cm,angle=0]{gklogo.eps}
		  \end{center}
		\end{minipage}
		%%% Titel
		\begin{minipage}[c][9cm][c]{0.78\textwidth}
		  \begin{center}
		    {\sc \Huge \@title}\\[10mm]
		    {\Large \@author\\[7.5mm]
		      \@email\\[7.5mm]
		      \@affiliation}
		  \end{center}
		\end{minipage}
		%%% Logo droit
		\begin{minipage}[c][9cm][c]{0.1\textwidth}
		  \begin{center}
		    %  \includegraphics[width=7cm,angle=0]{gklogo.eps}
		  \end{center}
		\end{minipage}
	      }
       \end{pcolumn}
     \end{center}
     \vspace*{1cm}
   }
   
