From ad83b5caf07cf1fc41c45eddaf86b864d7fa68e9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 6 Oct 2017 20:20:55 +0000 Subject: hecthese (6oct17) git-svn-id: svn://tug.org/texlive/trunk@45487 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/hecthese/hecthese.cls | 437 ++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/hecthese/hecthese.cls (limited to 'Master/texmf-dist/tex/latex/hecthese/hecthese.cls') diff --git a/Master/texmf-dist/tex/latex/hecthese/hecthese.cls b/Master/texmf-dist/tex/latex/hecthese/hecthese.cls new file mode 100644 index 00000000000..c10af161359 --- /dev/null +++ b/Master/texmf-dist/tex/latex/hecthese/hecthese.cls @@ -0,0 +1,437 @@ +%% +%% This is file `hecthese.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% hecthese.dtx (with options: `class') +%% +%% This is a stripped version of the original file. +%% +%% Copyright 2017 HEC Montreal +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Benoit Hamel +%% . +%% +%% This work consists of the files hecthese.dtx and hecthese.ins +%% and the derived files listed in the README file. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{hecthese}[2017/10/06 v1.0 Classe pour les thèses et mémoires de HEC Montréal] +\RequirePackage{ifthen} + +\newboolean{HEC@isPhD} % Le travail est une thèse ou non +\newboolean{HEC@isClassique} % Le travail est rédigé de manière classique ou non +\newboolean{HEC@isPresRappFemme} % Président rapporteur femme ou non +\newboolean{HEC@isDirRechFemme} % Directeur de la recherche femme ou non +\newboolean{HEC@isCodirRechFemme} % Codirecteur de la recherche femme ou non +\newboolean{HEC@isExamExtFemme} % Examinateur externe femme ou non +\newboolean{HEC@isRepDirFemme} % Représentant du directeur femme ou non + +\setboolean{HEC@isPhD}{true} +\setboolean{HEC@isClassique}{true} +\setboolean{HEC@isPresRappFemme}{false} +\setboolean{HEC@isDirRechFemme}{false} +\setboolean{HEC@isCodirRechFemme}{false} +\setboolean{HEC@isExamExtFemme}{false} +\setboolean{HEC@isRepDirFemme}{false} + +\DeclareOption{10pt}{% +\PassOptionsToClass{10pt}{memoir} +} +\DeclareOption{11pt}{% +\PassOptionsToClass{11pt}{memoir} +} +\DeclareOption{12pt}{% +\PassOptionsToClass{12pt}{memoir} +} + +\DeclareOption{mscclassique}{% +\setboolean{HEC@isPhD}{false} +\setboolean{HEC@isClassique}{true} +} +\DeclareOption{mscarticles}{% +\setboolean{HEC@isPhD}{false} +\setboolean{HEC@isClassique}{false} +} +\DeclareOption{phdclassique}{% +\setboolean{HEC@isPhD}{true} +\setboolean{HEC@isClassique}{true} +} +\DeclareOption{phdarticles}{% +\setboolean{HEC@isPhD}{true} +\setboolean{HEC@isClassique}{false} +} + + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}} +\ExecuteOptions{12pt} % Taille par défaut +\ProcessOptions +\LoadClass{memoir} + + +\RequirePackage[utf8]{inputenc} % Pour écrire les diacritiques directement +\RequirePackage[T1]{fontenc} % Utilisation des polices T1 +\RequirePackage{natbib} % À inclure avant babel + +\ifthenelse{\boolean{HEC@isClassique}}{}{% +\RequirePackage{chapterbib} % Bibliographies multiples pour les articles +} +\RequirePackage{babel} % Support multilingue +\RequirePackage[autolanguage]{numprint} +\RequirePackage{calc} % Nécessaire pour la liste des abréviations +\RequirePackage{enumitem} % Nécessaire pour la liste des abréviations +\RequirePackage{tocvsec2} % Pour déterminer la profondeur de la TDM +\RequirePackage{graphicx} % Insertion de graphiques et d'images +\RequirePackage{color} % Gestion des couleurs +\RequirePackage{amsmath} % Package obligatoire pour les maths +\RequirePackage{iflang} % Détection de la langue + + +\pagestyle{plain} % Numéro de page centré au pied de page +\renewcommand{\baselinestretch}{1.5} % Interligne et demie +\setlength{\topmargin}{0cm} % Marge du haut +\setlength{\oddsidemargin}{1.5cm} % Marge de gauche des pages impaires +\setlength{\evensidemargin}{1.5cm} % Marge de gauche des pages paires +\setlength{\textwidth}{15cm} % Largeur du bloc de texte +\setlength{\textheight}{21.9cm} % Hauteur du bloc de texte +\setlength{\marginparwidth}{0pt} % Suppression des notes de marge +\setlength{\marginparsep}{0pt} % Suppression du séparateur de marge +\setlength{\headheight}{0pt} % Suppression de l'entête +\setlength{\headsep}{0pt} % Suppression du séparateur d'entête + + +\newcommand{\HEC@titre}{} +\newcommand{\HEC@sousTitre}{} +\newcommand{\HEC@auteur}{} +\newcommand{\HEC@optionPhD}{} +\newcommand{\HEC@optionMSc}{} +\newcommand{\HEC@moisDepot}{} +\newcommand{\HEC@anneeDepot}{} +\newcommand{\HEC@presidentRapporteur}{} +\newcommand{\HEC@directeurRecherche}{} +\newcommand{\HEC@codirecteurRecherche}{} +\newcommand{\HEC@universiteCodirecteur}{} +\newcommand{\HEC@membreJury}{} +\newcommand{\HEC@universiteMembreJury}{} +\newcommand{\HEC@examinateurExterne}{} +\newcommand{\HEC@universiteExaminateur}{} +\newcommand{\HEC@representantDirecteur}{} + +\newcommand{\HECtitre}[1]{% +\renewcommand{\HEC@titre}{#1} +} +\newcommand{\HECsoustitre}[1]{% +\renewcommand{\HEC@sousTitre}{#1} +} +\newcommand{\HECauteur}[1]{% +\renewcommand{\HEC@auteur}{#1} +} +\newcommand{\HECoption}[1]{% +\ifthenelse{\boolean{HEC@isPhD}}{% +\renewcommand{\HEC@optionPhD}{#1} +}{% +\renewcommand{\HEC@optionMSc}{#1} +} +} +\newcommand{\HECmoisDepot}[1]{% +\renewcommand{\HEC@moisDepot}{#1} +} +\newcommand{\HECanneeDepot}[1]{% +\renewcommand{\HEC@anneeDepot}{#1} +} +\newcommand{\HECpresidentRapporteur}[2]{% +\renewcommand{\HEC@presidentRapporteur}{#1} +\ifthenelse{\equal{#2}{F}}{% +\setboolean{HEC@isPresRappFemme}{true} +}{% +\setboolean{HEC@isPresRappFemme}{false} +} +} +\newcommand{\HECdirecteurRecherche}[2]{% +\renewcommand{\HEC@directeurRecherche}{#1} +\ifthenelse{\equal{#2}{F}}{% +\setboolean{HEC@isDirRechFemme}{true} +}{% +\setboolean{HEC@isDirRechFemme}{false} +} +} +\newcommand{\HECcodirecteurRecherche}[2]{% +\renewcommand{\HEC@codirecteurRecherche}{#1} +\ifthenelse{\equal{#2}{F}}{% +\setboolean{HEC@isCodirRechFemme}{true} +}{% +\setboolean{HEC@isCodirRechFemme}{false} +} +} +\newcommand{\HECuniversiteCodirecteur}[1]{% +\renewcommand{\HEC@universiteCodirecteur}{#1} +} +\newcommand{\HECmembreJury}[1]{% +\renewcommand{\HEC@membreJury}{#1} +} +\newcommand{\HECuniversiteMembreJury}[1]{% +\renewcommand{\HEC@universiteMembreJury}{#1} +} +\newcommand{\HECexaminateurExterne}[2]{% +\renewcommand{\HEC@examinateurExterne}{#1} +\ifthenelse{\equal{#2}{F}}{% +\setboolean{HEC@isExamExtFemme}{true} +}{% +\setboolean{HEC@isExamExtFemme}{false} +} +} +\newcommand{\HECuniversiteExaminateur}[1]{% +\renewcommand{\HEC@universiteExaminateur}{#1} +} +\newcommand{\HECrepresentantDirecteur}[2]{% +\renewcommand{\HEC@representantDirecteur}{#1} +\ifthenelse{\equal{#2}{F}}{% +\setboolean{HEC@isRepDirFemme}{true} +}{% +\setboolean{HEC@isRepDirFemme}{false} +} +} + + +\newcommand{\HECpdfauteur}{\HEC@auteur} +\newcommand{\HECpdftitre}{\HEC@titre} + + +\newcommand{\HEC@pageTitrePhD}{% +\begin{titlingpage} +\centering +\begin{SingleSpace} +{\Large HEC MONTRÉAL}\\ +École affiliée à l'Université de Montréal +\vfill +{\bfseries\HEC@titre +\ifthenelse{\equal{\HEC@sousTitre}{}}% +{ \\ }% +{~: \\ \HEC@sousTitre} +\vfill +par \\ +\HEC@auteur} +\vfill +Thèse présentée en vue de l'obtention du grade de Ph. D. en administration \\ +(option \HEC@optionPhD) +\vfill +\HEC@moisDepot~\HEC@anneeDepot +\vfill +\copyright~\HEC@auteur, \HEC@anneeDepot +\end{SingleSpace} +\end{titlingpage} +} + + +\newcommand{\HEC@pageIdentificationJury}{% +\begin{titlingpage*} +\centering +\begin{SingleSpace} +{\Large HEC MONTRÉAL}\\ +École affiliée à l'Université de Montréal +\vfill +Cette thèse intitulée : +\vfill +{\bfseries\HEC@titre +\ifthenelse{\equal{\HEC@sousTitre}{}}% +{ \\ }% +{~: \\ \HEC@sousTitre}} +\vfill +Présentée par : +\vfill % +{\bfseries \HEC@auteur} +\vfill +a été évaluée par un jury composé des personnes suivantes : +\vfill +\HEC@presidentRapporteur \\ +HEC Montréal \\ +\ifthenelse{\boolean{HEC@isPresRappFemme}}% +{Présidente-rapportrice}% +{Président-rapporteur} +\vfill +\HEC@directeurRecherche \\ +HEC Montréal \\ +\ifthenelse{\boolean{HEC@isDirRechFemme}}% +{Directrice de recherche}% +{Directeur de recherche} +\vfill +\HEC@codirecteurRecherche \\ +\HEC@universiteCodirecteur \\ +\ifthenelse{\boolean{HEC@isCodirRechFemme}}% +{Codirectrice de recherche}% +{Codirecteur de recherche} +\vfill +\HEC@membreJury \\ +\HEC@universiteMembreJury \\ +Membre du jury +\vfill +\HEC@examinateurExterne \\ +\HEC@universiteExaminateur \\ +\ifthenelse{\boolean{HEC@isExamExtFemme}}% +{Examinatrice externe}% +{Examinateur externe} +\vfill +\HEC@representantDirecteur \\ +HEC Montréal \\ +\ifthenelse{\boolean{HEC@isRepDirFemme}}{% +Représentante du directeur de HEC Montréal}{% +Représentant du directeur de HEC Montréal} +\end{SingleSpace} +\end{titlingpage*} +} + + +\newcommand{\HEC@pageTitreMSc}{% +\begin{titlingpage} +\centering +\begin{SingleSpace} +{\Large HEC MONTRÉAL} +\vfill +{\bfseries\HEC@titre +\ifthenelse{\equal{\HEC@sousTitre}{}}% +{\\[12pt]}% +{~: \\ \HEC@sousTitre \\[12pt]} +par \\[12pt] +\HEC@auteur +\vfill % +Sciences de la gestion \\% +(Option \HEC@optionMSc)} +\vfill +\emph{Mémoire présenté en vue de l'obtention \\ % +du grade de maîtrise ès sciences \\ % +(M. Sc.)} +\vfill +\HEC@moisDepot~\HEC@anneeDepot \\ % +\copyright~\HEC@auteur, \HEC@anneeDepot +\end{SingleSpace} +\end{titlingpage} +} + + +\newcommand{\HECpagestitre}{% +\ifthenelse{\boolean{HEC@isPhD}}{% +\HEC@pageTitrePhD +\HEC@pageIdentificationJury +}{% +\HEC@pageTitreMSc +} +} + + +\newcommand{\HECtitreIntroduction}{Introduction} +\newcommand{\HECtitreConclusion}{Conclusion} +\newcommand{\HECgenererTitres}{% +\ifthenelse{\boolean{HEC@isClassique}}{}{% +\IfLanguageName{english}{% +\renewcommand{\HECtitreIntroduction}{General Introduction} +\renewcommand{\HECtitreConclusion}{General Conclusion} +}{% +\renewcommand{\HECtitreIntroduction}{Introduction générale} +\renewcommand{\HECtitreConclusion}{Conclusion générale} +} +} +} + + +\newcommand{\HECtdmAbreviations}{% +\IfLanguageName{english}{List of acronyms}{Liste des abréviations} +} + +\newcommand{\HECtdmRemerciements}{% +\IfLanguageName{english}{Acknowledgements}{Remerciements} +} + +\newcommand{\HECtdmAvantPropos}{% +\IfLanguageName{english}{Preface}{Avant-propos} +} + +\newcommand{\HECtdmCadreTheorique}{% +\IfLanguageName{english}{Theoretical framework}{Cadre théorique} +} + +\newcommand{\HECtdmRevueLitterature}{% +\IfLanguageName{english}{Literature review}{Revue de la littérature} +} + +\newcommand{\HECtdmResumeArticle}{% +\IfLanguageName{english}{Abstract}{Résumé} +} + + +\newcommand{\HECbibliographieArticle}{% +\renewcommand{\bibsection}{% +\IfLanguageName{english}{% +\renewcommand{\bibname}{References} +}{% +\renewcommand{\bibname}{Références} +} +\section*{\bibname} +\bibmark +\ifnobibintoc\else +\phantomsection\addcontentsline{toc}{section}{\bibname} +\fi +\prebibhook +} +} + +\newcommand{\HECbibliographieGenerale}{% +\renewcommand{\bibsection}{% +\IfLanguageName{english}{% +\renewcommand{\bibname}{Bibliography} +}{% +\renewcommand{\bibname}{Bibliographie générale} +} +\chapter*{\bibname} +\bibmark +\ifnobibintoc\else +\phantomsection\addcontentsline{toc}{chapter}{\bibname} +\fi +\prebibhook +} +} + + +\newsavebox{\bibliographieCachee} + +\newcommand{\HECreferences}[2]{% +\bibliographystyle{#1} +\savebox\bibliographieCachee{\parbox{\textwidth}{\bibliography{#2}}} +} + + +\newenvironment{HECdedicace}{% +\vfill +\hfill +\begin{minipage}{0.5\textwidth} +\itshape}% +{% +\end{minipage} +\vfill% +} + +\newenvironment{HECabreviations}[1]{% +\begin{description}[leftmargin=!,labelwidth=\widthof{\bfseries #1}]}% +{% +\end{description}% +} + + +\addto\captionsfrench{% +\renewcommand{\listfigurename}{Liste des figures} +\renewcommand{\indexname}{Index analytique} +} +\endinput +%% +%% End of file `hecthese.cls'. -- cgit v1.2.3