Guest User

tlsflyleaf

a guest
Jun 3rd, 2022
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.23 KB | None | 0 0
  1.  
  2. %% This is file `tlsflyleaf.sty',
  3. %% Copyright 2013 Tristan GREGOIRE
  4. %
  5. % This work may be distributed and/or modified under the
  6. % conditions of the LaTeX Project Public License, either version 1.3
  7. % of this license or (at your option) any later version.
  8. % The latest version of this license is in
  9. % http://www.latex-project.org/lppl.txt
  10. % and version 1.3 or later is part of all distributions of LaTeX
  11. % version 2005/12/01 or later.
  12. %
  13. %
  14. % This work has the LPPL maintenance status `maintained'.
  15. %
  16. % The Current Maintainer of this work is T. GREGOIRE
  17. %
  18. %
  19. % Version history
  20. % v1.13:
  21. % - Fix illegal unit in new Texlive version for linethickness
  22. % v1.12:
  23. % - Fix deprecated \bf and \sc
  24. % v1.11:
  25. % - Fix geometry clash when already loaded by the document class
  26. % - Fix geometry problem when loading the package (use geometry's option "pass")
  27. % - Fix header deletion when using tlsflyleaf (change style from "plain" to "headings"
  28. % v1.10:
  29. % - Fix incompatibility with memoir document class
  30. % - Fix french typo
  31. % v1.9:
  32. % - Upgrade SDU2E speciality labels (according to the responsible of the doctoral school January 2017)
  33. % v1.8:
  34. % - Remove fancyhdr dependencies (useless)
  35. % - Merge blanksheet and blankpage command (no more need of two command)
  36. % v1.7:
  37. % - Adding missing MITT speciality (SIAO)
  38. % v1.6:
  39. % - Establishment naming updated (UT2)
  40. % v1.5:
  41. % - Spell fix
  42. % v1.4:
  43. % - Remove packages: babel, inputenc and fontenc
  44. % v1.3:
  45. % - Add sentence if no member of jury are defined and njudge=0
  46. % v1.2:
  47. % - Add new ED2 option -> double mention for a second speciality (ED like option)
  48. % - Fix cotutelle bug
  49. % v1.1:
  50. % - Update cotutelle layout
  51. % - Only fancy mode kept => fancy option removed
  52. % v1.0:
  53. % - Add 2 new options: ED and Ets to fix the syntax for respectively docschool and establishment
  54. % v0.9:
  55. % - Add new command \establishment
  56. % - Use \title instead of \FRtitle
  57. % v0.8:
  58. % - Add auto agreement with number (boss and referee by adding 's' if number greater than 1)
  59. % - Add a fancy flyleaf load with the 'fancy' option
  60. % - Automatic position of the background figure (doesn't depend on the paper size)
  61. % - Rename \makepdg to \makeflyleaf
  62. % - Rename \pdg to \makepdg
  63. % - Use standard \author command instead of \writer
  64. % Default value set with \author{names} command
  65. % - Rename \umr command to \lab
  66. % - Option `emptysheetbefore' and `emptypageafter' added
  67. %
  68.  
  69. \NeedsTeXFormat{LaTeX2e} % Require recent version of LaTeX >= 2011
  70. \ProvidesClass{tlsflyleaf}[2013/03/22 Page de Garde de l'Universite de Toulouse]
  71.  
  72. \RequirePackage{xkeyval} % Allow key=value option for the package
  73.  
  74. % ============================================================
  75. % OPTION
  76. %emptysheetbefore => Insert two white pages (one sheet) before the flyleaf
  77. \newif\if@emptysheetbefore\@emptysheetbeforefalse
  78. \DeclareOptionX{emptysheetbefore}[none]{\@emptysheetbeforetrue}
  79. %emptypageafter => insert one page after the flyleaf
  80. \newif\if@emptypageafter\@emptypageafterfalse
  81. \DeclareOptionX{emptypageafter}[none]{\@emptypageaftertrue}
  82. %draft => Remove flyleaf page
  83. \newif\if@draft\@draftfalse
  84. \DeclareOptionX{draft}[none]{\@drafttrue}
  85.  
  86. %% KEY=VALUE OPTION
  87. % Establishment
  88. \def\establishment#1{\gdef\@establishment{#1}}
  89. \define@choicekey+{etsname}{Ets}[\val\nr]
  90. {UT1, UT2, UT2-ENSA, UT3, INP, INP-ENSM, INSA, INSA-ENSM, ISAE}{%
  91. \ifcase\nr\relax
  92. \establishment{l'Universit\'e Toulouse 1 Capitole (UT1 Capitole)}
  93. \or
  94. \establishment{l'Universit\'e Toulouse - Jean Jaur\`es}
  95. \or
  96. \establishment{l'UT2 Le Mirail conjointement avec l'\'Ecole Nationale Sup\'erieur d'Architecture de Toulouse}
  97. \or
  98. \establishment{l'Universit\'e Toulouse 3 Paul Sabatier (UT3 Paul Sabatier)}
  99. \or
  100. \establishment{l'Institut National Polytechnique de Toulouse (INP Toulouse)}
  101. \or
  102. \establishment{l'INP Toulouse conjointement avec l'\'Ecole Nationale Sup\'erieure des Mines d'Albi-Carmaux}
  103. \or
  104. \establishment{l'Institut National des Sciences Appliqu\'ees de Toulouse (INSA de Toulouse)}
  105. \or
  106. \establishment{l'INSA de Toulouse conjointement avec l'\'Ecole Nationale Sup\'erieure des Mines d'Albi-Carmaux}
  107. \or
  108. \establishment{l'Institut Sup\'erieur de l'A\'eronautique et de l'Espace (ISAE)}
  109. \fi
  110. }
  111. {\PackageError{tlsflyleaf}{'\CurrentOption' option inconnue}}
  112. \DeclareOptionX{Ets}{\setkeys{etsname}{Ets=#1}}
  113.  
  114. % Docschool and speciality
  115. \def\docschool#1{\def\@docschool{#1}}
  116. \define@choicekey+{edname}{ED}[\val\nr]
  117. {AA, ALLPHA-Al, ALLPHA-An, ALLPHA-Ar, ALLPHA-AtA, ALLPHA-AtSp, ALLPHA-AtSc, ALLPHA-AtP, ALLPHA-C, ALLPHA-D, ALLPHA-Es, ALLPHA-Ea, ALLPHA-I, ALLPHA-LC, ALLPHA-LM, ALLPHA-M, ALLPHA-Ph, ALLPHA-Po, ALLPHA-R, ALLPHA-S, ALLPHA-T, BSB-Anth, BSB-BioC, BSB-BioD, BSB-BioS, BSB-BiosV, BSB-BiotB, BSB-BiotC, BSB-GC, BSB-GM, BSB-Immu, BSB-Micr, BSB-Neur, BSB-Phar, BSB-Phys, CLESCO-A, CLESCO-D, CLESCO-E, CLESCO-L, CLESCO-Npsy, CLESCO-Nsc, CLESCO-NscCC, CLESCO-PM, CLESCO-Psy, CLESCO-Psyp, CLESCO-SE, CLESCO-SL, GEET-Comp, GEET-Elec, GEET-Genie, GEET-Plasma, GEET-MicNano, GEET-Pho, GEET-RadImg, MEGEP-DyF, MEGEP-Energ, MEGEP-GC, MEGEP-GPE, MEGEP-GMeca, MITT-MathEp, MITT-MathA, MITT-MathF, MITT-STICIA, MITT-STICRT, MITT-STICSL, MITT-ImgInf, MITT-SIAO, MPSE-Sci, SDM-CMacro, SDM-CMol, SDM-COrg, SDM-CBio, SDM-Nano, SDM-PTh, SDM-PCOR, SDM-PMat, SDM-SAgro, SDM-SGen, SDU2E-Ast, SDU2E-Eco, SDU2E-Surf, SDU2E-Oc, SDU2E-Sc, SEVAB-Ag, SEVAB-De, SEVAB-Eco, SEVAB-Ing, SEVAB-Int, SEVAB-PaTox, SG-C, SG-F, SG-G, SG-M, SG-St, SG-Sys, SJP-D, SJP-ScP, TESC-Ant, TESC-Arc, TESC-Eco, TESC-EcoS, TESC-EtH, TESC-EtRG, TESC-EtRSG, TESC-EtRSD, TESC-EtRSE, TESC-EtRS, TESC-EtA, TESC-Geo, TESC-Hist, TESC-HistA, TESC-Pre, TESC-ScA, TESC-Soc, EDSYS-A, EDSYS-ASPR, EDSYS-GenInd, EDSYS-Info, EDSYS-Robo, EDSYS-SystEmb}
  118. {%
  119. \ifcase\nr\relax
  120. \docschool{AA : voir dossier renouvellement}
  121. \or
  122. \docschool{ALLPH@ : Allemand}
  123. \or
  124. \docschool{ALLPH@ : Anglais}
  125. \or
  126. \docschool{ALLPH@ : Arabe}
  127. \or
  128. \docschool{ALLPH@ : Arts appliqu\'es}
  129. \or
  130. \docschool{ALLPH@ : Arts du spectacle}
  131. \or
  132. \docschool{ALLPH@ : Arts et Sciences des Arts}
  133. \or
  134. \docschool{ALLPH@ : Arts plastiques}
  135. \or
  136. \docschool{ALLPH@ : Cin\'ema}
  137. \or
  138. \docschool{ALLPH@ : Didactique des langues}
  139. \or
  140. \docschool{ALLPH@ : Espagnol}
  141. \or
  142. \docschool{ALLPH@ : \'Etudes audiovisuelles}
  143. \or
  144. \docschool{ALLPH@ : Italien}
  145. \or
  146. \docschool{ALLPH@ : Lettres classiques}
  147. \or
  148. \docschool{ALLPH@ : Lettres modernes}
  149. \or
  150. \docschool{ALLPH@ : Musique}
  151. \or
  152. \docschool{ALLPH@ : Philosophie}
  153. \or
  154. \docschool{ALLPH@ : Portugais}
  155. \or
  156. \docschool{ALLPH@ : Russe}
  157. \or
  158. \docschool{ALLPH@ : Sciences de l'information et de la communication}
  159. \or
  160. \docschool{ALLPH@ : Traductologie}
  161. \or
  162. \docschool{BSB : Anthropobiologie}
  163. \or
  164. \docschool{BSB : Biologie cellulaire}
  165. \or
  166. \docschool{BSB : Biologie du d\'eveloppement}
  167. \or
  168. \docschool{BSB : Biologie structurale et fonctionnelle}
  169. \or
  170. \docschool{BSB : Biosciences v\'eg\'etales}
  171. \or
  172. \docschool{BSB : Biotechnologies, Bio\'ethique}
  173. \or
  174. \docschool{BSB : Biotechnologies, Canc\'erologie}
  175. \or
  176. \docschool{BSB : G\`enes, cellules et d\'eveloppement}
  177. \or
  178. \docschool{BSB : G\'en\'etique mol\'eculaire}
  179. \or
  180. \docschool{BSB : Immunologie}
  181. \or
  182. \docschool{BSB : Microbiologie}
  183. \or
  184. \docschool{BSB : Neurosciences}
  185. \or
  186. \docschool{BSB : Pharmacologie}
  187. \or
  188. \docschool{BSB : Physiopathologie}
  189. \or
  190. \docschool{CLESCO : Acoustique, Science du langage}
  191. \or
  192. \docschool{CLESCO : Didactique des disciplines scientifiques}
  193. \or
  194. \docschool{CLESCO : Ergonomie}
  195. \or
  196. \docschool{CLESCO : Linguistique anglaise}
  197. \or
  198. \docschool{CLESCO : Neuropsychologie}
  199. \or
  200. \docschool{CLESCO : Neurosciences}
  201. \or
  202. \docschool{CLESCO : Neurosciences, comportement et cognition}
  203. \or
  204. \docschool{CLESCO : Performance motrice, adaptation et sports}
  205. \or
  206. \docschool{CLESCO : Psychologie}
  207. \or
  208. \docschool{CLESCO : Psychopathologie}
  209. \or
  210. \docschool{CLESCO : Sciences de l'\'education}
  211. \or
  212. \docschool{CLESCO : Sciences du langage}
  213. \or
  214. \docschool{GEET : Composants et Syst\`emes de gestion de l'\'Energie}
  215. \or
  216. \docschool{GEET : \'Electromagn\'etisme et Syst\`emes Haute Fr\'equence}
  217. \or
  218. \docschool{GEET : G\'enie Electrique}
  219. \or
  220. \docschool{GEET : Ing\'enierie des PLASMAS}
  221. \or
  222. \docschool{GEET : Micro et Nanosyst\`emes}
  223. \or
  224. \docschool{GEET : Photonique et Syst\`emes Opto\'electroniques}
  225. \or
  226. \docschool{GEET : Radio-physique et Imagerie M\'edicale}
  227. \or
  228. \docschool{MEGEP : Dynamique des fluides}
  229. \or
  230. \docschool{MEGEP : \'Energ\'etique et transferts}
  231. \or
  232. \docschool{MEGEP : G\'enie civil}
  233. \or
  234. \docschool{MEGEP : G\'enie des proc\'ed\'es et de l'Environnement}
  235. \or
  236. \docschool{MEGEP : G\'enie m\'ecanique, m\'ecanique des mat\'eriaux}
  237. \or
  238. \docschool{MITT : Domaine Math\'ematiques : \'Epid\'emiologie}
  239. \or
  240. \docschool{MITT : Domaine Math\'ematiques : Math\'ematiques appliqu\'ees}
  241. \or
  242. \docschool{MITT : Domaine Math\'ematiques : Math\'ematiques fondamentales}
  243. \or
  244. \docschool{MITT : Domaine STIC : Intelligence Artificielle}
  245. \or
  246. \docschool{MITT : Domaine STIC : R\'eseaux, T\'el\'ecoms, Syst\`emes et Architecture}
  247. \or
  248. \docschool{MITT : Domaine STIC : Suret\'e de logiciel et calcul de haute performance}
  249. \or
  250. \docschool{MITT : Image, Information, Hyperm\'edia}
  251. \or
  252. \docschool{MITT : Signal, Image, Acoustique et Optimisation}
  253. \or
  254. \docschool{MPSE : Sciences \'Economiques}
  255. \or
  256. \docschool{SDM : Chimie macromol\'eculaire et supramol\'eculaire - CO044}
  257. \or
  258. \docschool{SDM : Chimie mol\'eculaire - CO 046}
  259. \or
  260. \docschool{SDM : Chimie organom\'etallique de coordination - CO 043}
  261. \or
  262. \docschool{SDM : Chimie, Biologie, Sant\'e - CO 042}
  263. \or
  264. \docschool{SDM : Nano-physique, nano-composants, nano-mesures - COP 00}
  265. \or
  266. \docschool{SDM : Physicochimie th\'eorique - COP 01}
  267. \or
  268. \docschool{SDM : Physique - COR 02}
  269. \or
  270. \docschool{SDM : Physique de la mati\`ere - CO090}
  271. \or
  272. \docschool{SDM : Sciences des agroressources - CO019}
  273. \or
  274. \docschool{SDM : Sciences et g\'enie des mat\'eriaux - CO034}
  275. \or
  276. \docschool{SDU2E : Astrophysique, Sciences de l'Espace, Plan\'etologie}
  277. \or
  278. \docschool{SDU2E : \'Ecologie fonctionnelle}
  279. \or
  280. \docschool{SDU2E : Surfaces et interfaces continentales, Hydrologie}
  281. \or
  282. \docschool{SDU2E : Oc\'ean, Atmosph\`ere, Climat}
  283. \or
  284. \docschool{SDU2E : Sciences de la Terre et des Plan\`etes Solides}
  285. \or
  286. \docschool{SEVAB : Agrosyst\`emes, \'ecosyst\`emes et environnement}
  287. \or
  288. \docschool{SEVAB : D\'eveloppement des plantes}
  289. \or
  290. \docschool{SEVAB : \'Ecologie, biodiversit\'e et \'evolution}
  291. \or
  292. \docschool{SEVAB : Ing\'enieries microbienne et enzymatique}
  293. \or
  294. \docschool{SEVAB : Interactions plantes-microorganismes}
  295. \or
  296. \docschool{SEVAB : Pathologie, Toxicologie, G\'en\'etique et Nutrition}
  297. \or
  298. \docschool{SG : Comptabilit\'e Contr\^ole}
  299. \or
  300. \docschool{SG : Finance}
  301. \or
  302. \docschool{SG : Gestion des Ressources Humaines}
  303. \or
  304. \docschool{SG : Marketing}
  305. \or
  306. \docschool{SG : Strat\'egie}
  307. \or
  308. \docschool{SG : Syst\`emes d'information}
  309. \or
  310. \docschool{SJP : Droit}
  311. \or
  312. \docschool{SJP : Sciences Politiques}
  313. \or
  314. \docschool{TESC : Anthropologie sociale et historique}
  315. \or
  316. \docschool{TESC : Architecture}
  317. \or
  318. \docschool{TESC : \'Economie}
  319. \or
  320. \docschool{TESC : \'Economie sociale}
  321. \or
  322. \docschool{TESC : \'Etudes hispaniques}
  323. \or
  324. \docschool{TESC : \'Etudes rurales en g\'eographie, environnement}
  325. \or
  326. \docschool{TESC : \'Etudes rurales en sciences de gestion}
  327. \or
  328. \docschool{TESC : \'Etudes rurales en sciences du d\'eveloppement}
  329. \or
  330. \docschool{TESC : \'Etudes rurales en sciences \'economiques}
  331. \or
  332. \docschool{TESC : \'Etudes rurales en sociologie}
  333. \or
  334. \docschool{TESC : \'Etudes sur l'Am\'erique Latine}
  335. \or
  336. \docschool{TESC : G\'eographie et am\'enagement}
  337. \or
  338. \docschool{TESC : Histoire}
  339. \or
  340. \docschool{TESC : Histoire de l'Art}
  341. \or
  342. \docschool{TESC : Pr\'ehistoire}
  343. \or
  344. \docschool{TESC : Sciences de l'Antiquit\'e}
  345. \or
  346. \docschool{TESC : Sociologie}
  347. \or
  348. \docschool{EDSYS : Automatique 4200046}
  349. \or
  350. \docschool{EDSYS : Automatique, Signal, Productique, Robotique 4200046}
  351. \or
  352. \docschool{EDSYS : G\'enie Industriel 4200046}
  353. \or
  354. \docschool{EDSYS : Informatique 4200018}
  355. \or
  356. \docschool{EDSYS : Robotique 4200046}
  357. \or
  358. \docschool{EDSYS : Syst\`emes embarqu\'es 4200046}
  359. \fi
  360. }
  361. {\PackageError{tlsflyleaf}{'\CurrentOption' option inconnue}}
  362. \DeclareOptionX{ED}{\setkeys{edname}{ED=#1}}
  363.  
  364. % Docschool and speciality double
  365. \def\doubleSpe#1{\def\@doubleSpe{#1}}
  366. \define@choicekey+{dblspe}{ED2}[\val\nr]
  367. {AA, ALLPHA-Al, ALLPHA-An, ALLPHA-Ar, ALLPHA-AtA, ALLPHA-AtSp, ALLPHA-AtSc, ALLPHA-AtP, ALLPHA-C, ALLPHA-D, ALLPHA-Es, ALLPHA-Ea, ALLPHA-I, ALLPHA-LC, ALLPHA-LM, ALLPHA-M, ALLPHA-Ph, ALLPHA-Po, ALLPHA-R, ALLPHA-S, ALLPHA-T, BSB-Anth, BSB-BioC, BSB-BioD, BSB-BioS, BSB-BiosV, BSB-BiotB, BSB-BiotC, BSB-GC, BSB-GM, BSB-Immu, BSB-Micr, BSB-Neur, BSB-Phar, BSB-Phys, CLESCO-A, CLESCO-D, CLESCO-E, CLESCO-L, CLESCO-Npsy, CLESCO-Nsc, CLESCO-NscCC, CLESCO-PM, CLESCO-Psy, CLESCO-Psyp, CLESCO-SE, CLESCO-SL, GEET-Comp, GEET-Elec, GEET-Genie, GEET-Plasma, GEET-MicNano, GEET-Pho, GEET-RadImg, MEGEP-DyF, MEGEP-Energ, MEGEP-GC, MEGEP-GPE, MEGEP-GMeca, MITT-MathEp, MITT-MathA, MITT-MathF, MITT-STICIA, MITT-STICRT, MITT-STICSL, MITT-ImgInf, MITT-SIAO, MPSE-Sci, SDM-CMacro, SDM-CMol, SDM-COrg, SDM-CBio, SDM-Nano, SDM-PTh, SDM-PCOR, SDM-PMat, SDM-SAgro, SDM-SGen, SDU2E-Ast, SDU2E-Eco, SDU2E-Surf, SDU2E-Oc, SDU2E-Sc, SEVAB-Ag, SEVAB-De, SEVAB-Eco, SEVAB-Ing, SEVAB-Int, SEVAB-PaTox, SG-C, SG-F, SG-G, SG-M, SG-St, SG-Sys, SJP-D, SJP-ScP, TESC-Ant, TESC-Arc, TESC-Eco, TESC-EcoS, TESC-EtH, TESC-EtRG, TESC-EtRSG, TESC-EtRSD, TESC-EtRSE, TESC-EtRS, TESC-EtA, TESC-Geo, TESC-Hist, TESC-HistA, TESC-Pre, TESC-ScA, TESC-Soc, EDSYS-A, EDSYS-ASPR, EDSYS-GenInd, EDSYS-Info, EDSYS-Robo, EDSYS-SystEmb}
  368. {%
  369. \ifcase\nr\relax
  370. \doubleSpe{AA : voir dossier renouvellement}
  371. \or
  372. \doubleSpe{ALLPH@ : Allemand}
  373. \or
  374. \doubleSpe{ALLPH@ : Anglais}
  375. \or
  376. \doubleSpe{ALLPH@ : Arabe}
  377. \or
  378. \doubleSpe{ALLPH@ : Arts appliqu\'es}
  379. \or
  380. \doubleSpe{ALLPH@ : Arts du spectacle}
  381. \or
  382. \doubleSpe{ALLPH@ : Arts et Sciences des Arts}
  383. \or
  384. \doubleSpe{ALLPH@ : Arts plastiques}
  385. \or
  386. \doubleSpe{ALLPH@ : Cin\'ema}
  387. \or
  388. \doubleSpe{ALLPH@ : Didactique des langues}
  389. \or
  390. \doubleSpe{ALLPH@ : Espagnol}
  391. \or
  392. \doubleSpe{ALLPH@ : \'Etudes audiovisuelles}
  393. \or
  394. \doubleSpe{ALLPH@ : Italien}
  395. \or
  396. \doubleSpe{ALLPH@ : Lettres classiques}
  397. \or
  398. \doubleSpe{ALLPH@ : Lettres modernes}
  399. \or
  400. \doubleSpe{ALLPH@ : Musique}
  401. \or
  402. \doubleSpe{ALLPH@ : Philosophie}
  403. \or
  404. \doubleSpe{ALLPH@ : Portugais}
  405. \or
  406. \doubleSpe{ALLPH@ : Russe}
  407. \or
  408. \doubleSpe{ALLPH@ : Sciences de l'information et de la communication}
  409. \or
  410. \doubleSpe{ALLPH@ : Traductologie}
  411. \or
  412. \doubleSpe{BSB : Anthropobiologie}
  413. \or
  414. \doubleSpe{BSB : Biologie cellulaire}
  415. \or
  416. \doubleSpe{BSB : Biologie du d\'eveloppement}
  417. \or
  418. \doubleSpe{BSB : Biologie structurale et fonctionnelle}
  419. \or
  420. \doubleSpe{BSB : Biosciences v\'eg\'etales}
  421. \or
  422. \doubleSpe{BSB : Biotechnologies, Bio\'ethique}
  423. \or
  424. \doubleSpe{BSB : Biotechnologies, Canc\'erologie}
  425. \or
  426. \doubleSpe{BSB : G\`enes, cellules et d\'eveloppement}
  427. \or
  428. \doubleSpe{BSB : G\'en\'etique mol\'eculaire}
  429. \or
  430. \doubleSpe{BSB : Immunologie}
  431. \or
  432. \doubleSpe{BSB : Microbiologie}
  433. \or
  434. \doubleSpe{BSB : Neurosciences}
  435. \or
  436. \doubleSpe{BSB : Pharmacologie}
  437. \or
  438. \doubleSpe{BSB : Physiopathologie}
  439. \or
  440. \doubleSpe{CLESCO : Acoustique, Science du langage}
  441. \or
  442. \doubleSpe{CLESCO : Didactique des disciplines scientifiques}
  443. \or
  444. \doubleSpe{CLESCO : Ergonomie}
  445. \or
  446. \doubleSpe{CLESCO : Linguistique anglaise}
  447. \or
  448. \doubleSpe{CLESCO : Neuropsychologie}
  449. \or
  450. \doubleSpe{CLESCO : Neurosciences}
  451. \or
  452. \doubleSpe{CLESCO : Neurosciences, comportement et cognition}
  453. \or
  454. \doubleSpe{CLESCO : Performance motrice, adaptation et sports}
  455. \or
  456. \doubleSpe{CLESCO : Psychologie}
  457. \or
  458. \doubleSpe{CLESCO : Psychopathologie}
  459. \or
  460. \doubleSpe{CLESCO : Sciences de l'\'education}
  461. \or
  462. \doubleSpe{CLESCO : Sciences du langage}
  463. \or
  464. \doubleSpe{GEET : Composants et Syst\`emes de gestion de l'\'Energie}
  465. \or
  466. \doubleSpe{GEET : \'Electromagn\'etisme et Syst\`emes Haute Fr\'equence}
  467. \or
  468. \doubleSpe{GEET : G\'enie Electrique}
  469. \or
  470. \doubleSpe{GEET : Ing\'enierie des PLASMAS}
  471. \or
  472. \doubleSpe{GEET : Micro et Nanosyst\`emes}
  473. \or
  474. \doubleSpe{GEET : Photonique et Syst\`emes Opto\'electroniques}
  475. \or
  476. \doubleSpe{GEET : Radio-physique et Imagerie M\'edicale}
  477. \or
  478. \doubleSpe{MEGEP : Dynamique des fluides}
  479. \or
  480. \doubleSpe{MEGEP : \'Energ\'etique et transferts}
  481. \or
  482. \doubleSpe{MEGEP : G\'enie civil}
  483. \or
  484. \doubleSpe{MEGEP : G\'enie des proc\'ed\'es et de l'Environnement}
  485. \or
  486. \doubleSpe{MEGEP : G\'enie m\'ecanique, m\'ecanique des mat\'eriaux}
  487. \or
  488. \doubleSpe{MITT : Domaine Math\'ematiques : \'Epid\'emiologie}
  489. \or
  490. \doubleSpe{MITT : Domaine Math\'ematiques : Math\'ematiques appliqu\'ees}
  491. \or
  492. \doubleSpe{MITT : Domaine Math\'ematiques : Math\'ematiques fondamentales}
  493. \or
  494. \doubleSpe{MITT : Domaine STIC : Intelligence Artificielle}
  495. \or
  496. \doubleSpe{MITT : Domaine STIC : R\'eseaux, T\'el\'ecoms, Syst\`emes et Architecture}
  497. \or
  498. \doubleSpe{MITT : Domaine STIC : Suret\'e de logiciel et calcul de haute performance}
  499. \or
  500. \doubleSpe{MITT : Image, Information, Hyperm\'edia}
  501. \or
  502. \doubleSpe{MITT : Signal, Image, Acoustique et Optimisation}
  503. \or
  504. \doubleSpe{MPSE : Sciences \'Economiques}
  505. \or
  506. \doubleSpe{SDM : Chimie macromol\'eculaire et supramol\'eculaire - CO044}
  507. \or
  508. \doubleSpe{SDM : Chimie mol\'eculaire - CO 046}
  509. \or
  510. \doubleSpe{SDM : Chimie organom\'etallique de coordination - CO 043}
  511. \or
  512. \doubleSpe{SDM : Chimie, Biologie, Sant\'e - CO 042}
  513. \or
  514. \doubleSpe{SDM : Nano-physique, nano-composants, nano-mesures - COP 00}
  515. \or
  516. \doubleSpe{SDM : Physicochimie th\'eorique - COP 01}
  517. \or
  518. \doubleSpe{SDM : Physique - COR 02}
  519. \or
  520. \doubleSpe{SDM : Physique de la mati\`ere - CO090}
  521. \or
  522. \doubleSpe{SDM : Sciences des agroressources - CO019}
  523. \or
  524. \doubleSpe{SDM : Sciences et g\'enie des mat\'eriaux - CO034}
  525. \or
  526. \doubleSpe{SDU2E : Astrophysique, Sciences de l'Espace, Plan\'etologie}
  527. \or
  528. \doubleSpe{SDU2E : \'Ecologie fonctionnelle}
  529. \or
  530. \doubleSpe{SDU2E : Surfaces et interfaces continentales, Hydrologie}
  531. \or
  532. \doubleSpe{SDU2E : Oc\'ean, Atmosph\`ere, Climat}
  533. \or
  534. \doubleSpe{SDU2E : Sciences de la Terre et des Plan\`etes Solides}
  535. \or
  536. \doubleSpe{SEVAB : Agrosyst\`emes, \'ecosyst\`emes et environnement}
  537. \or
  538. \doubleSpe{SEVAB : D\'eveloppement des plantes}
  539. \or
  540. \doubleSpe{SEVAB : \'Ecologie, biodiversit\'e et \'evolution}
  541. \or
  542. \doubleSpe{SEVAB : Ing\'enieries microbienne et enzymatique}
  543. \or
  544. \doubleSpe{SEVAB : Interactions plantes-microorganismes}
  545. \or
  546. \doubleSpe{SEVAB : Pathologie, Toxicologie, G\'en\'etique et Nutrition}
  547. \or
  548. \doubleSpe{SG : Comptabilit\'e Contr\^ole}
  549. \or
  550. \doubleSpe{SG : Finance}
  551. \or
  552. \doubleSpe{SG : Gestion des Ressources Humaines}
  553. \or
  554. \doubleSpe{SG : Marketing}
  555. \or
  556. \doubleSpe{SG : Strat\'egie}
  557. \or
  558. \doubleSpe{SG : Syst\`emes d'information}
  559. \or
  560. \doubleSpe{SJP : Droit}
  561. \or
  562. \doubleSpe{SJP : Sciences Politiques}
  563. \or
  564. \doubleSpe{TESC : Anthropologie sociale et historique}
  565. \or
  566. \doubleSpe{TESC : Architecture}
  567. \or
  568. \doubleSpe{TESC : \'Economie}
  569. \or
  570. \doubleSpe{TESC : \'Economie sociale}
  571. \or
  572. \doubleSpe{TESC : \'Etudes hispaniques}
  573. \or
  574. \doubleSpe{TESC : \'Etudes rurales en g\'eographie, environnement}
  575. \or
  576. \doubleSpe{TESC : \'Etudes rurales en sciences de gestion}
  577. \or
  578. \doubleSpe{TESC : \'Etudes rurales en sciences du d\'eveloppement}
  579. \or
  580. \doubleSpe{TESC : \'Etudes rurales en sciences \'economiques}
  581. \or
  582. \doubleSpe{TESC : \'Etudes rurales en sociologie}
  583. \or
  584. \doubleSpe{TESC : \'Etudes sur l'Am\'erique Latine}
  585. \or
  586. \doubleSpe{TESC : G\'eographie et am\'enagement}
  587. \or
  588. \doubleSpe{TESC : Histoire}
  589. \or
  590. \doubleSpe{TESC : Histoire de l'Art}
  591. \or
  592. \doubleSpe{TESC : Pr\'ehistoire}
  593. \or
  594. \doubleSpe{TESC : Sciences de l'Antiquit\'e}
  595. \or
  596. \doubleSpe{TESC : Sociologie}
  597. \or
  598. \doubleSpe{EDSYS : Automatique 4200046}
  599. \or
  600. \doubleSpe{EDSYS : Automatique, Signal, Productique, Robotique 4200046}
  601. \or
  602. \doubleSpe{EDSYS : G\'enie Industriel 4200046}
  603. \or
  604. \doubleSpe{EDSYS : Informatique 4200018}
  605. \or
  606. \doubleSpe{EDSYS : Robotique 4200046}
  607. \or
  608. \doubleSpe{EDSYS : Syst\`emes embarqu\'es 4200046}
  609. \fi
  610. }
  611. {\PackageError{tlsflyleaf}{'\CurrentOption' option inconnue}}
  612. \DeclareOptionX{ED2}{\setkeys{dblspe}{ED2=#1}}
  613.  
  614. %% PROCESS OPTION
  615. \ProcessOptionsX
  616.  
  617. % ============================================================
  618. % OPTION ERROR
  619. \ifx\@establishment\undefined
  620. \PackageWarning{tlsflyleaf}{No option Ets given: set Ets to default}
  621. \establishment{{\color{pdgred}D\'efinir le nom de l'\'etablissement avec l'option 'Ets' du paquet tlsflyleaf.sty}}
  622. \fi
  623. \ifx\@docschool\undefined
  624. \PackageWarning{tlsflyleaf}{No option ED given: set ED to default}
  625. \docschool{{\color{pdgred}D\'efinir l'\'ecole doctorale avec l'option 'ED' du paquet tlsflyleaf.sty}}
  626. \fi
  627.  
  628. % ============================================================
  629. % PACKAGE
  630. \RequirePackage{lmodern} % Latin Modern font
  631. \RequirePackage{color} % Use color
  632. \RequirePackage{graphicx} % Use graphics
  633. \RequirePackage{eso-pic} % Make background texture (picture and page style)
  634. \RequirePackage{pgffor} % Make loop for in LaTeX
  635. \@ifpackageloaded{geometry}{%
  636. \PassOptionsToPackage{pass}{geometry}
  637. }{%
  638. \RequirePackage[pass]{geometry}}
  639. \@ifclassloaded{memoir} {\DisemulatePackage{setspace}} {}
  640. \RequirePackage{setspace} % interline
  641. \RequirePackage{calc} % allow use of '-',+','/' ans '*' to make simple lenght computation
  642. \RequirePackage{etoolbox} % Need at least for ifstrequal, ifnumgreater (include in mdframed)
  643.  
  644. %% Not standard package
  645. \RequirePackage{shadowtext} % Allow shadow for text : http://www.tex.ac.uk/CTAN/macros/latex/contrib/shadowtext/
  646.  
  647. % ============================================================
  648. % LENGHT
  649. \newlength{\RuleWidth}
  650. \newlength{\@pdgLinethickness}
  651. \newlength{\@pdgMargeSize}
  652. \newlength{\@pdgInnerBoxWidth}
  653. \newlength{\@pdgInnerBoxHeight}
  654.  
  655. % ============================================================
  656. % COMMAND
  657. % Unit convertor
  658. \def\convertto#1#2{\strip@pt\dimexpr #2*65536/\number\dimexpr 1#1}
  659. % Blank sheet
  660. \newcommand{\blanksheet}[1][num]{%
  661. \ifstrequal{#1}{nonum}{%true nonum
  662. \newpage{\thispagestyle{empty}} ~ \newpage{\thispagestyle{empty}~}
  663. }{%false
  664. \ifstrequal{#1}{num}{%true num
  665. \newpage ~ \newpage
  666. }{%false not nonum and not num
  667. \PackageWarning{obianphd-blanksheet}{'#1' is not a possible option(nonum[default], num)}
  668. }
  669. }
  670. }
  671. % textline
  672. \newcommand\textline[4][t]{%
  673. \par\noindent\parbox[#1]{.333\textwidth}{\raggedright{\scshape #2}}%
  674. \parbox[#1]{.333\textwidth}{\centering#3}%
  675. \parbox[#1]{.333\textwidth}{\raggedleft#4}\par%
  676. }
  677. % makesomeone
  678. \gdef\showline{show}% Permet de tester si la ligne doit etre affichee
  679. \newcommand{\makesomeone}[5]{%
  680. \edef\makesomeonearg{{#1}}%
  681. \expandafter\ifstrequal\makesomeonearg{judge}{}{%FALSE
  682. \expandafter\ifstrequal\makesomeonearg{referee}{}{%FALSE
  683. \expandafter\ifstrequal\makesomeonearg{boss}{}{%FALSE
  684. \PackageError{tlsflyleaf-makesomeone}{%
  685. '#1' is not a possible argument
  686. }
  687. {%
  688. First argument could be in {judge, referee, boss}
  689. }
  690. }%
  691. }%
  692. }%
  693. \expandafter\gdef\csname @#1N#2\endcsname{#3}
  694. \expandafter\gdef\csname @#1P#2\endcsname{#4}
  695. \expandafter\gdef\csname @#1L#2\endcsname{#5}
  696. \expandafter\gdef\csname @#1S#2\endcsname{\showline}
  697. }
  698. % Box and background picture
  699. \newcommand\MakeBackground{%
  700. % Line thickness
  701. \setlength{\@pdgLinethickness}{1pt}
  702. %dimention
  703. \setlength{\@pdgMargeSize}{15mm}%
  704. \setlength{\@pdgInnerBoxWidth}{\paperwidth-2\@pdgMargeSize-2\@pdgLinethickness}%
  705. \setlength{\@pdgInnerBoxHeight}{\paperheight-2\@pdgMargeSize-2\@pdgLinethickness}%
  706. % University logo
  707. \put(\convertto{pt}{1.5\@pdgMargeSize},\convertto{pt}{\paperheight-6.1\@pdgMargeSize}){%
  708. \parbox[t][\paperheight]{\paperwidth}{%
  709. \includegraphics[width=5cm]{tlsflyleaf/logo-univ}%
  710. }
  711. }
  712. % Background picture
  713. \put(\convertto{pt}{\paperwidth-6.92\@pdgMargeSize}, \convertto{pt}{0.42\@pdgMargeSize}){%
  714. \parbox[b][\paperheight]{\paperwidth}{%
  715. \includegraphics[width=10.8cm]{tlsflyleaf/filigrammecut}%
  716. }%
  717. }%
  718. % Colored frame box
  719. \put(\LenToUnit{\@pdgMargeSize},\LenToUnit{\@pdgMargeSize}){%
  720. \color{pdgred}
  721. \framebox(\LenToUnit{\@pdgInnerBoxWidth},\LenToUnit{\@pdgInnerBoxHeight}){}
  722. }%
  723. }
  724.  
  725. % ============================================================
  726. % COLOR
  727. \definecolor{pdgred}{rgb}{0.676,0.224,0.288}
  728.  
  729. % ============================================================
  730. \newif\if@showCotutelle\@showCotutellefalse
  731. % SIMPLE STRING
  732. \def\defencedate#1{\gdef\@defencedate{#1}}
  733. \def\lab#1{\gdef\@lab{#1}}
  734. \def\cotutelle#1{\gdef\@cotutelle{\textit{#1}}}
  735. % Boss
  736. \def\nboss#1{\gdef\@nboss{#1}}
  737. % Referee
  738. \def\nreferee#1{\gdef\@nreferee{#1}}
  739. % Judge
  740. \def\njudge#1{\gdef\@njudge{#1}}
  741.  
  742. % ============================================================
  743. % Set default value for author and title
  744. \author{Nom du doctorant}
  745. \title{Titre de la th\`ese}
  746.  
  747. % ============================================================
  748. % STYLE
  749. \if@draft
  750. \newcommand{\makeflyleaf}{}
  751. \else
  752. \newcommand{\makeflyleaf}{%
  753. %% Test if \@variable exist %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  754. \ifx\@defencedate\undefined
  755. \defencedate{Date de soutenance}
  756. \fi
  757. \ifx\@lab\undefined
  758. \lab{Nom de l'Unit\'e de recherche}
  759. \fi
  760. \ifx\@cotutelle\undefined\else
  761. \@showCotutelletrue
  762. \fi
  763. \ifx\@nboss\undefined
  764. \nboss{1}
  765. \makesomeone{boss}{1}{Nom(s) du/des directeur(s) de th\`ese}{}{}
  766. \fi
  767. \ifx\@nreferee\undefined
  768. \nreferee{1}
  769. \makesomeone{referee}{1}{Noms des rapporteurs (s'ils ne font pas partie des membres du jury)}{}{}
  770. \fi
  771. \ifx\@njudge\undefined
  772. \njudge{5}
  773. \makesomeone{judge}{1}{Nom}{Professeur}{Pr\'esident}
  774. \makesomeone{judge}{2}{Nom}{Directeur de recherche}{Membre}
  775. \makesomeone{judge}{3}{Nom}{Directeur de recherche}{Membre}
  776. \makesomeone{judge}{4}{Nom}{Directeur de recherche}{Membre}
  777. \makesomeone{judge}{5}{~}{\dots\textit{(Pr\'eciser la qualit\'e de chacun des menbres)}}{~}
  778. \fi
  779. %% Test if \@variable exist %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  780. % White page
  781. \if@emptysheetbefore
  782. \blanksheet[nonum]
  783. \fi
  784. % Flyleaf
  785. \pagestyle{empty}
  786. \newgeometry{centering, vmargin=2cm, hmargin=3cm}
  787. \AddToShipoutPictureBG*{\MakeBackground} %% Add Colored frame box and picture background
  788. \begin{center}
  789. \setstretch{1.05}
  790. %\vfill
  791. \begin{minipage}[t][\textheight-.8\baselineskip-6pt]{\textwidth-1pt}
  792. \begin{center}
  793. \vspace*{3cm}
  794. %%%%% THESE %%%%%
  795. \shadowoffset{2pt}
  796. \shadowrgb{0.4, 0.2, 0.2}
  797. \shadowtext{\textcolor{pdgred}{\fontfamily{pbk}\fontsize{1.5cm}{1.8cm}\selectfont{TH\`ESE}}}
  798. %%%%%%%%%%%%%%%%%
  799.  
  800. \vspace*{1.4cm}
  801. %%%%% DOC %%%%%
  802. {\bfseries En vue de l'obtention du}
  803.  
  804. \bigskip
  805. {\Large \bfseries DOCTORAT DE L'UNIVERSIT\'E DE TOULOUSE}
  806.  
  807. %%%%% ETS & COTUTELLE %%%%%
  808. \bigskip
  809. \mbox{\bfseries D\'elivr\'e par :} \mbox{\textit{\@establishment}} \if@showCotutelle\mbox{Cotutelle internationale \@cotutelle}\fi
  810. %%%%%%%%%%%%%%%
  811.  
  812. \vfill
  813.  
  814. \rule{\textwidth}{2.5pt}
  815.  
  816. \vspace{-2ex}
  817. \rule{\textwidth}{1.2pt}
  818. {\bfseries \fontfamily{cmr} Pr\'esent\'ee et soutenue le} \textit{\@defencedate} {\bfseries \fontfamily{cmr} par :}\\
  819. \settowidth{\RuleWidth}{\large\fontfamily{cmr}\textbf{\textsc{\@author}}}
  820.  
  821. \smallskip
  822. {\large\fontfamily{cmr}\textbf{\textsc{\@author}}}
  823.  
  824. \vspace*{-5pt}
  825. ~{\color{pdgred}\rule{1.2\RuleWidth}{0.8pt}}
  826. \vspace*{3pt}
  827.  
  828. {\large\bfseries\@title}
  829.  
  830. \rule{\textwidth}{1.2pt}
  831.  
  832. \vspace{-1.6ex}
  833. \rule{\textwidth}{2.5pt}
  834.  
  835. \vfill
  836. %%%% JURY %%%%
  837. {\bfseries JURY}
  838. \ifnum \@njudge=0
  839. \\Membres du jury
  840. \else
  841. \foreach \n in {1,...,\@njudge}{%
  842. \edef\mytemp{{\csname @judgeS\n\endcsname}{\showline}}%
  843. \expandafter\ifstrequal\mytemp{%TRUE
  844. \textline[t]{\csname @judgeN\n\endcsname}{\csname @judgeP\n\endcsname}{\csname @judgeL\n\endcsname}%
  845. }{}%
  846. }
  847. \fi
  848. %%%% JURY %%%%
  849.  
  850. \vfill
  851. \rule{\textwidth}{1.2pt}
  852.  
  853. {\raggedright\bfseries \'Ecole doctorale et sp\'ecialit\'e :\\} \hfill\parbox[t]{0.92\textwidth}{\textit{\@docschool}}
  854.  
  855. \ifx\@doubleSpe\undefined\else{\raggedright\bfseries Double mention :\\} \hfill\parbox[t]{0.92\textwidth}{\textit{\@doubleSpe}}\fi
  856.  
  857.  
  858. {\raggedright\bfseries Unit\'e de Recherche :\\} \hfill\parbox[t]{0.92\textwidth}{\textit{\@lab}}
  859.  
  860. \ifnumgreater{\@nboss}{1}{%TRUE
  861. {\raggedright\bfseries Directeur(s) de Th\`ese :\\}
  862. }{%FALSE
  863. {\raggedright\bfseries Directeur de Th\`ese :\\}
  864. }
  865. \hfill\parbox[t]{0.92\textwidth}{
  866. \foreach \n in {1,...,\@nboss}{%
  867. \edef\mytemp{{\csname @bossS\n\endcsname}{\showline}}%
  868. \ifnumgreater{\n}{1}{%TRUE
  869. \ifnumgreater{\n}{\@nboss-1}{%TRUE
  870. \expandafter\ifstrequal\mytemp{%TRUE
  871. \ et \textit{\csname @bossN\n\endcsname}\ignorespaces
  872. }{}%
  873. }{%FALSE
  874. \expandafter\ifstrequal\mytemp{%TRUE
  875. , \textit{\csname @bossN\n\endcsname}\ignorespaces
  876. }{}%
  877. }
  878. }{%FALSe
  879. \expandafter\ifstrequal\mytemp{%TRUE
  880. \textit{\csname @bossN\n\endcsname}\ignorespaces
  881. }{}%
  882. }
  883. }
  884. }
  885.  
  886. \ifnumgreater{\@nreferee}{1}{%TRUE
  887. {\raggedright\bfseries Rapporteurs :\\}
  888. }{%FALSE
  889. {\raggedright\bfseries Rapporteur :\\}
  890. }
  891. \hfill\parbox[t]{0.92\textwidth}{
  892. \foreach \n in {1,...,\@nreferee}{%
  893. \edef\mytemp{{\csname @refereeS\n\endcsname}{\showline}}%
  894. \ifnumgreater{\n}{1}{%TRUE
  895. \ifnumgreater{\n}{\@nreferee-1}{%TRUE
  896. \expandafter\ifstrequal\mytemp{%
  897. \ et \textit{\csname @refereeN\n\endcsname}\ignorespaces
  898. }{}%
  899. }{%FALSE
  900. \expandafter\ifstrequal\mytemp{%
  901. , \textit{\csname @refereeN\n\endcsname}\ignorespaces
  902. }{}%
  903. }
  904. }{%FALSE
  905. \expandafter\ifstrequal\mytemp{%TRUE
  906. \textit{\csname @refereeN\n\endcsname}\ignorespaces
  907. }{}%
  908. }
  909. }
  910. }
  911. \vfill
  912.  
  913. \end{center}
  914. \end{minipage}
  915. \vfill
  916. \end{center}
  917. \restoregeometry
  918. \pagestyle{headings}
  919. % White page
  920. \if@emptypageafter
  921. \blanksheet[nonum]
  922. \fi
  923. }
  924. \fi
Advertisement
Add Comment
Please, Sign In to add comment