modèle latex pour le mémoire de thèse.docx

Upload: mecherneneaek9037

Post on 02-Jun-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    1/38

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %%

    %% Modle LaTeX pour le mmoire de thse de l'ETS

    %% Bas sur la classe de base book.cls, gnralement positionn%% dans un systme linux

    %% /usr/share/texmf/tex/latex/base/book.cls

    %%

    %% Corrections apportes par Rmi Menegon ([email protected])

    %% [3 Septembre 2010]

    %% * Possibilit de ne pas avoir de codirecteur (bug patch)

    %% * More math symbols

    %%

    %% [9 Aout 2010]%% * Modification de titre de la bibliographie

    %% * Style de citation conforme avec bibnat (en commentaire)

    %% Utilisation de plain-fr par dfaut

    %% * Redfinition des quotes.

    %%

    %% [26 Juillet 2010]

    %% * Modification MakeUpperCase (Patch Tennessee Carmel-Veilleux)

    %% * Utilisation possible de hyperref pour publication online,

    %% l'activation se fait avec l'option web. (Patch Tennessee Carmel-Veilleux)%% * Ajout d'un nouveau style bibtex, plus conforme (Patch Pascal Giard)

    %%

    %% [25 Juillet 2010]

    %%

    %% * Gestion automatique du titre suivant these ou mmoire

    %% * Gestion des mots cls automatique

    %% * Rectification du copyright

    %% * Ajout amsfonts pour la dclaration d'ensemble

    %%%% Corrections apportes par Pascal Giard ([email protected])

    %%

    %% [17 juin 2009]

    %% Ces corrections font suites la vrification de la mise en page de mon

    %% mmoire effectue par le service des cycles suprieures (Lise Daigneault).

    %% - Suppression du ":" dans l'expression "PAR UN JURY COMPOS DE";

    %% - Suppression de l'espace des listes (itemize);

    %% - Correction de l'enlignement de la 2e ligne du titre d'un chapitre dans la

    % TOC.

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    2/38

    %%

    %% Corrections apportes par Ccile Le Cocq ([email protected])

    %%

    %% [17 mars 2008]

    %% corrections relatives au nouveau guide de rdaction dat du 12 novembre 2007%%

    %% Commentaires (et modifications?) par Luis Da Costa ([email protected])

    %%

    %% [14 Juillet 2006]

    %% Il faut laisser une ligne en blanc AVANT et APRES une citation de plus de 3 lignes:

    %%

    %% Zinedine Zidane a remarque

    %% [LIGNE EN BLANC]

    %% \begin{quote}%% parler de ma mere et de ma soeur merite bien un coup de boule.

    %% \end{quote}

    %% [LIGNE EN BLANC]

    %%

    %% [14 Juillet 2006]

    %% Dans la table des matieres il doit y avoir une indentation.

    %% J'ai donc comment ce que Seb avait implement (chercher LUIS dans ce document

    %% pour voir).

    %%%% Version 0.4

    %% Date : 2005/08/04

    %%

    %% Modifications par S. Piccand ([email protected])

    %%

    %% thETS4 est bas sur thETS3

    %% Quelques corrections au niveau de la table des matires

    %% - la division en section d'un chapitre est spare par une ligne de l'intitul du chapitre

    %% - les annexes sont correctement gres

    %% - la bibliographie est corrige en utilisant le package natbib.sty et le style ETS.bst

    %% - ajout de l'option memoire. Par defaut il s'agit d'une thse

    %% - correction des figures, sous figures, tables

    %% - correction des footnotes, utiliser \footnote{} comme d'habitude

    %% - correction de l'environnement "enumerate"

    %% - correction des citations utiliser \quote{} comme d'habitude

    %%

    %% Macros supplmentaires pour ajouter plus facilement des figures/tableaux et y fairerfrence

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    3/38

    %%

    %% Non corrig de la version 0.3 :

    %% * Dans les diffrentes listes (figures, tables, etc.) il n'y a pas assez d'espace entre la fin

    %% du titre et les numros. Une solution consiste utiliser des noms de figure courts.

    %% * Les titres des sections/chapitre/soussections/etc doivent tre courts pour ne pas passer

    %% la ligne dans la table des matires.

    %% * Les citations ne sont pas encore bonnes.

    %%

    %%

    %% Version 0.3

    %% Date : 2004/12/17

    %%

    %% Modifications par G. Tremblay ([email protected])%%

    %% thETS3 est bas sur thETS2

    %% Quelques corrections apportes par rapport la version 0.2:

    %%

    %% Utilisation de algorithme2e.sty sans problmes de compatibilit. Correction faite par F.Grandidier

    %% et applique par G. Tremblay

    %%

    %% Les citations de plus de 3 lignes sont interligne simple tel qu'exig par le Dcanat(utilisez begin{quoteETS})

    %%

    %% Les footnotes sont remplaces par de footnoteETS pour ne pas avoir d'indentation deparagraphe

    %%

    %%

    %% Version 0.2

    %% Date: 2003/05/06

    %%%% Par F. Grandidier ([email protected])

    %%

    %% Ajout ver 0.2: alignement du titre du chapitre dans la table

    %% des matires lorsqu'il tient sur plusieurs

    %% lignes

    %%

    %%

    %%

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    4/38

    \def\filedate{2010/09/14}

    \NeedsTeXFormat{LaTeX2e}[1994/06/01] %% Mis par dfaut

    \ProvidesClass{thETS-latin1}[\filedate\space Standard ETS class]

    %% Mmes options possibles que celle de la classe book.cls

    %% Cependant tous ne va peut tre pas marcher comme dans book...\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}

    \newcommand{\TypeDoc}{these}

    \DeclareOption{memoire}{%

    \renewcommand{\TypeDoc}{memoire}

    }

    \DeclareOption{letterpaper}{%

    \setlength\paperheight {11in}%

    \setlength\paperwidth {8.5in}%}

    %% Ajout de l'option web pour activer hyperref (Menegon 26-07-2010)

    \newcommand{\WithHyperref}{false}

    \DeclareOption{hypertext}{%

    \renewcommand{\WithHyperref}{true}

    }

    \ProcessOptions

    \LoadClass{book} %% Chargement de la classe book\RequirePackage{times} %% Police Times

    \RequirePackage[frenchb]{babel} %% Francisation du document

    \RequirePackage[utf8]{inputenc} %% Prise en compte de la frappe de caractres accentus

    \RequirePackage[T1]{fontenc} %% Codage standard des fontes LaTeX pour le franais

    \RequirePackage{calc} %% permet de raliser des additions et soustractions de valeurs lorsd'affectation de variables

    \RequirePackage{setspace}

    \RequirePackage{ifthen} %% Permet de raliser des tests sur des variables

    \RequirePackage{amsthm} % clc\RequirePackage{amsfonts} % Lettres Majuscule d'ensemble (R, N, etc)

    \RequirePackage{longtable}

    \RequirePackage{float}

    \RequirePackage{listings} %% Code listings (extraits de code)

    \RequirePackage[]{silence} %% Suppress useless Warning in this class

    \RequirePackage[ruled,noresetcount,noend]{algorithm2e}

    \RequirePackage{setspace}

    \RequirePackage{stmaryrd} %% More math symbols, like \llbracket\rrbracket

    %\RequirePackage{babelbib} %% Bon affichage de la bibliographie%\RequirePackage[authoryear]{natbib}

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    5/38

    %% Exec de l'option web pour activer hyperref (Menegon 26-07-2010)

    \ifthenelse{\equal{\WithHyperref}{true}}{

    \RequirePackage[pdfborder={0 0 0 0}]{hyperref}

    }{}%

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Dfinition de commandes pour la prsentation du jury

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newcommand{\PrefDirect}{M.}

    \newcommand{\NomDirect}{Nom du directeur de recherche}

    \ifthenelse{\equal{\TypeDoc}{these}}{

    \newcommand{\TxtDirect}{directeur de thse}

    }{

    \newcommand{\TxtDirect}{directeur de mmoire}}

    \newcommand{\AffilDirect}{Affiliation du directeur}

    \newcommand{\PrefCoDirect}{M.}

    \newcommand{\NomCoDirect}{Nom du co-directeur}

    \newcommand{\TxtCoDirect}{codirecteur}

    \newcommand{\AffilCoDirect}{Affiliation du codirecteur}

    \newcommand{\PrefPresid}{M.}

    \newcommand{\NomPresid}{Nom du prsident du jury}

    \newcommand{\TxtPresid}{prsident du jury}\newcommand{\AffilPresid}{Affiliation du prsident du jury}

    \newcommand{\PrefExamExt}{M.}

    \newcommand{\NomExamExt}{Nom de l'examinateur externe}

    %\newcommand{\TxtExamExt}{membre du jury}

    \newcommand{\TxtExamExt}{examinateur externe}

    \newcommand{\PlusTxtExamExt}{Blabla}

    \newcommand{\AffilExamExt}{Affiliation de l'examinateur externe}

    \newcommand{\PrefJury}{M.}

    \newcommand{\NomJury}{Nom d'un membre du jury}\newcommand{\TxtJury}{membre du jury}

    %\newcommand{\TxtJury}{examinateur}

    %\newcommand{\TxtJury}{membre du jury}

    %\newcommand{\TxtJury}{} % modifi pour mon membre du jury Patrick Maupin

    \newcommand{\PlusTxtJury}{Blabla}

    \newcommand{\AffilJury}{Affiliation du membre du jury}

    \newcommand{\PrefJuryB}{M.}

    \newcommand{\NomJuryB}{Nom d'un membre du jury}

    \newcommand{\TxtJuryB}{examinateur invit}

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    6/38

    \newcommand{\PlusTxtJuryB}{Blabla}

    \newcommand{\AffilJuryB}{Affiliation du membre du jury}

    %% Directeur de thse

    \newcommand{\directeur}[3]{%

    \renewcommand{\PrefDirect}{#1}%\ifthenelse{\equal{#1}{Mme}}{% Permet de modifier pour le fminin

    \ifthenelse{\equal{\TypeDoc}{these}}{

    \renewcommand{\TxtDirect}{directrice de thse}

    }{%

    \renewcommand{\TxtDirect}{directrice de mmoire}}

    }{

    }%

    \renewcommand{\NomDirect}{#2}%

    \renewcommand{\AffilDirect}{#3}%

    }%

    %% Co-directeur de thse

    \newcommand{\codirecteur}[3]{%

    \renewcommand{\PrefCoDirect}{#1}%

    \ifthenelse{\equal{#1}{Mme}}{%

    \renewcommand{\TxtCoDirect}{codirectrice}}{}%

    \renewcommand{\NomCoDirect}{#2}%

    \renewcommand{\AffilCoDirect}{#3}%}%

    %% Prsident du jury

    \newcommand{\president}[3]{%

    \renewcommand{\PrefPresid}{#1}%

    \ifthenelse{\equal{#1}{Mme}}{%

    \renewcommand{\TxtPresid}{prsidente du jury}}{}%

    \renewcommand{\NomPresid}{#2}%

    \renewcommand{\AffilPresid}{#3}%

    }%%% Examinateur externe

    \newcommand{\examinexterne}[4]{%

    \renewcommand{\PrefExamExt}{#1}%

    \ifthenelse{\equal{#1}{Mme}}{%

    \renewcommand{\TxtExamExt}{examinatrice externe}}{}%

    \renewcommand{\NomExamExt}{#2}%

    \renewcommand{\AffilExamExt}{#3}%

    \renewcommand{\PlusTxtExamExt}{#4}%

    }%%% Membre du jury

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    7/38

    \newcommand{\jury}[4]{%

    \renewcommand{\PrefJury}{#1}%

    \ifthenelse{\equal{#1}{Mme}}{%

    \renewcommand{\TxtJury}{membre du jury}}{}%

    \renewcommand{\NomJury}{#2}%\renewcommand{\AffilJury}{#3}%

    \renewcommand{\PlusTxtJury}{#4}%

    }%

    %% Membre du jury

    \newcommand{\juryB}[4]{%

    \renewcommand{\PrefJuryB}{#1}%

    \ifthenelse{\equal{#1}{Mme}}{%

    \renewcommand{\TxtJuryB}{examinatrice invite}}{}%

    \renewcommand{\NomJuryB}{#2}%\renewcommand{\AffilJuryB}{#3}%

    \renewcommand{\PlusTxtJuryB}{#4}%

    }%

    %% Bon ll, si il y a d'autres membres a devient le bordel. 2 possibilit :

    %% - rendre le code dynamique, mais a l'air vachement compliqu

    %% - crer des variables examext2, juryB, jury3,... (plus facile)

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Pour le copyright, c'est Prnom Nom%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Variable associe aux dates de

    %% soutenance et de dpt

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

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

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Variable pour la mise en page des chapitres dans

    %% la table des matires

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newlength{\largChap}

    \newlength{\largNum}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Marges horizontales du document

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newlength{\margegauche}

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    8/38

    \setlength{\margegauche}{108.405pt}%{1.5in}

    \newlength{\margedroite}

    \setlength{\margedroite}{54.2025pt}%{72.27pt}%{1in}%{0.75in}

    \setlength{\oddsidemargin}{\margegauche - (72.27pt + \hoffset)}%{\margegauche - (1in +

    \hoffset)}%\setlength{\evensidemargin}{\margedroite - (72.27pt + \hoffset)}%{\margedroite - (1in +\hoffset)} % Pour une mise en page recto-verso

    \setlength{\textwidth}{\paperwidth - \margegauche - \margedroite}

    %\setlength{\marginparsep}{0pt}

    %\setlength{\marginparwidth}{\margedroite}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Marges verticales du document

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newlength{\margehaut}\setlength{\margehaut}{108.405pt}%{1.5in}

    \newlength{\margebas}

    \setlength{\margebas}{54.2025pt}%{0.75in}

    \setlength{\topmargin}{-15.363pt}%{-5.4mm} % 1 in - 20 mm

    \setlength{\headheight}{12pt}

    \setlength{\headsep}{\margehaut - \headheight - \topmargin - 72.27pt -\voffset}%{\margehaut - \headheight - \topmargin - 1in - \voffset}

    \setlength{\textheight}{\paperheight - \margehaut - \margebas}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Marges autour des objets flottants : figures et tableaux

    %% Ce n'est pas au point, il y aurait des ajustements faire.

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \setlength\abovecaptionskip{1em}

    \setlength\belowcaptionskip{1em}

    %\setlength\floatsep{1em}

    \setlength\textfloatsep{12pt}

    %\setlength\intextsep{1em}

    %%%%%%%%%%%%%%%%%%%

    %% Marge la table des matires et les diffrentes listes

    %%%%%%%%%%%%%%%%%%%

    \newlength{\tocRightMargin} % Marge droite

    \setlength{\tocRightMargin}{2cm}

    \newlength{\tocLeftMarginSecondLine}

    \setlength{\tocLeftMarginSecondLine}{6.1em} % Marge gauche quand on va la ligne pourles sections et sous sections

    \newlength{\tocLeftMarginSecondLineChapter}

    \setlength{\tocLeftMarginSecondLineChapter}{6.1em} % Marge gauche quand on va la

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    9/38

    ligne pour les chapitres et annexes

    \newlength{\tocLeftMarginSecondLineFigure}

    %\setlength{\tocLeftMarginSecondLineFigure}{5.2em} % Marge gauche quand on va laligne pour les figures

    \setlength{\tocLeftMarginSecondLineFigure}{6.5em} % Marge gauche quand on va laligne pour les figures

    \newlength{\tocLeftMarginSecondLineTable}

    %\setlength{\tocLeftMarginSecondLineTable}{5.9em} % Marge gauche quand on va laligne pour les tableaux

    \setlength{\tocLeftMarginSecondLineTable}{7.1em} % Marge gauche quand on va laligne pour les tableaux, MODIFIEE car besoin de decaler titres des tableaux vers la droite !!

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Fraction maxi des objets flottants

    %% en haut et bas de page%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand{\floatpagefraction}{.99}

    \renewcommand{\textfraction}{.01}

    \renewcommand{\topfraction}{.99}

    \renewcommand{\bottomfraction}{.99}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Interligne du document

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \def\mystretch{1.5}\def\baselinestretch{\mystretch}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Espace entre 2 paragraphes

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \setlength{\parskip}{12pt} % 12pt

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Pas d'indentation des paragraphes

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\setlength{\parindent}{0pt}

    %% La commande prcdente avec babel french supprime l'indentation des listes

    %% La commande suivante permet de conserver l'indentation des listes

    %% Obtenu de la documentation du package Babel

    %\FrenchItemizeSpacingfalse

    %\frenchbsetup{CompactItemize=false}

    \ifx\frenchbsetup\undefined

    \FrenchItemizeSpacingtrue

    \else

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    10/38

    \frenchbsetup{CompactItemize=false}

    \fi

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Pour viter les veuves et orphelins

    %% (lignes seules en dbut ou fin de pages)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \widowpenalty=10000

    \clubpenalty=10000

    \raggedbottom

    %%% footnote

    %

    % Pour enlever l'indentation des footnotes (LUIS)

    %

    \newlength{\NameOfNewDefinedLength}

    \newcommand{\footnoteETS}[1]%

    {\footnote{\setlength{\NameOfNewDefinedLength}{\textwidth}

    \advance\leftskip -2.7mm %%

    \addtolength{\NameOfNewDefinedLength}{-2em+2.mm}

    \hskip -1.mm

    \parbox[t]{\NameOfNewDefinedLength}{\raggedright #1}}}

    % \newcommand{\footnoteETS}{\footnote}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Page titre

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newcommand{\genie}[1]{

    \newcommand{\vargenie}{\MakeUppercase{#1}}

    }

    \newcommand{\lediplomephd}{

    DU\\

    DOCTORAT EN GNIE\\Ph.D.

    }

    \newcommand{\lediplomeming}{

    DE LA\\

    MATRISE EN GNIE \vargenie\\

    M.Ing.

    }

    \ifthenelse{\equal{\TypeDoc}{these}}

    {

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    11/38

    \newcommand{\lediplome}{\lediplomephd}

    }{%

    \newcommand{\lediplome}{\lediplomeming}

    }

    \renewcommand{\maketitle}{\begin{titlepage}\renewcommand{\baselinestretch}{1}\small\normalsize % Interligne simple

    \let\footnotesize\small%

    \let\footnoterule\relax%

    \let \footnote \thanks%

    \begin{center}

    COLE DE TECHNOLOGIE SUPRIEURE\\

    UNIVERSIT DU QUBEC

    \vfill

    \ifthenelse{\equal{\TypeDoc}{these}}{

    THSE PRSENTE

    }{

    MMOIRE PRSENT

    } \\

    L'COLE DE TECHNOLOGIE SUPRIEURE

    \vfill

    COMME EXIGENCE PARTIELLE\\

    L'OBTENTION %DE LA\\% MATRISE EN GNIE LECTRIQUE\\

    % M.Ing.

    \lediplome

    \vfill

    PAR\\

    \@author

    %\MakeUppercase{\@author}%

    \vfill

    \MakeUppercase{\@title}%\vfill

    MONTRAL, LE \MakeUppercase{\@datedepot}%

    \vspace{1em}%{.7cm}

    {\scriptsize \copyright Tous droits rservs, \@authorcopyright,

    \number\year.}% Tous droits rservs,

    \end{center}

    \end{titlepage}

    \cleardoublepage

    }

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    12/38

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Page de prsentation du jury

    % LUIS A ELIMINE L'ESPACE ENTRE LES NOMS ET LES AFFILIATIONS(Dcanat...)

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\newcommand\presentjury{\begin{jurypage}%

    \let\footnotesize\small%

    \let\footnoterule\relax%

    \begin{center}%

    \renewcommand{\baselinestretch}{2}\small\normalsize

    \textbf{PRSENTATION DU JURY}\\

    \ifthenelse{\equal{\TypeDoc}{these}}{

    CETTE THSE A T VALUE

    }{CE MMOIRE A T VALU}\\

    PAR UN JURY COMPOS DE\\

    \vspace{6em}%

    \end{center}

    \begin{flushleft}

    \renewcommand{\baselinestretch}{1}\small\normalsize

    % Directeur de mmoire

    \PrefDirect~\NomDirect,~\TxtDirect\\

    % \vspace{3pt} % LUIS\AffilDirect\par

    \vspace{1em}

    % Codirecteur optionnel

    \ifthenelse{\equal{\NomCoDirect}{Nom du co-directeur}}{}{%

    \PrefCoDirect~\NomCoDirect,~\TxtCoDirect\\%

    \vspace{3pt}

    \AffilCoDirect\par%

    \vspace{1em}

    }%% Prsident du jury

    \PrefPresid~\NomPresid,~\TxtPresid\\%

    % \vspace{3pt}

    \AffilPresid\par%

    \vspace{1em}%

    % Jury

    \ifthenelse{\equal{\NomExamExt}{Nom d'un membre du jury}}{}{%

    \PrefJury~\NomJury\\

    % \PrefJury~\NomJury\ifthenelse{\equal{\PlusTxtJury}{}}{,~}{,~\PlusTxtJury}%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    13/38

    % \TxtJury\\%

    % \vspace{3pt}

    \AffilJury\par%

    \vspace{1em}

    }%% Examinateur externe

    \ifthenelse{\equal{\NomExamExt}{Nom de l'examinateur externe}}{}{%

    \PrefExamExt~\NomExamExt\\

    %\PrefExamExt~\NomExamExt\ifthenelse{\equal{\PlusTxtExamExt}{}}{,~}{,~\PlusTxtExamExt,~}%

    % \TxtExamExt\\%

    % \vspace{3pt}

    \AffilExamExt\par%\vspace{1em}

    }%

    % JuryB optionnel

    \ifthenelse{\equal{\NomJuryB}{Nom d'un membre du jury}}{}{%

    \PrefJuryB~\NomJuryB\ifthenelse{\equal{\PlusTxtJuryB}{}}{,~}{,~\PlusTxtJuryB}%

    \TxtJuryB\\%

    % \vspace{3pt}

    \AffilJuryB\par%\vspace{1em}

    }%

    \end{flushleft}

    \begin{center}%

    \vspace{3em}%

    \renewcommand{\baselinestretch}{2}\small\normalsize%

    \ifthenelse{\equal{\TypeDoc}{these}}{

    ELLE

    }{IL

    } A FAIT L'OBJET D'UNE SOUTENANCE DEVANT JURY ET PUBLIC\\

    LE \MakeUppercase{\@datesoutenance}\\

    L'COLE DE TECHNOLOGIE SUPRIEURE

    \end{center}\par%

    \vfil\null%

    \end{jurypage}%

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    14/38

    %% Profondeur de la numrotation des divisions des chapitres

    %% Valeur de 1(\section) 5(\subparagraph)

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \setcounter{secnumdepth}{5}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Changement dans la table des matires

    %% des entres associes aux chapitres

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \def\@chapter[#1]#2{

    \ifnum \c@secnumdepth >\m@ne%

    \if@mainmatter%

    \refstepcounter{chapter}%

    \typeout{\@chapapp\space\thechapter}%

    % Tennessee Carmel-Veilleux (25 juillet 2010): Modif pour viter les erreurs de \uppercaseavec hyperref

    \@ifundefined{texorpdfstring}{

    % Hyperref non dtect: on fait comme si de rien tait

    \addcontentsline{toc}{chapter}{\protect{\uppercase{\@chapapp\ \thechapter\hskip 1em#1}}}%

    }{

    % Hyperref dtect: deux versions du label: une premire formate pour TeX, une deuximesimplifie pour les bookmarks

    \addcontentsline{toc}{chapter}{\protect{\texorpdfstring{\uppercase{\@chapapp\\thechapter\hskip 1em #1}}{\@chapapp\ \thechapter\ #1}}}%

    }

    \else%

    \addcontentsline{toc}{chapter}{#1}%

    \fi%

    \else%

    \addcontentsline{toc}{chapter}{#1}%

    \fi%

    \chaptermark{#1}%% \addtocontents{toc}{\protect\addvspace{10\p@}}%

    \@makechapterhead{#2}%

    \@afterheading%

    }%

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Modification des chapitres numrots

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand{\@makechapterhead}[1]{{

    \normalfont\bfseries%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    15/38

    \begin{center}

    \etchapterheadstyle{\@chapapp{ \thechapter}} % CHAPTER 1

    \vskip 3\p@%

    \etchapterheadstyle{#1} % TITLE OF CHAPTER

    \end{center}\vskip 5\p@%

    \thispagestyle{empty}%

    }}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Modification des chapitres sans numro

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand{\@makeschapterhead}[1]{{

    \thispagestyle{empty}

    \normalfont\bfseries%\begin{center}

    \etchapterheadstyle{#1} % TITLE OF CHAPTER

    \end{center}

    }}

    \newcommand{\etchapterheadstyle}[1]{\MakeUppercase{#1}}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Dfinition des espacements avant et aprs les diffrentes

    %% divisions de chapitre%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand\section{\@startsection{section}{1}{\z@}%

    {-0.25ex \@plus -1ex \@minus -.2ex}%

    {0.5ex \@plus.2ex}%

    {\normalfont\normalsize\bfseries}}

    \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%

    {-0.25ex\@plus -1ex \@minus -.2ex}%

    {0.5ex \@plus .2ex}%

    {\normalfont\normalsize\bfseries}}\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%

    {-0.25ex\@plus -1ex \@minus -.2ex}%

    {0.5ex \@plus .2ex}%

    {\normalfont\normalsize\bfseries}}

    \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%

    {-0.25ex \@plus -1ex \@minus -.2ex}%

    {0.5ex \@plus .2ex}%

    {\normalfont\normalsize\bfseries}}

    \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    16/38

    {0.25ex \@plus1ex \@minus .2ex}%

    {-1em}%

    {\normalfont\normalsize\bfseries}}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Rdfinition de l'environnement de la page de titre%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewenvironment{titlepage}{%

    \if@twocolumn

    \@restonecoltrue\onecolumn%

    \else

    \@restonecolfalse\newpage

    \fi

    \thispagestyle{empty}%

    \setcounter{page}\@ne%

    }%

    {\if@restonecol\twocolumn \else \newpage \fi%

    \if@twoside\else%

    \setcounter{page}\@ne%

    \fi

    \thispagestyle{empty}%

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dfinition de l'environnement de la prsentation du jury

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newenvironment{jurypage}{%

    \if@twocolumn

    \@restonecoltrue\onecolumn%

    \else

    \@restonecolfalse\newpage

    \fi

    \thispagestyle{empty}%\setcounter{page}\@ne%

    }%

    {\if@restonecol\twocolumn \else \newpage \fi%

    \if@twoside\else%

    \setcounter{page}\@ne%

    \fi

    \thispagestyle{empty}%

    \cleardoublepage

    }

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    17/38

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Sommaire

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newcommand{\motscles}[1]{

    \newcommand{\varmotscles}{#1}}

    \newenvironment{sommaire}{%

    \if@twocolumn

    \@restonecoltrue\onecolumn%

    \else

    \@restonecolfalse\newpage

    \fi

    \thispagestyle{empty}% Pas de numrotation sur cette page

    %\setcounter{page}{1} % Premire page numrote du document%\addcontentsline{toc}{chapter}{RSUM} % Ajout dans la table des matires

    \renewcommand{\baselinestretch}{1}\small\normalsize % Interligne simple

    \begin{center}

    \normalfont%

    \MakeUppercase{\bfseries\@title}%

    \vskip 6\p@%

    \@author%

    \vskip 6\p@%

    \MakeUppercase{\textbf{RSUM}}%

    \end{center}

    }{%

    \newline\newline\newline\textbf{Mots-cls~:} \varmotscles

    \if@restonecol\twocolumn \else \newpage \fi%

    \cleardoublepage

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Abstract%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newcommand{\keywords}[1]{

    \newcommand{\varkeywords}{#1}

    }

    \newenvironment{abstract}[1]{%

    \if@twocolumn

    \@restonecoltrue\onecolumn%

    \else

    \@restonecolfalse\newpage

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    18/38

    \fi

    \thispagestyle{empty}% Pas de numrotation sur cette page

    %\addcontentsline{toc}{chapter}{ABSTRACT}

    \renewcommand{\baselinestretch}{1}\small\normalsize % Interligne simple

    \begin{center}\normalfont%

    \MakeUppercase{\bfseries#1}%

    \vskip 6\p@%

    \@author%

    \vskip 6\p@%

    \MakeUppercase{\textbf{ABSTRACT}}%

    \end{center}

    }{%

    \newline\newline\newline\textbf{Keywords:} \varkeywords\if@restonecol\twocolumn \else \newpage \fi%

    \cleardoublepage

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Avant-propos

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newenvironment{avantpropos}{%

    \chapter*{Avant-propos}

    % \addcontentsline{toc}{chapter}{AVANT-PROPOS} % Ajout dans la table des matires

    % \chapter*{Avant-propos et remerciements}

    % \addcontentsline{toc}{chapter}{AVANT-PROPOS ET REMERCIEMENTS} % Ajoutdans la table des matires

    % Interligne double

    % \renewcommand{\baselinestretch}{2}\small\normalsize%

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Introduction%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newenvironment{introduction}{%

    \chapter*{Introduction}

    \addcontentsline{toc}{chapter}{INTRODUCTION} % Ajout dans la table des matires

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Conclusion

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newenvironment{conclusion}{%\chapter*{Conclusion}

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    19/38

    \addcontentsline{toc}{chapter}{CONCLUSION} % Ajout dans la table des matires

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Remerciement

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\newenvironment{remerciements}{%

    \chapter*{Remerciements}

    % \addcontentsline{toc}{chapter}{REMERCIEMENTS} % Ajout dans la table des matires

    % Interligne double

    % \renewcommand{\baselinestretch}{2}\small\normalsize%

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Commande pour crire ``Page''

    %% dans les diffrentes tables

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newcommand{\tdmpage}[0]{\hspace{\fill}\mbox{Page}\vskip 1.0em\par}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Table des matires

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand\tableofcontents{%

    \chapter*{\contentsname}

    %\addcontentsline{toc}{chapter}{\MakeUppercase{\contentsname}} % Ajout dans la tabledes matires

    \tdmpage

    {

    % Espace avant les diffrentes lignes de la table des matires

    \setlength{\parskip}{0pt}%

    % Interligne simple pour la table des matires

    \renewcommand{\baselinestretch}{1}\small\normalsize%

    \@starttoc{toc}

    }}

    %%% Modification de l'espace entre les points de la table des matires

    \renewcommand{\@dotsep}{1} % (\@dotsep est une valeur)

    % Les parties n'tant pas utilises on s'en sert pour pouvoir ajouter annexe correctement dansla table des matieres

    \renewcommand*\l@part[2]{%

    \settowidth{\largChap}{\MakeUppercase{\@chapapp\ \thechapter\hskip 1em}}

    \ifnum \c@tocdepth >\m@ne%

    \addpenalty{-\@highpenalty}%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    20/38

    \vskip 1.0em \@plus\p@%

    \setlength\@tempdima{\largChap}%

    \begingroup

    \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth%

    \parfillskip -\tocRightMargin%\@pnumwidth%\leavevmode %

    \advance\leftskip \tocLeftMarginSecondLineChapter%\@tempdima%

    \hskip -\leftskip%

    #1\nobreak\leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{}\mkern \@dotsep mu$}\hfil\nobreak\hb@xt@\@pnumwidth{\hss }\par%

    \penalty\@highpenalty%

    \endgroup

    \fi

    }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Modif pour ne pas avoir le chapitre en gras

    %% dans la table des matires

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand*\l@chapter[2]{%

    \settowidth{\largChap}{\MakeUppercase{\@chapapp\ \thechapter\hskip 1em}}

    \settowidth{\largNum}{\hss #2}

    \ifnum \c@tocdepth >\m@ne%

    \addpenalty{-\@highpenalty}%\vskip 1.0em \@plus\p@%

    \setlength\@tempdima{\largChap}%

    \begingroup

    \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth%

    \parfillskip -\tocRightMargin%\@pnumwidth%

    \leavevmode %

    \advance\leftskip \tocLeftMarginSecondLine%\@tempdima%

    \hskip -\leftskip%

    #1\nobreak\leaders\hbox{$\m@th \hbox{.}\mkern \@dotsep mu$}\hfil \nobreak\hb@xt@%

    \largNum{\hss #2}\par%

    \penalty\@highpenalty%

    \endgroup

    \fi}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Table des matires

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand\tableofcontents{%\chapter*{\contentsname}

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    21/38

    \tdmpage

    {

    % Espace avant les diffrentes lignes de la table des matires

    \setlength{\parskip}{0pt}%

    % Interligne simple pour la table des matires\renewcommand{\baselinestretch}{1}\small\normalsize%

    \@starttoc{toc}

    }

    }

    \renewcommand*\l@chapter[2]{%

    \ifnum \c@tocdepth >\m@ne%

    \addpenalty{-\@highpenalty}%

    \vskip 1em \@plus\p@%

    % \setlength\@tempdima{1.5em}%% \setlength\@tempdima{6.1em}%

    \setlength\@tempdima{6.6em}%

    \begingroup

    \parindent \z@ \rightskip \@pnumwidth%

    \parfillskip -\@pnumwidth%

    \leavevmode %

    \advance\leftskip\@tempdima%

    \hskip -\leftskip%

    #1\nobreak\leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}

    \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par%

    \penalty\@highpenalty%

    \endgroup

    \fi

    % \vskip -1em

    }

    \renewcommand*\l@section{\@dottedtocline{1}{0em}{3.5em}}

    \renewcommand*\l@subsection{\@dottedtocline{2}{3.5em}{3.5em}}

    \renewcommand*\l@subsubsection{\@dottedtocline{3}{7em}{3.5em}}

    \renewcommand*\l@paragraph{\@dottedtocline{4}{2.5em}{3.5em}}

    \renewcommand*\l@subparagraph{\@dottedtocline{5}{2.5em}{3.5em}}

    %%

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %%% Pour aligner toutes les entres

    %%% de la table des matires

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% IMPLEMENTE PAR SEB, MIS ENTRE COMMENTAIRES PAR LUIS

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    22/38

    (CAR LE NOUVEAU FORMAT EXIGE

    %%%%%%% QUE LES "SECTION" SOIENT INDENTES PAR RAPPORT AUX"CHAPTER", LES "SUBSECTION" PAR RAPPORT AU "SECTION", ETC.

    %%%%%%% ***************** DEBUT COMMENTAIRES

    *****************************%% STEPHANE - les section sont align sur les chapitres

    %\renewcommand*\l@section[2]{%

    % \settowidth{\largNum}{\hss #2}

    % \ifnum \c@tocdepth >\z@

    % \addpenalty{-\@highpenalty}%

    %% \hskip 2.5 em

    % \setlength\@tempdima{3.5em}%

    % \begingroup

    % \pretolerance=10000% \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth

    % \parfillskip -\tocRightMargin%\@pnumwidth

    % \leavevmode %

    % \advance\leftskip \tocLeftMarginSecondLine%\@tempdima

    % \hskip -\leftskip

    % #1\nobreak\leaders\hbox{$\m@th \hbox{.}\mkern \@dotsep mu$}\hfil\nobreak\hb@xt@%\@pnumwidth%

    % \largNum{\hss #2}\par%

    % \endgroup% \fi}

    %\renewcommand*\l@subsection[2]{%

    % \settowidth{\largNum}{\hss #2}

    % \ifnum \c@tocdepth >\z@

    % \addpenalty{-\@highpenalty}%

    % \hskip 2.5 em

    % \setlength\@tempdima{3.5em}%

    % \begingroup

    % \pretolerance=10000% \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth

    % \parfillskip -\tocRightMargin%\@pnumwidth

    % \leavevmode %

    % \advance\leftskip \tocLeftMarginSecondLine%\@tempdima

    % \hskip -\leftskip

    % #1\nobreak\leaders\hbox{$\m@th \hbox{.}\mkern \@dotsep mu$}\hfil\nobreak\hb@xt@%\@pnumwidth%

    % \largNum{\hss #2}\par%

    % \endgroup

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    23/38

    % \fi}

    %\renewcommand*\l@subsubsection[2]{%

    % \settowidth{\largNum}{\hss #2}

    % \ifnum \c@tocdepth >\z@

    % \addpenalty{-\@highpenalty}%% \hskip 2.5 em

    % \setlength\@tempdima{3.5em}%

    % \begingroup

    % \pretolerance=10000

    % \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth

    % \parfillskip -\tocRightMargin%\@pnumwidth

    % \leavevmode %

    % \advance\leftskip \tocLeftMarginSecondLine%\@tempdima

    % \hskip -\leftskip% #1\nobreak\leaders\hbox{$\m@th \hbox{.}\mkern \@dotsep mu$}\hfil\nobreak\hb@xt@%\@pnumwidth%

    % \largNum{\hss #2}\par%

    % \endgroup

    % \fi}

    %%%%%%% ***************** FIN COMMENTAIRES*****************************

    %%%%%%% ***************** LUIS *****************************

    %\renewcommand*\l@paragraph[2]{%% \settowidth{\largNum}{\hss #2}

    % \ifnum \c@tocdepth >\z@

    % \addpenalty{-\@highpenalty}%

    % \hskip 2.5 em

    % \setlength\@tempdima{3.5em}%

    % \begingroup

    % \pretolerance=10000

    % \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth

    % \parfillskip -\tocRightMargin%\@pnumwidth

    % \leavevmode %

    % \advance\leftskip \tocLeftMarginSecondLine%\@tempdima

    % \hskip -\leftskip

    % #1\nobreak\leaders\hbox{$\m@th \hbox{.}\mkern \@dotsep mu$}\hfil\nobreak\hb@xt@%\@pnumwidth%

    % \largNum{\hss #2}\par%

    % \endgroup

    % \fi}

    %

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    24/38

    %\renewcommand*\l@subparagraph[2]{%

    % \settowidth{\largNum}{\hss #2}

    % \ifnum \c@tocdepth >\z@

    % \addpenalty{-\@highpenalty}%

    % \hskip 2.5 em% \setlength\@tempdima{3.5em}%

    % \begingroup

    % \pretolerance=10000

    % \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth

    % \parfillskip -\tocRightMargin%\@pnumwidth

    % \leavevmode %

    % \advance\leftskip \tocLeftMarginSecondLine%\@tempdima

    % \hskip -\leftskip

    % #1\nobreak\leaders\hbox{$\m@th \hbox{.}\mkern \@dotsep mu$}\hfil\nobreak\hb@xt@%\@pnumwidth%

    % \largNum{\hss #2}\par%

    % \endgroup

    % \fi}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Profondeur des entres dans la table

    %% des matires: 3=\subsubsection

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \setcounter{tocdepth}{3}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Pour rendre indpendante la numrotation des figures et tables

    %% de la numrotation du chapitre

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %\def\@removefromreset#1#2{{%

    % \expandafter\let\csname c@#1\endcsname\@removefromreset

    % \def\@elt##1{%

    % \expandafter\ifx\csname c@##1\endcsname\@removefromreset% \else

    % \noexpand\@elt{##1}%

    % \fi}%

    % \expandafter\xdef\csname cl@#2\endcsname{%

    % \csname cl@#2\endcsname}}}

    %\makeatletter

    %\@removefromreset{figure}{chapter}

    %\@removefromreset{table}{chapter}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    25/38

    %% Liste des figures

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand\listoffigures{%

    \chapter*{\listfigurename}

    %\addcontentsline{toc}{chapter}{\MakeUppercase{\listfigurename}} % Ajout dans la tabledes matires

    \tdmpage

    {

    \setlength{\parskip}{0pt}%

    \renewcommand{\baselinestretch}{1}\small\normalsize%

    \@starttoc{lof}%

    }

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Numrotation des figures

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %\renewcommand \thefigure

    % {\@arabic\c@figure}

    \renewcommand*\l@figure[2]{%

    \settowidth{\largNum}{\hss #2}

    \ifnum \c@tocdepth >\m@ne%

    \addpenalty{-\@highpenalty}%

    \vskip 1.0em \@plus\p@%\setlength\@tempdima{3.4em}%

    \noindent%

    \begingroup

    \pretolerance=10000

    \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth%

    \parfillskip -\tocRightMargin%\@pnumwidth%

    \leavevmode \normalsize%

    \advance\leftskip \tocLeftMarginSecondLineFigure%

    \hskip -\leftskip%{\figurename\mbox{\hspace{4pt}}#1}\nobreak%

    \leaders\hbox{$\m@th%

    \mkern \@dotsep mu\hbox{.}\mkern \@dotsep%

    mu$} \hfil\nobreak\hb@xt@%

    \largNum{\hss #2}\par%

    \penalty\@highpenalty%

    \endgroup

    \fi}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    26/38

    %% Liste des tableaux

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand\listoftables{%

    \chapter*{\listtablename}

    %\addcontentsline{toc}{chapter}{\MakeUppercase{\listtablename}} % Ajout dans la tabledes matires

    \tdmpage

    {

    \setlength{\parskip}{0pt}%

    \renewcommand{\baselinestretch}{1}\small\normalsize%

    \@starttoc{lot}%

    }

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Numrotation des tableaux

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %\renewcommand{\thetable}

    % {\@arabic\c@table}

    %\renewcommand{\thetable}{\Roman{table}}

    \renewcommand*\l@table[2]{%

    \settowidth{\largNum}{\hss #2}

    \ifnum \c@tocdepth >\m@ne%

    \addpenalty{-\@highpenalty}%\vskip 1.0em \@plus\p@%

    \setlength\@tempdima{3.4em}%ici pour changer l'espace entre le numero et le titre dutableau !! (dfaut 2.2em)

    \noindent%

    \begingroup

    \pretolerance=10000

    \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth %

    \parfillskip -\tocRightMargin%\@pnumwidth%

    \leavevmode \normalsize%\advance\leftskip \tocLeftMarginSecondLineTable %5.2em%8.4em%

    \hskip -\leftskip%

    {\tablename\mbox{\hspace{4pt}}#1}\nobreak%

    \leaders\hbox{$\m@th%

    \mkern \@dotsep mu\hbox{.}\mkern \@dotsep%

    mu$} \hfil\nobreak\hb@xt@%\@pnumwidth

    \largNum{\hss #2}\par%

    \penalty\@highpenalty%

    \endgroup

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    27/38

    \fi}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Liste des extraits de code

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand\lstlistoflistings{%\chapter*{\lstlistlistingname}%

    \tdmpage

    {

    \setlength{\parskip}{0pt}%

    \renewcommand{\baselinestretch}{1}\small\normalsize%

    \@starttoc{lol}%

    }

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Numrotation des extraits de code

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand*\l@lstlisting[2]{%

    \settowidth{\largNum}{\hss #2}

    \ifnum \c@tocdepth >\m@ne%

    \addpenalty{-\@highpenalty}%

    \vskip 1.0em \@plus\p@%

    \setlength\@tempdima{3.4em}%\noindent%

    \begingroup

    \pretolerance=10000

    \parindent \z@ \rightskip \tocRightMargin%\@pnumwidth%

    \parfillskip -\tocRightMargin%\@pnumwidth%

    \leavevmode \normalsize%

    \advance\leftskip \tocLeftMarginSecondLineFigure%

    \hskip -\leftskip%

    {\lstlistingname\mbox{\hspace{4pt}}#1}\nobreak%\leaders\hbox{$\m@th%

    \mkern \@dotsep mu\hbox{.}\mkern \@dotsep%

    mu$} \hfil\nobreak\hb@xt@%

    \largNum{\hss #2}\par%

    \penalty\@highpenalty%

    \endgroup

    \fi}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Liste des symboles bas sur l 'environnement ``description''

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    28/38

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newlength{\descril}

    \setlength{\descril}{2cm}

    \newenvironment{listofsymbols}[1][\descril]{%

    \chapter*{Liste des abrviations, sigles et acronymes}%\addcontentsline{toc}{chapter}{\MakeUppercase{Liste des abrviations et sigles}} %Ajout dans la table des matires

    \begin{list}{\mbox{}}{%

    \let\makelabel\losymblabel%

    \leftmargin #1%

    \labelwidth \leftmargin%

    \labelsep 1mm}}%

    {\end{list}}

    \newcommand*\losymblabel[1]{\hspace\labelsep\normalfont\mbox{ #1}}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Mise en forme des lgendes pour les figures et tableaux

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newlength{\largetiqfig}

    \setlength{\largetiqfig}{2.2cm}

    \newlength{\larglegendfig}

    \setlength{\larglegendfig}{\textwidth-\largetiqfig}

    %%%%%

    % Petit bout qui fucke les algorithmes...

    %%%%

    %\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname ext@#1\endcsname}{#1}{%

    % \protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%

    % \begingroup\@parboxrestore\normalsize%

    % \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}{#1}\par%

    % \endgroup}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %Remplac par ce petit bout (merci Fred)

    %%%%%%%%%%%%%%%%%%%%%%%%%%%

    \long\def\@caption#1[#2]#3{\par\addcontentsline{\csname ext@#1\endcsname}{#1}

    {%

    \protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%

    \begingroup\@parboxrestore\normalsize%

    \pretolerance=10000

    \ifx\figurestring#1

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    29/38

    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}{#1}\par%

    \else

    \ifx\tablestring#1

    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}{#1}\par%

    \footnotesize \centering\else

    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par%

    \footnotesize \centering

    \fi

    \fi

    \pretolerance=100

    \endgroup}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %

    \def\tablestring{table}%

    \def\figurestring{figure}%

    \def\listingstring{listing}%

    %\def\algorithmstring{algorithme}%

    \long\def\@makecaption#1#2#3{%

    \ifx\figurestring#3%

    \vskip\abovecaptionskip%

    \linespread{1}\sbox\@tempboxa{\normalsize\parbox[t]{\largetiqfig}{\bfseries#1}\bfseries#2}%

    \ifdim \wd\@tempboxa

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    30/38

    % {\normalsize #2}\par%

    \end{center}

    \vskip\abovecaptionskip%

    %% Pascal Giard - Ajout support pour les captions autres que table et figure

    \else\vskip\abovecaptionskip%

    \begin{center}

    \renewcommand{\baselinestretch}{1}\small\normalsize%

    {\normalsize \parbox[t]{\largetiqfig}{\bfseries#1} \bfseries #2}\par%

    \end{center}

    \vskip\belowcaptionskip%

    % \vskip\abovecaptionskip

    % \linespread{1}

    % \sbox\@tempboxa{\normalsize\parbox[t]{\largetiqfig}{\bfseries#1}\bfseries#2}%% \ifdim \wd\@tempboxa

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    31/38

    \newcommand{\changenumero}[1]{\renewcommand{\numero}{##1}}

    \renewcommand \thesection{\@arabic\c@section} % Enleve le numero du chapitre courant

    \def\sectionannexe{\@ifstar\unnumberedsection\numberedsection}

    \def\numberedsection{\@ifnextchar[%]

    \numberedsectionwithtwoarguments\numberedsectionwithoneargument}

    \def\unnumberedsection{\@ifnextchar[%]

    \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}

    \def\numberedsectionwithoneargument##1{\numberedsectionwithtwoarguments[##1]{##1}}

    \def\unnumberedsectionwithoneargument##1{\unnumberedsectionwithtwoarguments[##1]{##1}}

    \def\numberedsectionwithtwoarguments[##1]##2{%

    \ifhmode\par\fi

    \removelastskip

    \vskip .7ex \goodbreak

    \noindent

    \begingroup

    \leavevmode\Large\bfseries\raggedright

    \normalsize\bfseries

    \numero\quad

    ##2

    \par

    \endgroup\vskip .7ex \nobreak

    }

    \def\unnumberedsectionwithtwoarguments[##1]##2{%

    \ifhmode\par\fi

    \removelastskip

    \vskip .7ex\goodbreak

    \noindent

    \begingroup

    \leavevmode\normalfont\Large\bfseries\raggedright\leavevmode\normalfont\Large\bfseries\raggedright

    \normalsize\bfseries

    ##2

    \par

    \endgroup

    \vskip .7ex\nobreak

    }

    \def\section{\refstepcounter{section}\changenumero{\thesection} \sectionannexe}

    \def\subsection{\refstepcounter{subsection}\changenumero{\thesubsection} \sectionannexe}\def\subsubsection{\refstepcounter{subsubsection}\changenumero{\thesubsubsection}

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    32/38

    \sectionannexe}

    \def\paragraph{\refstepcounter{paragraph}\changenumero{\theparagraph} \sectionannexe}

    \def\subparagraph{\refstepcounter{subparagraph}\changenumero{\thesubparagraph}\sectionannexe}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Pour une bonne mise en page des annexes

    %% ANNEXE doit apparaitre dans la table des matieres lors de sa premiere apparition

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \newcommand{\nameannexe}{\appendixname}

    \newcommand{\multiannexe}{

    \renewcommand{\nameannexe}{ANNEXES}

    \widowpenalty=10000

    \clubpenalty=10000

    \raggedbottom

    }

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Changement dans la table des matires

    %% des entres associes aux annexes

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %%

    %% COMME DFINI PAR SEB

    %% Utilisez ceci si vous voulez que%% la Table des Matieres soit comme ca:

    %% RECOMMANDATION(S)

    %% ANNEXES

    %% 1: Titre Annexe 1

    %% 2: Titre Annexe 1

    %\def\@chapter[##1]##2{

    % \ifnum \c@secnumdepth >\m@ne%

    % \if@mainmatter%

    % \refstepcounter{chapter}%% \ifthenelse{\equal{\value{chapter}}{1}}{

    % \addcontentsline{toc}{part}{\MakeUppercase{\nameannexe}}

    % \addtocontents{toc}{\protect\addvspace{10\p@}}

    % }{}

    % \typeout{\@chapapp\space\thechapter}

    % \addcontentsline{toc}{section}{\thechapter : ##1}

    % \else%

    % \addcontentsline{toc}{section}{##1}%

    % \fi%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    33/38

    % \else%

    % \addcontentsline{toc}{section}{##1}%

    % \fi%

    % \chaptermark{##1}%

    % \@makechapterhead{##2}%% \@afterheading%

    %}%

    %% MODIFI PAR LUIS

    %% Utilisez ceci si vous voulez que

    %% la Table des Matieres soit comme ca:

    %% RECOMMANDATION(S)

    %% ANNEXE 1 Titre Annexe 1

    %% ANNEXE 2 Titre Annexe 2

    % \def\@chapter[##1]##2{% \ifnum \c@secnumdepth >\m@ne%

    % \if@mainmatter%

    % \refstepcounter{chapter}%

    % \ifthenelse{\equal{\value{chapter}}{1}}{

    % %\addcontentsline{toc}{part}{\MakeUppercase{\nameannexe}}

    % \addtocontents{toc}{\protect\addvspace{10\p@}}

    % }{}

    % \typeout{\@chapapp\space\thechapter}

    % %\addcontentsline{toc}{section}{\MakeUppercase{\appendixname}~\thechapter : ##1}% \addcontentsline{toc}{chapter}{\MakeUppercase{\appendixname}~\thechapter ~ ##1}

    % \else%

    % \addcontentsline{toc}{section}{##1}%

    % \fi%

    % \else%

    % \addcontentsline{toc}{section}{##1}%

    % \fi%

    % \chaptermark{##1}%

    % \@makechapterhead{##2}%

    % \@afterheading%

    % }%

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    % %% Modification des annexes numrotes

    % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    % \renewcommand{\@makechapterhead}[1]{{

    % \normalfont\bfseries%

    % \begin{center}% \MakeUppercase{\appendixname~\thechapter} % ANNEXE 1

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    34/38

    % \vskip 3\p@%

    % ##1 % Title of annexe

    % \end{center}

    % \thispagestyle{empty}%

    % \newpage% \normalfont\bfseries%

    % \begin{center}

    % \MakeUppercase{##1} % TITLE OF ANNEXE

    % \end{center}

    % \vskip 5\p@%

    % \thispagestyle{empty}

    % }}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Modification des annexes numrotes % NOUVELLE DEMANDE : PAS REPETERLE TITRE SUR LA PAGE SUIVANTE

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand{\@makechapterhead}[1]{{

    \normalfont\bfseries%

    \begin{center}

    \MakeUppercase{\appendixname~\thechapter} % ANNEXE 1

    \vskip 3\p@%

    \MakeUppercase{##1} % Title of annexe

    \end{center}\thispagestyle{empty}%

    % \newpage

    % \normalfont\bfseries% % NOUVELLE DEMANDE : PAS REPETER LE TITRE SURLA PAGE SUIVANTE

    % \begin{center}

    % \MakeUppercase{##1} % TITLE OF ANNEXE

    % \end{center}

    % \vskip 5\p@%

    % \thispagestyle{empty}}}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    %% Modification des annexes sans numro (ne devrait pas tre utilis)

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \renewcommand{\@makeschapterhead}[1]{{

    \thispagestyle{empty}

    \normalfont\bfseries%

    \begin{center}

    \MakeUppercase{##1} % TITLE OF ANNEXE

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    35/38

    \end{center}

    \vskip 5\p@%

    \thispagestyle{empty}

    }}

    }%

    % Intituls francais des figures, tableaux, etc.

    %

    \addto\captionsfrench{\def\figurename{{Figure}}}

    \addto\captionsfrench{\def\tablename{{Tableau}}}

    \addto\captionsfrench{\def\lstlistingname{{Extrait}}}

    \addto\captionsfrench{\def\lstlistlistingname{{Liste des extraits de code}}}

    \addto\captionsfrench{\def\algorithmname{{Algorithme}}}\addto\captionsfrench{\def\listfigurename{{Liste des figures}}}

    \addto\captionsfrench{\def\listalgorithmename{{Liste des algorithmes}}}

    \addto\captionsfrench{\def\CaptionSeparator{{\space\space}}}

    \pagestyle{myheadings}

    %

    % Pour avoir des citations interligne simple

    %

    %\renewenvironment{quote}{

    % \linespread{1} \small\normalsize\list{}{\rightmargin\leftmargin}%% \item\relax

    %}{\endlist \linespread{2} \small

    %\normalsize\noindent\hspace{-0.333em}\vspace{\linebreak}}

    \renewenvironment{quote}

    {\begin{spacing}{1}\list{}{\rightmargin\leftmargin}\item\relax}%

    {\end{spacing}\endlist}

    %

    % Bonne prsentation des figures et tables%

    \renewenvironment{figure}[1][]{%

    \@float{figure}%

    \centering

    }{%

    \end@float

    }

    \renewenvironment{table}[1][]{%

    \@float{table}%

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    36/38

    % \footnotesize

    \centering

    }{%

    \end@float

    }%

    % Positionnement des flottants

    % on privilgie htbp (here, top, bottom, next page)

    %

    \def\fps@figure{htbp}

    \def\fps@table{htbp}

    %

    % numration avec des lettres, align gauche

    % Modifi'e par LUIS (defs. de \par*)%

    \renewcommand\enumerate{%

    \ifnum \@enumdepth >\thr@@\@toodeep\else

    \advance\@enumdepth\@ne

    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%

    \expandafter

    \list

    \csname label\@enumctr\endcsname

    {\usecounter

    {\@enumctr}%

    \itemsep 0pt%

    \parsep \parskip%

    %\setlength{\parskip}{0ex}%

    \setlength{\partopsep}{0ex}%

    \def\makelabel##1{\hspace{-6pt}\hspace\labelsep ##1}%

    }%

    \fi}\renewcommand{\labelenumi}{\alph{enumi}.}

    %

    % Bibliographie

    % Pas utilis -Stphane Mercier

    \renewcommand{\bibname}{BIBLIOGRAPHIE}

    % \def\@biblabel#1{} % supprime les labels dans la bibliographie

    % \renewcommand{\cite}{\citep} % mode de citation avec parenthses, ncessite le packagenatbib

    %%\bibpunct{(}{)}{~;}{a}{,}{,} % type de parenthses et de sparateurs, ncessite lepackage natbib

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    37/38

    %% MODIFIE POUR NE PAS AVOIR D'ESPACE ENTRE LES REFERENCES ACAUSE DU POINT-VIRGULE !!

    % \bibpunct{(}{)}{;}{a}{,}{,} % type de parenthses et de sparateurs, ncessite le packagenatbib

    % Environnement de bibliographie pour avoir les bons interlignes, le bon alignement% et viter les csures et coupures de bibliographies entre deux pages

    % \renewenvironment{thebibliography}[1]

    % {\chapter*{\bibname}%

    % \addcontentsline{toc}{chapter}{\MakeUppercase{\bibname}} % Ajouter dans la table desmatires

    % \linespread{1}\small\normalsize % interligne de 1

    % \pretolerance=10000 % limine les csures

    % \interlinepenalty 10000 % limine les coupures d'une mme rfrence entre deux pages

    % \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%% \list{}%\@biblabel{\@arabic\c@enumiv}}%

    % {\settowidth\labelwidth{\@biblabel{#1}}%

    % \leftmargin\labelwidth

    % \advance\leftmargin\labelsep

    % \setlength{\itemsep}{12pt}

    % \setlength{\parsep}{0pt}

    % \@openbib@code

    % \usecounter{enumiv}%

    % \let\p@enumiv\@empty% \renewcommand\theenumiv{\@arabic\c@enumiv}}%

    % \sloppy

    % \clubpenalty4000

    % \@clubpenalty \clubpenalty

    % \widowpenalty4000%

    % \sfcode`\.\@m}

    % {\pretolerance=100

    % \def\@noitemerr

    % {\@latex@warning{Empty thebibliography' environment}}%% \endlist}

    % clc

    \renewenvironment{thebibliography}[1]

    {\chapter*{\bibname}

    \@mkboth{\bibname}{\bibname}

    \renewcommand{\baselinestretch}{1}\small\normalsize % Interligne simple

    \list

    {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth

    \setlength{\itemsep}{\parskip}

  • 8/11/2019 Modle LaTeX pour le mmoire de thse.docx

    38/38

    \setlength{\itemindent}{-1cm}

    \setlength{\leftmargin}{2cm}

    \advance\leftmargin\labelsep

    \usecounter{enumi}}

    \def\newblock{\hskip .11em plus .33em minus .07em}\sloppy\clubpenalty4000\widowpenalty4000

    \sfcode`\.=1000\relax}

    %\let\endthebibliography=\endlist

    %% Dclarations des thormes

    \theoremstyle{plain}

    \newtheorem{definition}{Dfinition}[chapter]

    \newtheorem{exemple}{Exemple}[section]

    \newtheorem{lemme}{Lemme}

    \newtheorem{probleme}{Problme}\newtheorem{corollaire}{Corollaire}

    \newtheorem{question}{Question}

    \newtheorem{conjecture}{Conjecture}

    \newtheorem{axiome}{Axiome}[section]

    \newtheorem{theoreme}{Thorme}[section]

    \newtheorem{remarque}{Remarque}[section]

    \newtheorem{proposition}[theoreme]{Proposition}