diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/ulthese/ulthese.cls | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/ulthese/ulthese.cls b/Master/texmf-dist/tex/latex/ulthese/ulthese.cls index 233b6acdace..646babe406a 100644 --- a/Master/texmf-dist/tex/latex/ulthese/ulthese.cls +++ b/Master/texmf-dist/tex/latex/ulthese/ulthese.cls @@ -30,7 +30,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2009/09/24] \ProvidesClass{ulthese}% - [2018/09/30 v5.1 Universite Laval thesis and memoir class] + [2019/05/06 v5.2 Universite Laval thesis and memoir class] \RequirePackage{ifxetex} \newif\ifUL@babel \UL@babeltrue % charger babel? \newif\ifUL@natbib \UL@natbibtrue % charger natbib? @@ -41,6 +41,7 @@ \newif\ifUL@iscotutelle \UL@iscotutellefalse % thèse en cotutelle? \newif\ifUL@isexam \UL@isexamfalse % examen de doctorat? \newif\ifUL@isessay \UL@isessayfalse % essai de maîtrise? +\newif\ifUL@isproject \UL@isprojectfalse % projet de recherche? \newif\ifUL@hassubtitle \UL@hassubtitlefalse % document a un sous-titre? \newif\ifUL@hastitlepage \UL@hastitlepagefalse % page titre utilisée? \DeclareOption{nonatbib}{\UL@natbibfalse} @@ -198,13 +199,19 @@ \else \UL@isessaytrue \fi} +\DeclareOption{projet}{% + \UL@isprojecttrue + \renewcommand*{\UL@typenum}{0} + \def\UL@degree{\mbox{}}} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}} \ExecuteOptions{11pt,letterpaper} \ProcessOptions\relax \ifx\UL@typenum\empty - \ClassError{ulthese}{% - No thesis type specified} - {Declare the thesis type as a class option.} + \ifUL@isproject\else + \ClassError{ulthese}{% + No thesis type specified} + {Declare the thesis type as a class option.} + \fi \fi \LoadClass[oneside]{memoir} \ifxetex @@ -345,6 +352,9 @@ \ifUL@isessay \renewcommand*{\UL@typeofdoc}{Essai} \fi +\ifUL@isproject + \renewcommand*{\UL@typeofdoc}{Projet de recherche} +\fi \newcommand{\UL@docid}{% {\UL@fontprogram\UL@typeofdoc\par \ifnum\UL@typenum=2 \UL@program\par \fi}} @@ -352,7 +362,7 @@ \ifcase\UL@typenum\relax% 0 standard \vspace{96pt} {\UL@fontprogram\UL@program}\par - \UL@degree\par + \ifUL@isproject\vspace{\baselineskip}\else\UL@degree\fi\par \vspace{112pt} Qu\'ebec, Canada\par \or% 1 multifacultaire @@ -417,7 +427,7 @@ \addtolength{\UL@authorspacing}{-\baselineskip} \fi} \newcommand{\frontispice}{{% - \ifUL@isexam\else\ifUL@isessay\else + \ifUL@isexam\else \clearpage \pagestyle{empty} \SingleSpacing\setlength{\parskip}{0pt} @@ -443,7 +453,7 @@ \vspace{\baselineskip} \UL@director\par \UL@codirector - \fi\fi + \fi \clearpage}} \newcommand{\pagetitre}{{% \UL@hastitlepagetrue |