1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
| \ProvidesClass{thl3i}[2010/03/24 v1.0 Matthieu Perreira Da Silva]
%Si vous voulez pouvoir préciser vos options via \usepackage
%\LoadClassWithOptions{scrbook}
%Sinon voici les options "conseillées"
\LoadClass[frenchb,english,12pt]{scrbook}
\KOMAoptions{
paper=a4,
cleardoublepage=empty,
headinclude=true,
footinclude=false,
twoside=semi,
chapterprefix,
numbers=noenddot
}
\bibliographystyle{unsrt}
% pour changer les marges de la page de titre
\RequirePackage{geometry}
% pour les images (page de titre entre autres)
\RequirePackage{graphicx}
% Pour les encadrements
\RequirePackage{framed}
% Algorithmes
\RequirePackage{algorithmic}
\renewcommand{\algorithmicrequire}{\textbf{Pr\'e-conditions:}}
\renewcommand{\algorithmicensure}{\textbf{Post-conditions:}}
\renewcommand{\algorithmicend}{\textbf{fin}}
\renewcommand{\algorithmicif}{\textbf{si}}
\renewcommand{\algorithmicthen}{\textbf{alors}}
\renewcommand{\algorithmicelse}{\textbf{sinon}}
\renewcommand{\algorithmicelsif}{\algorithmicelse\ \algorithmicif}
\renewcommand{\algorithmicendif}{\algorithmicend\ \algorithmicif}
\renewcommand{\algorithmicfor}{\textbf{pour}}
\renewcommand{\algorithmicforall}{\textbf{pour tout}}
\renewcommand{\algorithmicdo}{\textbf{faire}}
\renewcommand{\algorithmicendfor}{\algorithmicend\ \algorithmicfor}
\renewcommand{\algorithmicwhile}{\textbf{tant que}}
\renewcommand{\algorithmicendwhile}{\algorithmicend\ \algorithmicwhile}
\renewcommand{\algorithmicloop}{\textbf{boucler}}
\renewcommand{\algorithmicendloop}{\algorithmicend\ \algorithmicloop}
\renewcommand{\algorithmicrepeat}{\textbf{r\'ep\'eter}}
\renewcommand{\algorithmicuntil}{\textbf{jusqu'\`a}}
\renewcommand{\algorithmicprint}{\textbf{afficher}}
\renewcommand{\algorithmicreturn}{\textbf{renvoyer}}
\renewcommand{\algorithmiccomment}[1]{//#1}
% Encodage utf8 et fontes qui vont bien
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage{marvosym}
\RequirePackage{pifont}
%Gestion des headers
\RequirePackage{scrpage2}
\pagestyle{scrheadings}
\setheadsepline{0.4pt}
\renewcommand\partpagestyle{empty}
% les couleurs pour hyperef
\RequirePackage{xcolor}
% Gestion de la langue
\RequirePackage{babel}
%Guillemets a la française
\addto\extrasfrench{\providecommand{\og}{\leavevmode\flqq~}\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}}
% espace avant le ':' dans les titres de figures et tables
\renewcommand*{\captionformat}{~:\ }
% pour les maths
\RequirePackage{amsthm}
\RequirePackage{amsmath}
% si pdf latex est utilisé
\RequirePackage{ifpdf}
\ifpdf
% définition de la version de format de PDF
%\pdfminorversion=5
% alors on charge des fontes plus adaptées
\IfFileExists{lmodern.sty}
{\RequirePackage{lmodern}}{}
\fi
% Mis en forme des titres de chapitre
% Note : si vous voulez une minitoc, malheureusement minitoc est incompatible avec titlesec.
% Cependant rien n'est perdu : décommentez le RequirePackage{titletoc} quelques lignes en dessous,
% lisez la doc du package titletoc et décommentez la fin de cette commande !
\RequirePackage{titlesec}
%\RequirePackage{titletoc}
\titleformat{\chapter}[display]
{\sectfont}
{\filcenter
\LARGE
\enspace \chaptertitlename~\thechapter\enspace}
{0.5cm}
{\huge\bfseries\filcenter}
%[\small\vspace*{4pc}%
%\startcontents
%\printcontents{l}{1}{\setcounter{tocdepth}{2}}]
% Pour sauter automatiquement une ligne après un titre de style paragraph et subparagraph
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\raggedsection\normalfont\sectfont\nobreak\size@paragraph}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\raggedsection\slshape\sectfont\nobreak\size@subparagraph}}
\renewcommand*{\size@subparagraph}{\small}%
% Pour que la table des matière et la liste des figure et des tableaux
% apparaissent automatiquement dans la table des matières
\RequirePackage{tocbibind}
% Ajustement de la taille réservée aux numéros de figures et tableaux dans les tables de figures et tableaux
% C'est le dernier chiffre qu'il faut changer si on veut plus de place !
\renewcommand{\l@figure}{\@dottedtocline{1}{1.5em}{2.8em}}
\renewcommand{\l@table}{\@dottedtocline{1}{1.5em}{2.8em}}
\renewcommand\thetable{\arabic{table}}
% pour générer de beau bookmarks pdf
\RequirePackage[unicode=true, bookmarks=true, bookmarksnumbered=true, bookmarksopen=false,
breaklinks=false, pdfborder={0 0 0}, backref=false, colorlinks=false]{hyperref}
%\hypersetup{ pdfborderstyle={/S/U/W 1}, linkbordercolor={0 .5 1}, citebordercolor={0 .5 1}, urlbordercolor={0 .5 1}, filebordercolor={0 .5 1}}
\RequirePackage{bookmark}
% \ChapterOutsidePart and \ChapterInsidePart: permet de créer des chapitre hors et dans des parties
% avec un toc et des bookmarks cohérents
\newcommand{\ChapterOutsidePart}{%
\phantomsection
\addtocontents{toc}{\protect\vspace{0.5cm}}
\def\toclevel@chapter{-1}\def\toclevel@section{0}\def\toclevel@subsection{1}}
\newcommand{\ChapterInsidePart}{%
\phantomsection
\def\toclevel@chapter{0}\def\toclevel@section{1}\def\toclevel@subsection{2}}
% Pour la page contenant le nom du labo, les encadrants, etc.
\newcommand\address[1]{%
\cleardoublepage
\thispagestyle{empty}
{#1}
\cleardoublepage
}
% Tout ce qu'il faut pour declarer le jury
\newtoks\@jury@tokI
\newtoks\@jury@tokII
\newcommand\@tokc@t[3]{%
\edef\@tokconc@t{\the#1\the#2}%
#3=\expandafter{\@tokconc@t}%
}
\newtoks\@thesis@jury
\newcommand{\NewJuryCategory}[3]{%
\expandafter\newtoks\csname#1\endcsname
\csname#1\endcsname={}%
\expandafter\def\csname#1@title\endcsname{{#2}{#3}}%
\@jury@tokI=\expandafter{\csname#1\endcsname}%
\@tokc@t\@thesis@jury\@jury@tokI\@thesis@jury
\@jury@tokI=\expandafter{\csname#1@title\endcsname}%
\@tokc@t\@thesis@jury\@jury@tokI\@thesis@jury
}
\newcommand{\ClearJury}{\@thesis@jury={}}
\ClearJury
\NewJuryCategory{President}{\textit{Pr\'esident}}{\textit{Pr\'esidents}}
\NewJuryCategory{Rapporteurs}{\textit{Rapporteur}}{\textit{Rapporteurs}}
\NewJuryCategory{Examinateurs}{\textit{Examinateur}}{\textit{Examinateurs}}
\NewJuryCategory{Invites}{\textit{Invit\'e}}{\textit{Invit\'es}}
\NewJuryCategory{Directeur}{\textit{Directeur de th\`ese}}{\textit{Co-directeurs de th\`ese}}
\NewJuryCategory{Encadrant}{\textit{Encadrant de th\`ese}}{\textit{Co-encadrants de th\`ese}}
\def\@selecti#1{\expandafter\@@selecti#1}
\def\@@selecti#1#2{{#1}}
\def\@selectii#1{\expandafter\@@selectii#1}
\def\@@selectii#1#2{{#2}}
\newcommand\@buildjury[1]{%
\@jury@tokI={\bgroup\begin{tabular}{lll}}%
\expandafter\@@buildjury\the#1/%
\@jury@tokII={\end{tabular}\egroup}%
\@tokc@t\@jury@tokI\@jury@tokII\@jury@tokI
\the\@jury@tokI
}
\def\@@buildjury#1#2#3/{%
\def\@tmpa{#3}%
\ifx\@tmpa\@empty
\def\@tmpa{#1}%
\ifx\@tmpa\@empty
\else\@buildentry#1#2%
\fi
\else
\@buildentry#1#2%
\@@buildjury#3/%
\fi
}
\newcommand\@buildentry[2]{\expandafter\@buildtable\the#1\\/#2}
\def\@buildtable#1\\#2/#3{%
\def\@tmpa{#1}%
\ifx\@tmpa\@empty
\else
\def\@tmpa{#2}%
\ifx\@tmpa\@empty
\@jury@tokII={\@selecti#3\\}%
\@tokc@t\@jury@tokI\@jury@tokII\@jury@tokI
\else
\@jury@tokII={\@selectii#3\\}%
\@tokc@t\@jury@tokI\@jury@tokII\@jury@tokI
\@@buildtable#2/%
\fi
\@jury@tokII={[1mm]}%
\@tokc@t\@jury@tokI\@jury@tokII\@jury@tokI
\fi
}
\def\@@buildtable#1\\#2/{%
\@jury@tokII={\\}%
\@tokc@t\@jury@tokI\@jury@tokII\@jury@tokI
\def\@tmpa{#2}%
\ifx\@tmpa\@empty
\else\@@buildtable#2/%
\fi
}
\newcommand\@ThesisJury{\@buildjury\@thesis@jury}
%% Nouvelles commandes pour le titre
\newcommand{\titreLogoUn}[1]{\def \@monTitreLogoUn {#1} }
\newcommand{\titreLogoDeux}[1]{\def \@monTitreLogoDeux {#1} }
\newcommand{\titreBasDePage}[1]{\def \@monTitreBasDePage {#1} }
%% mise en page de la page de titre
\renewcommand{\maketitle}{
\begin{titlepage}
\newgeometry{margin=3cm}
\includegraphics[height=2cm]{Logos/Logo1}
\hfill
\includegraphics[height=2cm]{Logos/Logo2}
\vspace{0.2cm}
\hrule
\vspace{0.2cm}
\ifx\@monTitreLogoUn\@empty \else
{\footnotesize \@monTitreLogoUn}
\fi
\ifx\@monTitreLogoDeux\@empty \else
\hfill
{\footnotesize \@monTitreLogoDeux}
\fi
\vspace{1.5cm}
\parbox{\linewidth}{
\centering
\Large
{\scshape
Th\`ese}
}
\vspace{1cm}
\ifx\@subject\@empty \else
\parbox{\linewidth}{
\centering
Pr\'esent\'ee pour l'obtention du DOCTORAT en \\
\vspace{1cm}
\@subject
}
\fi
\vspace{1.5cm}
\ifx\@title\@empty \else
\parbox{\linewidth}{
\centering
\huge
{\scshape
\@title}
}
\fi
\vspace{1cm}
\ifx\@author\@empty \else
\parbox{\linewidth}{
\centering
\@author
}
\fi
\vfill
\begin{minipage}[t]{1\columnwidth}
{
\small\textbf{Soutenue publiquement le {\ifx\@author \today \else \@date \fi} devant un jury compos\'e de :}
%\small\textbf{Proposition de date de soutenance : {\ifx\@author \today \else \@date \fi} devant un jury compos\'e de :}
}
\vspace{0.5cm}
\begin{center}
\@ThesisJury
\end{center}
\end{minipage}
\vspace{0.5cm}
\ifx\@monTitreBasDePage\@empty \else
\hfill
{\footnotesize \@monTitreBasDePage}
\vspace{0.1cm}
\hrule
%\vspace{0.2cm}
%\hfill
%\includegraphics[height=1cm]{Logos/Logo3}
\fi
\end{titlepage}
\restoregeometry
}
% la partie résumé de chaque chapitre
\newcommand{\chapterSummary}
{\newpage
\phantomsection
\addsec{Points clés}
}
% Le corps du résumé
\newenvironment{chapterSummaryBody}
{\let\savelabelitemi=\labelitemi
\renewcommand{\labelitemi}{\ding{111}}
\begin{framed}
\vspace{-5mm}}
{\renewcommand\labelitemi{\savelabelitemi}
\end{framed}} |
Partager