% ************************
% * fichier de pr�ambule *
% ************************

% ***** extensions *****
\usepackage[T1]{fontenc}        % Caract�res accentu�s et c�sure
\usepackage[utf8x]{inputenc}    % Choix de l'encodage
\usepackage{graphicx}           % Paquage pour l'insertion d'images
\usepackage{wrapfig}            % Figures flottantes
\usepackage[french]{babel}      % Support Fran�ais
\usepackage{eurosym}            % Signe � qui s'adapte en fonction de la police
\usepackage{fancyhdr}           % En-t�te de pages personalis�s
\usepackage{color}              % Un peu de couleurs
\usepackage{array}              % Faire des beaux tableaux
% Liens cliquables dans le document
\usepackage[colorlinks=true,linkcolor=black,urlcolor=blue,%
pdftitle={Workshop},pdfauthor={GConfs}]{hyperref}
\usepackage{amsmath}            % Formules mat�matiques
\usepackage{listings}           % Mise en forme de code source

% Changement des polices du document
\usepackage{palatino}
\usepackage[sc]{mathpazo}
\linespread{1.05}

% ***** c�sures particuli�res *****

\hyphenation{}

% ***** filigrane *****
\newcommand{\makefiligrane}
{
   \usepackage{eso-pic,rotating}
   \AddToShipoutPicture{%
   \unitlength 1cm
   \put(11,15){%
   \begin{rotate}{45}
   \makebox(0,0){\color{lightgray}\scalebox{3.5}{\Huge BROUILLON}}
   \end{rotate}}
   }
}

% ***** couleurs perso *****

\definecolor{lightgray}{RGB}{240,240,240}

\definecolor{vert}{RGB}{0,176,80}
\definecolor{verta}{RGB}{79,97,40}
\definecolor{vertb}{RGB}{195,214,155}
\definecolor{vertc}{RGB}{235,241,221}
\definecolor{bleua}{RGB}{31,73,125}
\definecolor{bleub}{RGB}{219,229,241}
\definecolor{rougea}{RGB}{192,80,77}
\definecolor{rougeb}{RGB}{242,220,219}

\definecolor{brown}{RGB}{128,0,0}
\definecolor{blue}{RGB}{0,0,255}
\definecolor{green}{RGB}{0,128,0}
\definecolor{seagreen}{RGB}{69,158,181}


% ***** commandes personnelles *****
\newcommand{\helpbox}[3][bleu]{\vspace{1em}\fcolorbox{#1a}{#1b}{\parbox{.92%
\linewidth}{\hspace{5pt}\textbf{#2~:} #3}}\vspace{0.75em}}
\newcommand{\warnbox}[3][rouge]{\vspace{1em}\fcolorbox{#1a}{#1b}{\parbox{.92%
\linewidth}{\hspace{5pt}\textbf{#2~:} #3}}\vspace{0.75em}}
\newcommand{\tp}{workshop}
\newcommand{\Tp}{Workshop}
\makeatletter
\renewcommand{\chapter}{\clearpage%
     \@startsection{chapter}{1}{-0.75em}{\baselineskip}%
     {0.5\baselineskip}{\LARGE\textbf}}
\makeatother
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{section}}

% ***** en-t�tes et pieds de pages *****
\newcommand{\headfootparams}[1]{
    \pagestyle{fancyplain}
    \lhead[\emph{\nouppercase{\leftmark}}]{\emph{\textit{\Tp{} #1}}}
    \chead{} 
    \rhead[\emph{\textit{\Tp{} #1}}]{\emph{\nouppercase{\leftmark}}}
    \lfoot[]{\small{\textit{GConfs 2011}}}
    \rfoot[\small{\textit{GConfs 2011}}]{}
}

% ***** param�tre de la coloration syntaxique *****
\newcommand{\lstsetparams}[4]{
    \lstset{language=[#1]#2,basicstyle=\ttfamily\footnotesize,%
        stringstyle=\ttfamily\color{brown},commentstyle=\color{green},%
        %numberstyle=\footnotesize,stepnumber=1,numbersep=7pt,%
        backgroundcolor=\color{vertc},frame=single,tabsize=2,breaklines=true,%
        breakatwhitespace=false,%
        classoffset=0,% Mots cl�s non reconnus
        morekeywords={#3},keywordstyle=\color{blue},%
        classoffset=1,% Noms de classes
        morekeywords={#4},keywordstyle=\color{seagreen},%
        classoffset=0
    }
}
%\lstsetparams{varient}{lang}{blue_keywords}{seagreen_keywords}
