%%% Fichier tvo_these.sty'
%%% Copyright (c) Thomas van Oudenhove 2005-2006
%%%              vanouden\at enstimac\dot fr
%%% Fichier servant � stocker toutes les commandes pour ma th�se
%%% Licence LPPL
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tvo_these}[2006/04/25 v2]
%%%%%%%%%%%%%%%%%%%%%%%%%%%% packages
\RequirePackage[a4paper,
                inner=25mm,outer=30mm,
                top=30mm,bottom=30mm]{geometry}
\RequirePackage[chapter]{falgorithm}
\RequirePackage{xspace}
\RequirePackage[french]{varioref}
\RequirePackage{graphicx}
\RequirePackage{subfigure}
\RequirePackage{xcolor}
\RequirePackage{tabularx}
\RequirePackage{multirow}
\RequirePackage{pifont}
\RequirePackage{float}
\RequirePackage{calc}
\RequirePackage{ifthen}
\RequirePackage{wrapfig}
\RequirePackage{Tabbing}
\RequirePackage{fancyhdr}
\RequirePackage{amsmath}
\RequirePackage[hang]{caption}
\RequirePackage{natbib}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}
\RequirePackage{relsize}
\RequirePackage{listings}
\RequirePackage{enumerate}
\RequirePackage{cancel}
\RequirePackage[squaren]{SIunits}
\RequirePackage{mathrsfs}
\RequirePackage{ifpdf}
\RequirePackage{slashbox}
\RequirePackage{lettrine}
\RequirePackage{bm}
%\usepackage[frenchb]{babel}

%%% custom-made captions
\DeclareCaptionLabelSeparator{dash}{~---~}
\captionsetup{labelsep=dash,justification=justified}

%%% pour la loa 
%%% A REVOIR...
\let\theHfalgo@float\thefalgo@float

%%% pour remettre les en-t�tes vides aux changements de chap.
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%
  \hbox{}%
  \thispagestyle{empty}%              % Empty header styles
  \newpage%
  \if@twocolumn\hbox{}\newpage\fi\fi\fi}

%%% pour les dessins pstex_t et les chemins
\graphicspath{{.}{/home/thomasvo/these/manuscrit/figures/.}}
\ifpdf
\DeclareGraphicsRule{.pdftex}{pdf}{*}{}
\DeclareGraphicsExtensions{.pdf,.pdftex,.png,.jpg}
\RequirePackage[pdftex,breaklinks=true,
                colorlinks=true,citecolor=blue]{hyperref}
%\RequirePackage{breakurl}
\else
\DeclareGraphicsExtensions{.pstex,.eps}
\RequirePackage[dvips,breaklinks=true]{hyperref}
\RequirePackage{breakurl}
\fi 
\newsavebox{\boitadessin}
\addtolength{\belowcaptionskip}{2ex}

%%% possibilit� d'�carter un peu plus les paragraphes...
%\newlength{\saveparskip}
%\setlength{\saveparskip}{\parskip}
%\setlength{\parskip}{\saveparskip plus .4ex minus .1ex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%% environnements
%%% le r�sum� 
\newenvironment{resume}[1]{%
  \noindent\rule[.5ex]{\linewidth}{.2pt}\par%
  {\centering \large \bfseries #1\par}%
  \noindent\rule[.5ex]{\linewidth}{.2pt}\par
  \noindent{\large \textbf{R�sum� :}}\par}{%
  \medskip}

%%% l'abstract
\newenvironment{abstract}[1]{%
  \otherlanguage{english}
  \noindent\rule[.5ex]{\linewidth}{.2pt}\par%
  {\centering \large \bfseries #1\par}%
  \noindent\rule[.5ex]{\linewidth}{.2pt}\par
  \noindent{\large \textbf{Abstract:}}\par}{%
  \medskip}

%%% les mots-cl�s
\newenvironment{motsclefs}{\noindent{\large \textbf{Mots-cl�s
      :~}}\em}{}

%%% les keywords
\newenvironment{keywords}{\noindent{\large
    \textbf{Keywords\string:~}}\em}{} 

%%% pour les citations
\newenvironment{citer}{%
  \begin{quotation}%
    \itshape}{%
    \normalfont
  \end{quotation}}%

%%% listes d'�num�rations avec n� entour�s...
\newenvironment{circledenum}{%
  \begin{dingautolist}{172}}{%
  \end{dingautolist}}

%%% pour le colophon
\newenvironment{colophon}{%
  \begin{list}%
    {---}%
    {\setlength{\leftmargin}{3em}%
      \setlength{\itemsep}{2ex}}}%
  {%
  \end{list}}

%%% pour la syntaxe
\newenvironment{syntaxe}[1]{%
  \par\vspace{2ex plus 1ex minus .5ex}%
  \noindent\refstepcounter{definition}%
  {\textit{Syntaxe~:} \texttt{#1}}%
  \nobreak\@afterheading\[}{\]%
  \par\vspace{1ex plus .4ex minus .2ex}%
  \normalfont}%

%%% pour les d�finitions
\newcounter{definition}[chapter]
\renewcommand{\thedefinition}{\thechapter.\arabic{definition}}
\newenvironment{definition}[1]{%
  \par\vspace{3ex plus 1.5ex minus 1.5ex}%
  \noindent\refstepcounter{definition}%
  {\bfseries
    D�finition~\thedefinition~: \emph{#1}}%
  \nobreak\@afterheading\begin{quotation}%
    \itshape}{%
    \par\vspace{1ex plus .4ex minus .2ex}%
%     \hfil\hbox{\raisebox{1ex}%
%       {\vrule depth 0pt height 0.2pt width .15\textwidth}}%
    \normalfont
  \end{quotation}%
}%

\newenvironment{defsansnom}[2]{%
  \par\vspace{3ex plus 1.5ex minus 1.5ex}%
  \noindent\refstepcounter{definition}%
  {\bfseries
    #2~\thedefinition~: \emph{#1}}%
  \nobreak\@afterheading\begin{quotation}%
    \itshape}{%
    \par\vspace{1ex plus .4ex minus .2ex}%
%     \hfil\hbox{\raisebox{1ex}%
%       {\vrule depth 0pt height 0.2pt width .15\textwidth}}%
    \normalfont
  \end{quotation}%
}%

\newenvironment{defsansnum}[2]{%
  \par\vspace{3ex plus 1.5ex minus 1.5ex}%
  \noindent{\bfseries
    D�finition~#2~: \emph{#1}}%
  \nobreak\@afterheading\begin{quotation}%
    \itshape}{%
    \par%
    \normalfont
  \end{quotation}%
}%

%%% pour les postulats
\newtheorem{postulat}{Postulat}
%%%\newtheorem{th-u}{Th�or�me}[subsection]

%%% pour les chapeaux
\newenvironment{chapeau}[0]{%
  \vskip 5\p@
  \begin{flushright}\slshape%
    \begin{minipage}[c]{0.8\linewidth}%
      \setlength{\parindent}{1em}%
      \indent%
    }{%
    \end{minipage}%
  \end{flushright}\vskip 30\p@}%

%%% pour les exemples
\newcommand{\explelevelnum}{chapter}
\floatstyle{boxed}
\renewcommand\fs@boxed{\def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@plain
  \def\@fs@pre{\setbox\@currbox\vbox{\hbadness10000
    \moveleft5pt\vbox{\advance\hsize by10.8pt
      \hrule \hbox to\hsize{\vrule\kern5pt
        \vbox{\kern5pt\box\@currbox\kern5pt}\kern5pt\vrule}\hrule}}}%
  \def\@fs@mid{\kern2pt}%
  \def\@fs@post{}\let\@fs@iftopcapt\iftrue}
\newfloat{exemple@float}{hpt}{loe}[\explelevelnum]
\floatname{exemple@float}{\textsc{Ex}.}
\newcommand{\listofexemples}{\listof{exemple@float}{Liste des exemples}}

\newenvironment{exemple}[3][htbp]{%
  %%% d�but
  \begin{exemple@float}[#1]%
    \caption{#2}\label{#3}\par%
  }{%fin
  \end{exemple@float}%
}
\newenvironment{figinex}{%
  \begin{center}}{%
  \end{center}}
\newcommand{\fiecaption}[2]{\captionof{figure}{#1}\label{#2}}

\renewcommand{\floatpagefraction}{0.9}

%%%%%%%%%%%%%%%% raccourcis et commandes...
%%% pour les unit�s
%\newcommand*{\unit}[1]{\ensuremath{\textrm{ #1}}}

% op�rateurs
\newcommand{\Operator}[1]{\textsf{#1}}
% code
\newcommand{\Code}[1]{\texttt{#1}}
% intersection des spaces
\newcommand{\ssinter}{\ensuremath{\Cap}\xspace}
% union des spaces
\newcommand{\ssunion}{\ensuremath{\Cup}\xspace}

%%% pour les vecteurs
\newcommand*{\xvec}[1]{\overrightarrow{#1}}

%%% pour les intervalles
\newcommand*{\ival}[1]{\ensuremath{\boldsymbol{#1}}}

%%% pour les valeurs
\newcommand*{\valeur}[1]{\ensuremath{\textrm{\ #1\ }}}

%%% pour les noms
\newcommand*{\nom}[2][]{%
  #1\xspace\textsc{#2}%
}

%%% pour l'�lagage
\newcommand*{\elag}[0]{\ensuremath{\Rrightarrow}}

%%% les noeuds Vrai et Faux
\newcommand*{\Vrai}{\textit{\textbf{V}rai}\xspace}
\newcommand*{\Faux}{\textit{\textbf{F}aux}\xspace}

%%% le noeud $self
\newcommand*{\self}{\textit{\textbf{T}his}\xspace}

%%% pour les heuristiques
\newcommand*{\heur}[1]{\ensuremath{\boldsymbol{H_{#1}}}}

%%% pour les fichiers/mise en page
\newcommand*{\fichier}[1]{\nolinkurl{#1}}

%%% pour l'�tranger
\newcommand*{\foreign}[2][english]{%
  \emph{\foreignlanguage{#1}{#2}}%
}

%%% pour les m�thodes
\newcommand*{\methode}[1]{\textsc{#1}\xspace}

%%% pour montrer sur un sch�ma (gras ? )
\newcommand*{\montre}[1]{%
  \relax %
  \ifmmode \bm{#1}\else \textbf{\mathversion{bold}#1}\fi
}%

%%% une remarque
\newcommand*{\Remarque}{\medskip
  {\bfseries\hspace*{1em} Remarque~:\hspace{2em}}}

%%% pour les ensembles => symboles gras et majuscules
%%%          variables => symboles majuscules
%%%          valeurs   => symboles minuscules
\newcommand*{\ens}[1]{\ensuremath{\boldsymbol{#1}}}
\newcommand*{\var}[1]{\ensuremath{\textsl{#1}}}

%%% pour les routines d'algo
\newcommand*{\scalgo}[1]{\textrm{\textsc{#1}}}

%%% contraintes d'activation ou de desactivation
\newcommand*{\act}{\stackrel{ACT}{\longrightarrow}}
\newcommand*{\noact}{\stackrel{\cancel{ACT}}{\longrightarrow}}
%%% pour les RV, ARV, ...
\newcommand*{\CAmf}[1]{\underset{#1}{\Longrightarrow}}

%%% nouveau type de colonne pour tabularx (X centr�)
\newcolumntype{C}{>{\centering}X}
%%%                         pour centr� math
\newcolumntype{M}{>{\centering $}X<{$}}

%%% entre guillemets
\newcommand{\gui}[1]{\og #1 \fg}

\newcommand{\myvref}[1]{\ref{#1}}

%%% url en couleurs
\newcommand{\urlcolor}[1]{\url{#1}}

%%% pour les phrases chocs !
\newcommand{\phrasechoc}[1]{{\bfseries \large \color{red} #1}}

%%% Espaces (possibles et n�cessaires)
\newcommand*{\poss}[1]{\ensuremath{\Diamond \textrm{#1}}}
\newcommand*{\nece}[1]{\ensuremath{\Box \textrm{#1}}}

%%% pas de ligne pour backslashbox...
\def\nolinebackslashbox{%
  \def\@slashboxpicture##1{%
    \put(0,0){\makebox(0,0)[bl]{\box\@slashboxa}}%
    \put(\@slashboxwd,\@slashboxht){\makebox(0,0)[tr]{\box\@slashboxb}}%
  }%
  \@slashbox
}%

%%%%%%%%%%%%%%%%%%%% en-t�tes et pied de page
%%% le style de base (fancy)
\fancyhf{}
\fancyhead[RO,LE]{\small{\thepage}}
\fancyhead[RE]{\footnotesize{\leftmark}}
\fancyhead[LO]{\footnotesize{\rightmark}}
\fancyfoot[RE,LO]{{\scriptsize Thomas \textsc{van Oudenhove de Saint G�ry}}}
\fancyfoot[RO,LE]{}

%%% le style pour les chapitres (chapter)
\fancypagestyle{chapter}{%
 \fancyhf{} % clear all header and footer fields
 \renewcommand{\headrulewidth}{0pt} % met la largeur du trait � 0.2pt
 \renewcommand{\footrulewidth}{0pt}%
 \fancyfoot[R]{\thepage}        % le n� de page en bas a droite
 \fancyfoot[L]{{\scriptsize Thomas \textsc{van Oudenhove de Saint G�ry}}}}%

%%% rendre robustes les commandes de style de page ...
\addtocontents{toc}{\protect\thispagestyle{chapter}}
\addtocontents{lof}{\protect\thispagestyle{chapter}}
\addtocontents{loe}{\protect\thispagestyle{chapter}}
\addtocontents{loa}{\protect\thispagestyle{chapter}}
\addtocontents{lot}{\protect\thispagestyle{chapter}}

%%%%%%%%%%%%%%%%%%%%%%%% mise en page
%%% nouvelle d�finition de chapter et chapter*
\def\thickhrulefill{\leavevmode \leaders \hrule height 1pt \hfill \kern \z@}
\def\@makechapterhead#1{%
  \vspace*{30\p@}%
  {\parindent \z@ \reset@font
    \hbox{%
      \put(0,30.45){\vrule height 0pt depth 0.4pt width 12cm}%
      \put(0,2){\vrule height 1cm depth 0ex width 0.4pt}%
      \put(0,2){\vrule height 0pt depth 0.4pt width 3em}%
      \put(341.4,2){\vrule height 1cm depth 0ex width 0.4pt}%
      \put(190,2){\vrule height 0pt depth 0.4pt width 151.4pt}%
      \hspace{4em}%
      {\Huge \scshape \chaptername~\thechapter}%
    }%
    \par\nobreak% \centering
    \vspace*{40\p@}%
    \interlinepenalty\@M
    %\thickhrulefill
    \par\nobreak
    \vspace*{2\p@}%
    \addtocontents{loe}{\addvspace{10\p@}}%
    \addtocontents{loa}{\addvspace{10\p@}}%
    {\raggedright \Huge \bfseries #1\par\nobreak}%
    \par\nobreak
    \vspace*{2\p@}%
    %\thickhrulefill
    \vskip 100\p@
    \thispagestyle{chapter}
  }}
\def\@makeschapterhead#1{%
  \vspace*{30\p@}%
  {\parindent \z@ \reset@font
    \phantom{\hbox{%
      \put(0,30.45){\vrule height 0pt depth 0.4pt width 12cm}%
      \put(0,2){\vrule height 1cm depth 0ex width 0.4pt}%
      \put(0,2){\vrule height 0pt depth 0.4pt width 3em}%
      \put(341.4,2){\vrule height 1cm depth 0ex width 0.4pt}%
      \put(190,2){\vrule height 0pt depth 0.4pt width 151.4pt}%
      \hspace{4em}%
      {\Huge \scshape \chaptername~\thechapter}%
    }}%
    \par\nobreak% \centering
    \vspace*{40\p@}%
    \interlinepenalty\@M
    %\thickhrulefill
    \par\nobreak
    \vspace*{2\p@}%
    {\raggedright \Huge \bfseries #1\par\nobreak}%
    \par\nobreak
    \vspace*{2\p@}%
    %\thickhrulefill
    \vskip 100\p@
    \thispagestyle{chapter}
  }}
% pour inserer des images sur les titres de parties. 
% usage : part[nom court]{nom long}{ce qu'on veut}
%                                   ^^ (image, texte, ...)
\def\@part[#1]#2#3{%
  \ifnum \c@secnumdepth >-2\relax \refstepcounter {part}%
    \addcontentsline{toc}{part}{\thepart \hspace {1em}#1}%
  \else
    \addcontentsline {toc}{part}{#1}%
  \fi
  \markboth {}{}{%
  \centering \vfill
  \interlinepenalty \@M \normalfont 
  \ifnum \c@secnumdepth >-2\relax
    \Huge \bfseries \partname ~\thepart \par \vskip 20\p@ 
  \fi 
  \Huge \bfseries #2
  \par}%
  {\centering
  \vfill #3 \vfill}%
  \@endpart}

%%% subsubsubsection (pour pr�sentation des op�rateurs)
\newcommand*{\subsubsubsection}[1]{\vspace{1.5ex minus .2ex}%
  {\noindent \itshape #1\hspace*{1em}}\par
  \vspace{1ex minus .2ex}}

%%% compteurs communs aux flottants
\renewcommand*{\c@table}{\c@figure}
\renewcommand*{\c@exemple@float}{\c@figure}
\renewcommand*{\c@falgo@float}{\c@figure}

%%% �viter les veuves et orphelins
%\widowpenalty=10000
%\clubpenalty=10000
%%% ne pas ``�tirer'' sur la page
%\raggedbottom
%%% pour la titlepage
\newlength{\THEbaselineskip}
\setlength{\THEbaselineskip}{\baselineskip}

%%% pour le code... (langage de saisie CSP).
%\definecolor{violet}{rgb}{0.9,0,0.9}
\lstset{%
  basicstyle=\small \ttfamily,
%  morecomment=[l][\color{blue}]{//},
  emph={domain,with,attribute,boolean,symbolic,integer,float,variable,define,group},
  emphstyle={\color{blue}},
  escapechar=\%,
  morekeywords={not,sure,Sure,and,or,=>,<=>},keywordstyle=\color{red},
  classoffset=0,
%  numbers=left, stepnumber=5, numberstyle=\tiny \oldstylenums,
  breaklines=true}%,
%  frame=single, framerule=0.1pt}


%%%%%%%%%%%%%%%%%%%% biblio
%%% biblio - natbib
% \newcommand*{\andname}{and}
% \addto \frenchcaptions {%
%   \renewcommand*{\andname}{\&}%
% }
% \newcommand*{\technicalreportname}{Tech. Rep.}
% \addto \frenchcaptions {%
%   \renewcommand*{\technicalreportname}{Rapport Technique}%
% }
% \newcommand*{\Inname}{\emph{In}}
% \addto \frenchcaptions {%
%   \renewcommand*{\Inname}{\emph{In}}%
% }
% \newcommand*{\volumename}{Vol.}
% \addto \frenchcaptions {%
%   \renewcommand*{\volumename}{vol.}%
% }
% \newcommand*{\ofname}{of}
% \addto \frenchcaptions {%
%   \renewcommand*{\ofname}{de}%
% }
% \newcommand*{\editionname}{edition}
% \addto \frenchcaptions {%
%   \renewcommand*{\editionname}{�dition}%
% }
% \newcommand*{\editorname}{ed}
% \addto \frenchcaptions {%
%   \renewcommand*{\editorname}{coord}%
% }
% \newcommand*{\editornames}{eds}
% \addto \frenchcaptions {%
%   \renewcommand*{\editornames}{coords}%
% }
% \newcommand*{\inname}{\emph{in}}
% \addto \frenchcaptions {%
%   \renewcommand*{\inname}{\emph{in}}%
% }
% \newcommand*{\pagesname}{pages}
% \addto \frenchcaptions {%
%   \renewcommand*{\pagesname}{pages}%
% }
\newcommand*{\andname}{\&\xspace}
\newcommand*{\technicalreportname}{Rapport Technique\xspace}
\newcommand*{\Inname}{\emph{In}\xspace}
\newcommand*{\volumename}{vol.\xspace}
\newcommand*{\ofname}{de\xspace}
\newcommand*{\editionname}{�dition\xspace}
\newcommand*{\editorname}{\textit{coord}\xspace}
\newcommand*{\editornames}{\textit{coord}\xspace}
\newcommand*{\inname}{\emph{in}\xspace}
\newcommand*{\pagesname}{pages\xspace}
\providecommand{\janname}{janvier\xspace}
\providecommand{\febname}{f�vrier\xspace}
\providecommand{\marname}{mars\xspace}
\providecommand{\aprname}{avril\xspace}
\providecommand{\mayname}{mai\xspace}
\providecommand{\junname}{juin\xspace}
\providecommand{\julname}{juillet\xspace}
\providecommand{\augname}{ao�t\xspace}
\providecommand{\sepname}{septembre\xspace}
\providecommand{\octname}{octobre\xspace}
\providecommand{\novname}{novembre\xspace}
\providecommand{\decname}{d�cembre\xspace}

%%%%%%%%%%%%%%%%%%%%%% abbrev
%%% CSP
%\newcommand*{\etoile}{{\Large \lower -.2ex\hbox{$\star$}}\xspace}
%\relsize{5}
%\DeclareRobustCommand{\etoile}{\raisebox{.2ex}{%
%    $\mathlarger{\mathlarger{\star}}$}\xspace}
\DeclareRobustCommand{\etoile}{\raisebox{.2ex}{%
    $\bigstar$}\xspace}
% \newcommand*{\etoile}[0]{\ifmmode
%   \raisebox{.2ex}{\ensuremath{%
%         \mathlarger{\star}}}%
%   \else
%   \lower -.2ex\hbox{\ensuremath{%
%       \mathlarger{\star}}}%
%   \fi\xspace}
%\ensuremath{^\star}\xspace}
\newcommand*{\csp}{\textsc{csp}\xspace}
\newcommand*{\dcsp}{\textsc{dcsp}\xspace}
\newcommand*{\cspe}{\textsc{csp}e\xspace}
\newcommand*{\ccsp}{\textsc{ccsp}\xspace}
\newcommand*{\condcsp}{Cond\textsc{csp}\xspace}
\newcommand*{\acsp}{\textsc{acsp}\xspace}
\newcommand*{\cspstar}{\textsc{csp}\etoile}
\newcommand*{\rcsp}{\textsc{Rcsp}\xspace}

%%% abbr�viations classiques
\newcommand{\cad}{\hbox{c.-�-d.}\xspace}
\newcommand{\etc}{\emph{etc.\@}\xspace}
\newcommand{\vav}{vis-�-vis\xspace}

%%% les E dans les O
\newcommand{\noeud}{n\oe{}ud\xspace}
\newcommand{\noeuds}{n\oe{}uds\xspace}
\newcommand{\Noeud}{N\oe{}ud\xspace}
\newcommand{\Noeuds}{N\oe{}uds\xspace}

\newcommand{\voeux}{v\oe{}ux\xspace}
\newcommand{\Voeux}{V\oe{}ux\xspace}

\newcommand{\oeuvre}{\oe{}uvre\xspace}
\newcommand{\oeuvres}{\oe{}uvres\xspace}
\newcommand{\Oeuvre}{\OE{}uvre\xspace}
\newcommand{\Oeuvres}{\OE{}uvres\xspace}

\newcommand{\oeuf}{\oe{}uf\xspace}
\newcommand{\oeufs}{\oe{}ufs\xspace}
\newcommand{\Oeuf}{\OE{}uf\xspace}
\newcommand{\Oeufs}{\OE{}ufs\xspace}

\newcommand{\soeur}{s\oe{}ur\xspace}
\newcommand{\soeurs}{s\oe{}urs\xspace}
\newcommand{\Soeur}{S\oe{}ur\xspace}
\newcommand{\Soeurs}{S\oe{}urs\xspace}

\newcommand{\moeur}{m\oe{}ur\xspace}
\newcommand{\moeurs}{m\oe{}urs\xspace}
\newcommand{\Moeur}{M\oe{}ur\xspace}
\newcommand{\Moeurs}{M\oe{}urs\xspace}

\newcommand{\coeur}{c\oe{}ur\xspace}
\newcommand{\coeurs}{c\oe{}urs\xspace}
\newcommand{\Coeur}{C\oe{}ur\xspace}
\newcommand{\Coeurs}{C\oe{}urs\xspace}

\newcommand{\oeillets}{\oe{}illets\xspace}
\newcommand{\oeillet}{\oe{}illet\xspace}
\newcommand{\Oeillets}{\OE{}illets\xspace}
\newcommand{\Oeillet}{\OE{}illet\xspace}

%%% les lettrines
\newcommand*{\DANS}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1,slope=-.5em]%
  {D}{ans}\xspace}

\newcommand*{\CET}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1,slope=.5em]%
  {C}{et}\xspace}

\newcommand*{\LA}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1,slope=.75em]%
  {L}{a}\xspace}

\newcommand*{\LACTIVITE}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1,slope=.75em]%
  {L}{'activit�}\xspace}

\newcommand*{\ANY}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1,slope=1em]%
  {A}{ny}\xspace}

\newcommand*{\LES}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1,slope=.75em]%
  {L}{es}\xspace}

\newcommand*{\AUCOURS}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1,slope=1em]%
  {A}{u cours}\xspace}

\newcommand*{\NOUS}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1]%
  {N}{ous}\xspace}

\newcommand*{\ENFIN}[0]{%
  \lettrine[lines=3,lhang=.2,loversize=.2,lraise=0.1,slope=.25em]%
  {E}{nfin}\xspace}
