%!TEX encoding = IsoLatin % Copyright (C) Julien Chiquet % % This program is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this program. If not, see \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{stylejchiquet} \newif\if@sommairechap \@sommairechapfalse \DeclareOption{sommairechap}{\@sommairechaptrue} \ProcessOptions % ========================================================================== % PACKAGES ADDITIONNELS % Police MathPazo \RequirePackage[osf,sc]{mathpazo} \RequirePackage[scaled=.95]{helvet} \RequirePackage{courier} % EntÍtes amÈliorÈs \RequirePackage{fancyhdr} % Enumerations personnalisÈe \RequirePackage{enumerate} % Calcul des tailles d'environnement \RequirePackage{calc} % Symboles de amsmath et additionnels \RequirePackage{amsmath,amsfonts,amssymb,amsthm} \RequirePackage{dsfont,mathrsfs} % Lettrine \RequirePackage{lettrine} % Ajout d'entrÈes dans la table des matiËres \RequirePackage{tocbibind} % Style de la lÈgende \RequirePackage{caption} \DeclareCaptionLabelSeparator{mysep}{~--~} \captionsetup{singlelinecheck=no,labelsep=mysep,font=small,textfont=it} \setlength{\abovecaptionskip}{5pt} \setlength{\belowcaptionskip}{-5pt} % Tableaux sur plusieurs pages - page de notations \RequirePackage{supertabular} % Mise en forme des algorithmes \RequirePackage[french,ruled,vlined]{algorithm2e} % Gestion amÈliorÈe de la bibliographie \RequirePackage{natbib} \bibliographystyle{plainnatfrench} \bibpunct{(}{)}{,}{a}{}{;} % Gestion des rÈfÈrence selon le format de sortie \RequirePackage{ifpdf} \ifpdf % configuration de graphicx et hyperref pour sortie PDF \RequirePackage[pdftex]{graphicx} \RequirePackage[pdftex,bookmarksopen=false,pdfauthor=Julien Chiquet,colorlinks=false,pagebackref,plainpages=false]{hyperref} \DeclareGraphicsExtensions{.pdf,.png,.jpg} \else % configuration de graphicx et hyperref pour sortie PS \RequirePackage[dvips]{graphicx} \DeclareGraphicsExtensions{.eps,.ps} \RequirePackage[dvips,bookmarksopen=false,pdfauthor=Julien Chiquet,colorlinks=false,pagebackref,plainpages=false]{hyperref} \fi % Gestion Èventuel des sommaires en dÈbut de chapitre \if@sommairechap \RequirePackage[french]{minitoc} \dominitoc \setlength{\mtcindent}{0em} \renewcommand{\mtifont}{\large\rm\scshape} \renewcommand{\mtcSfont}{\small\rm\scshape} \fi \RequirePackage{tocloft} \renewcommand{\cftsubsecfont}{\small} \renewcommand{\cftsecfont}{\normalsize\scshape} \renewcommand{\cftchapfont}{\large\scshape} \renewcommand{\cfttoctitlefont}{\Huge\scshape} \renewcommand{\cftloftitlefont}{\Huge\scshape} % CONFIGURATION DE LA C?SURE (-> Axel Reichert) \tolerance = 1414 \hbadness = 1414 \emergencystretch 1.5em \hfuzz 0.3pt \widowpenalty=10000 \vfuzz \hfuzz \raggedbottom % ============================================= % PAGE DE GARDE % PAGE DE GARDE \newif\ifdefinitif\definitiftrue \def\titleFR#1{\gdef\@titleFR{#1}} \def\titleEN#1{\gdef\@titleEN{#1}} \def\abstractFR#1{\gdef\@abstractFR{#1}} \def\abstractEN#1{\gdef\@abstractEN{#1}} \def\keywordsFR#1{\gdef\@keywordsFR{#1}} \def\keywordsEN#1{\gdef\@keywordsEN{#1}} \def\@author{} \def\address#1{\gdef\@address{#1}} \def\universite#1{\gdef\@universite{#1}} \def\laboratoire#1{\gdef\@laboratoire{#1}} \def\specialite#1{\gdef\@specialite{#1}} \def\datesoumission#1{\gdef\@datesoumission{#1}} \def\datesoutenance#1{\gdef\@datesoutenance{#1}} \def\jury#1{\gdef\@jury{#1}} \def\dedicate#1{\gdef\dedication@text{#1}} \renewcommand{\titlepage}{% \ifdefinitif \normalsize{N? d'ordre : $40138$} \begin{center} \Large\textsc{\@universite} \\ \LARGE\textsc{ThËse} \\ \bigskip \large{pour obtenir le grade de :}\\ \bigskip \textsc{Docteur de l'UniversitÈ Lille$1$} \\ \bigskip dans la spÈcialitÈ\\ \bigskip \og \textsc{\@specialite} \fg \\ \bigskip par \\ \bigskip \@author \vfill \LARGE{\@titleFR} \vfill \normalsize ThËse soutenue le \@datesoutenance{} devant le jury composÈ de :\\ \vspace{1cm} \@jury \vfill \textsc{\@laboratoire} \\ \bigskip \end{center} \cleardoublepage \else % -------------------------------------------------- % NON DEFINITIF : PAGE DE SOUMISSION AUX RAPPORTEURS \thispagestyle{empty} \vskip3cm \vfill \begin{center} \large Rapport soumis aux rapporteurs, dans le but de sanctionner le dossier pour l'obtention du grade de \\ Docteur en \@specialite\\ de \\ l'\@universite \end{center} \vskip3cm \begin{center} \huge {\sc \@titleFR }\\ \vskip2cm \large \@author, le \@submitdate \\ \end{center} \vskip3cm \vskip3cm \vfill \textsc{Mots-clªs :} \@keywordsFR \fi \cleardoublepage } % =========================================================== % PAGE DE DEDICACE \newcommand{\dedicacepage}{% \begin{flushright} \large\em\null\vskip1in\dedication@text\vfill \end{flushright} \cleardoublepage } \newcommand{\abstractpage}{% \pagestyle{empty} ~\newpage \par % \vfill \footnotesize \paragraph*{Titre}\@titleFR \paragraph*{Résumé }\@abstractFR \paragraph*{Mots-clés}\@keywordsFR \paragraph*{Title}\@titleEN \paragraph*{Abstract}\@abstractEN \paragraph*{Keywords}\@keywordsEN } % ========================================================================== % COLOPHON \newcommand{\colophon}[1]{ \cleardoublepage % MODIF \pagestyle{empty} % MODIF ~\vfill \begin{center} \small #1 \end{center} % \cleardoublepage } % ========================================================================== % MISE EN PAGE \RequirePackage{geometry} \geometry{textheight=142ex,textwidth=40em,top=85pt,headheight=30pt,headsep=30pt,inner=95pt} \addtolength{\marginparwidth}{-80pt} \addtolength{\headwidth}{\marginparsep} \addtolength{\headwidth}{\marginparwidth} % ========================================================================== % ENT TES % EntÍtes standards \fancypagestyle{plain}{ \fancyhf{} \fancyfoot[RO,LE]{\thepage} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} } \fancypagestyle{main}{ \fancyhf{} \fancyhead[LO]{\nouppercase{\rightmark}} \fancyhead[RO,LE]{\thepage} \fancyhead[RE]{\nouppercase{\leftmark}} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt} } % ============================================================== % PR?FACE \newcommand{\beforepreface}{ \frontmatter \pagestyle{empty} \titlepage %\dedicacepage \pagestyle{plain} \cleardoublepage } % ============================================================== % CONTENU MA?TRE \newcommand{\afterpreface}{ \mainmatter \pagestyle{main} } % --------------------------------------------------------------- % PERSONNALISATION DE BABEL % redÈfinition des noms chapitres spÈciaux %\addto{\captionsfrench}{ % \renewcommand*{\listfigurename}{Liste des figures} % \renewcommand*{\appendixname}{}% %} % noindent en dÈbut de section %\addto\extrasfrench{\bbl@nonfrenchindent} % ========================================================================== % PAGE DE GARDE DES CHAPITRES % Le rÈsumÈ + le minitoc Èventuel \newenvironment{chapintro}{% \if@sommairechap \nomtcrule \vspace{1.5cm} \minitoc[l] \fi}{% \cleardoublepage } % chapitre numÈrotÈ \newfont{\chapterNumber}{eurb10 scaled 7000} \renewcommand*{\@makechapterhead}[1]{% \thispagestyle{plain} \marginpar{\vspace*{1.5em}\flushright\chapterNumber\thechapter} \begin{flushleft}\nobreak\Huge\sc#1\end{flushleft} \vspace{3cm} } % chapitre non numÈrotÈ (*) \renewcommand*{\@makeschapterhead}[1]{% \markboth{#1}{#1} \thispagestyle{plain} \begin{flushleft}\nobreak\Huge\sc #1\end{flushleft} \vspace{3cm} \if@sommairechap \mtcaddchapter \fi } % ========================================================================== % MODIFICATION DE LA COMMANDE PART \renewcommand\part{\cleardoublepage \thispagestyle{empty}% \if@twocolumn \onecolumn \@tempswatrue \else \@tempswafalse \fi \null\vfil \secdef\@part\@spart} \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% \else \addcontentsline{toc}{part}{#1}% \fi \markboth{}{}% {\centering \interlinepenalty \@M \normalfont \ifnum \c@secnumdepth >-2\relax \chapterNumber \thepart \par \vskip 20\p@ \fi \huge \bfseries #2\par}% \@endpart} \def\@spart#1{% {\centering \interlinepenalty \@M \normalfont \Huge \bfseries #1\par}% \@endpart} \def\@endpart{\vfil\newpage \if@twoside \null \thispagestyle{empty}% \newpage \fi \if@tempswa \twocolumn \fi} % ========================================================================== % LES SECTIONS, SOUS-SECTIONS, SOUS-SOUS-SECTIONS \makeatletter \renewcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\Large\scshape}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\normalfont\bfseries\large}} \def\@seccntformat#1{% \protect\makebox[-3.5pt][r]{\csname the#1\endcsname\quad\hspace{-3.5pt}} } \makeatother % ========================================================================== % ANNEXE, BIBLIOGRAPHIE \RequirePackage[hyperpageref]{backref} \backreffrench \renewcommand*{\backref}[1]{} % Disable standard \renewcommand*{\backrefalt}[4]{% Detailed backref \ifcase #1 % \relax%(Not cited.)% %\or %(Cit\'e page~#2.)% %\else %(Cit\'e pages~#2.) \fi} % Page blanche apr¿s chapitre si nªcessaire \makeatletter \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else \hbox{} \vspace*{\fill} \begin{center} ~ \end{center} \vspace{\fill} \thispagestyle{empty} \newpage \if@twocolumn\hbox{}\newpage\fi\fi\fi} \makeatother % --------------------------------------------------------------- % LETTRINE \newcommand{\malettrine}[1]{ \lettrine[lines=2,lhang=0.33,loversize=0.33]{#1} } % --------------------------------------------------------------- % THEOREMES \newlength{\thmmargin} \newlength{\thmmargina} \newlength{\thmmarginb} \newlength{\thmmarginc} \newlength{\thmmargind} \newlength{\thmmargine} \newlength{\thmmarginf} \newlength{\thmmarging} \newlength{\thmmarginh} \addtolength{\thmmargin}{105pt} \addtolength{\thmmarginb}{\thmmargin-7.85ex} % exemple -- ok \addtolength{\thmmarginc}{\thmmargin-6.1ex} % thÈorËme,remarque -- ok \addtolength{\thmmargind}{\thmmargin-7.4ex} % propriÈtÈ -- ok \addtolength{\thmmargine}{\thmmargin-6ex} % dÈfinition -- ok \addtolength{\thmmargina}{\thmmargin-5.625ex} % hypothËse -- ok \addtolength{\thmmarginf}{\thmmargin-4.8ex} % proposition -- ok \addtolength{\thmmarging}{\thmmargin-8.7ex} % Lemme -- ok \addtolength{\thmmarginh}{\thmmargin-6.5ex} % Corollaire -- ok % COMMAND \newtheoremstyle % espace avant, espace aprËs, font du corps, retrait titre, font titre, ponctuaiton aprËs titre, espace intermot, option supp % hypothËse \newtheoremstyle{thma}{9pt}{9pt}{\itshape}{-\thmmargina}{\small\bfseries}{\quad}{ }{} \theoremstyle{thma} \newtheorem{hypothese}{Hypoth\`{e}se}[chapter] % exemple \newtheoremstyle{thmb}{9pt}{9pt}{\itshape}{-\thmmarginb}{\small\bfseries}{\quad}{ }{} \theoremstyle{thmb} \newtheorem{exemple}{Exemple}[chapter] % thÈorËme & remarque \newtheoremstyle{thmc}{9pt}{9pt}{\itshape}{-\thmmarginc}{\small\bfseries}{\quad}{ }{} \theoremstyle{thmc} \newtheorem{theoreme}{Th\'{e}or\`{e}me}[chapter] \newtheorem{remarque}{Remarque}[chapter] % propriÈtÈ \newtheoremstyle{thmd}{9pt}{9pt}{\itshape}{-\thmmargind}{\small\bfseries}{\quad}{ }{} \theoremstyle{thmd} \newtheorem{propriete}{Propri\'{e}t\'{e}}[chapter] % dÈfinition \newtheoremstyle{thme}{9pt}{9pt}{\itshape}{-\thmmargine}{\small\bfseries}{\quad}{ }{} \theoremstyle{thme} \newtheorem{definitionf}{D\'{e}finition}[chapter] % proposition \newtheoremstyle{thmf}{9pt}{9pt}{\itshape}{-\thmmarginf}{\small\bfseries}{\quad}{ }{} \theoremstyle{thmf} \newtheorem{propositionf}{Proposition}[chapter] % lemme \newtheoremstyle{thmg}{9pt}{9pt}{\itshape}{-\thmmarging}{\small\bfseries}{\quad}{ }{} \theoremstyle{thmg} \newtheorem{lemme}{Lemme}[chapter] % corollaire \newtheoremstyle{thmh}{9pt}{9pt}{\itshape}{-\thmmarginh}{\small\bfseries}{\quad}{ }{} \theoremstyle{thmh} \newtheorem{corollaire}{Corollaire}[chapter] % ========================================================================== % FIGURES ET TABLES % \figScale{monfichier}{LÈgende de la figure} \newcommand{\figScaleX}[3]{ \begin{figure}[htp!] \centering \includegraphics[width=#1\textwidth]{./figures/#2} \caption{#3} \label{fig:#2} \end{figure} } \newcommand{\figScale}[2]{ \figScaleX{0.95}{#1}{#2} } \newcommand{\figScaleRot}[3]{ \begin{figure}[htp!] \includegraphics[angle=#1,width=0.95\textwidth]{./figures/#2} \caption{#3} \label{fig:#2} \end{figure} } \newcommand{\figScaleXb}[3]{ \begin{figure}[b!] \centering \includegraphics[width=#1\textwidth]{./figures/#2} \caption{#3} \label{fig:#2} \end{figure} } \newcommand{\figScaleXt}[3]{ \begin{figure}[t!] \centering \includegraphics[width=#1\textwidth]{./figures/#2} \caption{#3} \label{fig:#2} \end{figure} }